/* ===== RESETEO GENERAL Y ESTILOS BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

/* Variables de la paleta verde-negro-blanco */
:root {
  --green-primary: #4B7A6D;   /* Verde estándar */
  --green-light: #50C878;     /* Verde claro */
  --green-dark: #2A5548;      /* Verde oscuro */
  --green-accent: #269E85;    /* Verde brillante */
  --green-subtle: #98D8BF;    /* Verde muy claro (casi blanco verdoso) */
  
  --black-primary: #000000;   /* Negro puro */
  --black-soft: #333333;      /* Negro suave */
  --black-gray: #555555;      /* Gris oscuro */
  --black-charcoal: #222222;  /* Negro carbón */
  
  --white-primary: #FFFFFF;   /* Blanco puro */
  --white-off: #F5F5F5;       /* Blanco apagado */
  --white-cream: #FFFCF0;     /* Blanco cremoso */
  --white-ivory: #FFFFF0;     /* Marfil */
}

/* Estilos para las clases del logo */
.plano {
  fill: var(--black-primary); /* Negro para los elementos principales */
}
.plano_opacidad {
  /* El gradiente se aplicará directamente en el SVG */
}
.cabeza {
  /* El gradiente se aplicará directamente en el SVG */
}
.espiral {
  fill: var(--white-primary); /* Blanco sólido para la espiral */
}
/* Asegura que el SVG sea responsivo */
.logo svg {
  width: 100%;
  height: auto;
}

body {
  background: var(--white-primary);
  color: var(--black-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAVEGACIÓN ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--black-primary), var(--black-soft));
  color: var(--white-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid var(--green-primary);
  transition: all 0.3s ease;
  height: 80px;
}

.logo {
  display: flex;
  justify-content: flex-start;
  margin: 20px 0;
}

.logo img {
  max-width: 75px;
  height: auto;
}

.nav-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  margin-right: 30px;
}

.nav-links li { margin-left: 35px; }

.nav-links a {
  color: var(--white-primary);
  text-decoration: none;
  font-weight: 400;
  font-size: 1.1rem;
  position: relative;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-links li:nth-child(1) a::after { background: var(--green-primary); }
.nav-links li:nth-child(2) a::after { background: var(--green-light); }
.nav-links li:nth-child(3) a::after { background: var(--green-accent); }
.nav-links li:nth-child(4) a::after { background: var(--green-dark); }
.nav-links li:nth-child(5) a::after { background: var(--green-subtle); }

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-phone {
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 20px;
  color: var(--white-primary);
}

.nav-phone span { margin-right: 5px; }

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
}

/* ===== SECCIÓN HERO ===== */
.hero {
  min-height: 100vh;
  background-image: url('fondo_nuevo3.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: var(--black-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  overflow: hidden;
  transition: background-image 1s ease-in-out;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--white-primary);
  font-weight: 700;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.5s ease;
  margin-bottom: 20px;
}

.hero-content .motivational-text {
  font-size: 2rem;
  font-weight: 600;
  color: var(--white-primary);
  margin: 20px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fadeText 8s ease-in-out forwards;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero-content .motivational-text {
    font-size: 1.5rem;
    padding: 0.8rem 1.2rem;
  }
}

.cta {
  padding: 15px 50px;
  background: var(--green-primary);
  color: var(--white-primary);
  border: none;
  border-radius: 50px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.5);
  animation: fadeInUp 1.5s ease;
  display: inline-block;
}

.cta:hover {
  background: var(--white-primary);
  color: var(--black-primary);
  border: 2px solid var(--green-primary);
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.fireflies-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: var(--green-light);
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(102, 187, 106, 0.5);
  opacity: 0;
}

@keyframes glow-firefly {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

@keyframes float-firefly {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100vw, -100vh); }
}

.hero-shape {
  position: absolute;
  bottom: -100px;
  left: 50%;
  width: 300px;
  height: 300px;
  background: rgba(46, 125, 50, 0.2);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transform: translateX(-50%) rotate(45deg);
  animation: rotateShape 20s infinite linear;
}

/* ===== SECCIONES GENERALES ===== */
.section {
  padding: 120px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 1s ease;
}

.section:hover { background-position: 100% 0%; }

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  position: relative;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: var(--white-primary);
}

.section h2::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 4px;
  background: var(--green-primary);
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  border-radius: 2px;
}
        
.section-image { 
    margin-bottom: 20px; 
    margin-top: 10px;
}

.section-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}



/* ===== QUIÉNES SOMOS ===== */
.quienes-somos {
  background: linear-gradient(135deg, var(--black-soft) 0%, var(--black-primary) 100%);
  position: relative;
  color: var(--white-primary);
}

.quienes-somos h2 {
  color: var(--white-primary);
}

.quienes-somos h2::after { background: var(--green-primary); }

.section-content {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  z-index: 1;
  position: relative;
}

.quienes-somos .text-block { flex: 0.4; min-width: 580px; font-size: 25px; }
.quienes-somos .image-block { flex: 0.6; min-width: 350px; }

#lottie-animation {
  width: 100%;
  max-width: 800px;
  height: auto;
  size: 1400px;
  border-radius: 20px;
  transition: all 0.4s ease;
}

.text-block {
  flex: 1;
  min-width: 300px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease, border-color 0.8s ease;
  font-size: 1.2rem;
  line-height: 1.8;
  border-left: 5px solid var(--green-primary);
  color: var(--black-primary);
}

.text-block p { margin-bottom: 20px; }

.text-block:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  background: var(--white-primary);
  border-left: 5px solid var(--green-dark);
}

.team-btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--green-primary);
  color: var(--white-primary);
  font-size: 1.3rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(46, 125, 50, 0.5);
  margin-top: 20px;
}

.team-btn:hover {
  background: var(--white-primary);
  color: var(--black-primary);
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--green-primary);
}

.image-block {
  flex: 1;
  min-width: 300px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.diagonal-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(46, 125, 50, 0.15) 30px, rgba(46, 125, 50, 0.15) 60px);
  opacity: 0.2;
  z-index: 0;
}

.quienes-somos .text-block,
.quienes-somos .image-block {
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.quienes-somos .text-block { transform: translateX(-100vw); }
.quienes-somos .image-block { transform: translateX(100vw); }

.quienes-somos .text-block.active,
.quienes-somos .image-block.active {
  transform: translateX(0);
  opacity: 1;
}

/* ===== TRATAMIENTOS ===== */
.tratamientos {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--white-ivory) 100%);
}

.tratamientos h2::after { background: var(--green-primary); }

.tratamientos .grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.tratamientos .grid-item {
  position: relative;
  padding: 30px;
  background: var(--white-primary);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.8s ease-out, opacity 0.8s ease-out, border-color 0.8s ease;
  overflow: hidden;
  border-top: 5px solid var(--green-primary);
  opacity: 0;
}

.tratamientos .grid-item:nth-child(3n+1) {
  transform: translateX(-100vw);
}
.tratamientos .grid-item:nth-child(3n+2) {
  transform: translateY(-100vh);
}
.tratamientos .grid-item:nth-child(3n) {
  transform: translateX(100vw);
}

.tratamientos .grid-item.active {
  transform: translate(0);
  opacity: 1;
}

.tratamientos .grid-item:hover {
  transform: translateY(-15px) rotate(3deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: var(--white-off);
  border-top: 5px solid var(--green-dark);
}

.tratamientos .grid-item h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--black-soft);
  position: relative;
  z-index: 1;
}

.tratamientos .grid-item p {
  font-size: 1.2rem;
  color: var(--black-gray);
  position: relative;
  z-index: 1;
}

.tratamientos .geometric-border {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 80%;
  height: 2px;
  background: var(--green-primary);
  transform: translateX(-50%);
  border-radius: 5px;
  opacity: 0.6;
  z-index: 0;
  transition: all 0.4s ease;
}

.tratamientos .grid-item:hover .geometric-border {
  width: 60%;
  opacity: 0.6;
}

.tratamientos .grid-item img {
  position: relative;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  z-index: 1;
  transition: transform 0.4s ease;
}

.tratamientos .grid-item:hover img {
  transform: scale(1.05);
}

/* ===== CURSOS Y TALLERES ===== */
.cursos {
  background: linear-gradient(135deg, var(--black-charcoal) 0%, var(--black-primary) 100%);
  color: var(--white-primary);
}

.cursos h2 {
  color: var(--white-primary);
}

.cursos h2::after { 
  background: var(--green-primary); 
}


.cursos .grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.cursos .grid-item {
  position: relative;
  padding: 40px;
  background: var(--white-primary);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.8s ease-out, opacity 0.8s ease-out, border-color 0.8s ease;
  overflow: hidden;
  /* Altura mínima fija para todas las tarjetas */
  min-height: 450px;
  border-right: 5px solid var(--green-primary);
  opacity: 0;
  color: var(--black-primary);
  
  /* Usar flexbox para distribuir el contenido */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cursos .grid-item:nth-child(3n+1) {
  transform: translateX(-100vw);
}
.cursos .grid-item:nth-child(3n+2) {
  transform: translateY(-100vh);
}
.cursos .grid-item:nth-child(3n) {
  transform: translateX(100vw);
}

.cursos .grid-item.active {
  transform: translate(0);
  opacity: 1;
}

.cursos .grid-item:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 20px 40px rgba(46, 125, 50, 0.4);
  background: var(--white-off);
  border-right: 5px solid var(--green-dark);
}

.cursos .grid-item .content-wrapper {
  /* Contenedor para el contenido principal */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cursos .grid-item h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--black-soft);
  position: relative;
  z-index: 1;
}

.cursos .grid-item p {
  font-size: 1.2rem;
  color: var(--black-gray);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  /* Permitir que el texto crezca */
  flex: 1;
  line-height: 1.6;
}

.cursos .wave-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%234B7A6D" d="M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,170.7C672,149,768,139,864,149.3C960,160,1056,192,1152,197.3C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  opacity: 0.6;
  z-index: 0;
  transition: height 0.4s ease;
  animation: waveMove 5s infinite ease-in-out;
}

.cursos .grid-item:hover .wave-bg {
  height: 80%;
  opacity: 0.6;
}

/* Botón siempre alineado en la parte inferior */
.course-btn {
  padding: 12px 30px;
  background: var(--green-primary);
  color: var(--white-primary);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(46, 125, 50, 1);
  
  /* Posicionamiento fijo en la parte inferior */
  margin-top: auto;
  align-self: center;
  z-index: 2;
  
  /* Ancho fijo para consistencia */
  width: 90%;
  max-width: 250px;
  
  /* Margen inferior fijo */
  margin-bottom: 0;
}

.course-btn:hover {
  background: var(--white-primary);
  color: var(--black-primary);
  border: 2px solid var(--green-primary);
  transform: scale(1.05);
}

/* Media Queries específicas para la sección de cursos */
@media (max-width: 768px) {
  .cursos .grid-item {
    min-height: 350px;
    padding: 30px;
  }
  
  .cursos .grid-item h3 {
    font-size: 1.4rem;
  }
  
  .cursos .grid-item p {
    font-size: 1.1rem;
  }
  
  .course-btn {
    width: 95%;
    font-size: 1rem;
    padding: 10px 25px;
  }
}

/* ===== BLOG ===== */
.blog {
  background: linear-gradient(135deg, var(--white-ivory) 0%, var(--green-accent) 100%);
}

.blog h2::after { background: var(--green-primary); }

.blog .grid-item {
  position: relative;
  padding: 25px;
  background: var(--white-primary);
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease, border-color 0.8s ease;
  overflow: hidden;
  border-bottom: 5px solid var(--green-primary);
}

.blog .grid-item:hover {
  transform: translateY(-20px) rotate(2deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  background: var(--green-light);
  border-bottom: 5px solid var(--green-dark);
}

.blog .grid-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.blog .grid-item:hover img { transform: scale(1.05); }

.blog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(46, 125, 50, 0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.blog .grid-item:hover .blog-overlay { opacity: 1; }

/* ===== CONTACTO ===== */
.contact-section {
  background: linear-gradient(135deg, var(--black-soft) 30%, var(--black-primary) 70%);
  color: var(--white-primary);
  position: relative;
  overflow: hidden;
}

.contact-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-shape {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  background: rgba(76, 175, 80, 0.3);
  clip-path: circle(50% at 50% 50%);
  animation: float 6s infinite ease-in-out;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 50px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--black-primary);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(75, 122, 109, 0.4);
  transition: all 0.4s ease;
}

.contact-content:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgb(0 128 0 / 40%);
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--black-soft);
  text-align: center;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--black-soft);
  text-align: center;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.contact-info li:hover {
  transform: translateX(10px);
}

.contact-info li span {
  margin-right: 10px;
}

/* Estilos para el contenedor del mapa */
.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--green-primary);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(90deg, var(--black-primary), var(--black-soft));
  color: var(--white-primary);
  padding: 50px 20px;
  text-align: center;
  border-top: 2px solid var(--green-primary);
}

.footer-content p { margin: 15px 0; }

.footer-links a {
  color: var(--white-primary);
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--green-primary); }

/* ===== TEST SECTION ===== */
.test-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background: linear-gradient(135deg, var(--white-primary), var(--white-off));
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  font-family: 'Arial', sans-serif;
}

.test-header { text-align: center; margin-bottom: 30px; }

.test-header h2 { color: var(--black-charcoal); font-size: 28px; margin-bottom: 15px; }

.test-header p { color: var(--black-gray); font-size: 16px; line-height: 1.6; }

.test-body { margin-bottom: 30px; }

.question-container {
  margin-bottom: 25px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.question-container:hover { transform: translateY(-5px); }

.question { font-size: 18px; margin-bottom: 15px; color: var(--black-soft); font-weight: 500; }

.options { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.option {
  flex: 1;
  min-width: 80px;
  text-align: center;
  padding: 10px;
  background-color: var(--white-primary);
  border: 2px solid var(--green-subtle);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option:hover { background-color: var(--green-subtle); }

.option.selected {
  background-color: var(--green-primary);
  color: var(--black-primary);
  border-color: var(--green-dark);
  font-weight: bold;
}

.submit-btn {
  display: block;
  width: 200px;
  margin: 30px auto 0;
  padding: 15px;
  background-color: var(--green-primary);
  color: var(--black-primary);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover { background-color: var(--green-accent); }

.submit-btn:disabled { background-color: var(--black-gray); cursor: not-allowed; }

.results-container {
  display: none;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-top: 20px;
}

.results-title { font-size: 24px; color: var(--black-charcoal); text-align: center; margin-bottom: 20px; }

.score-display { text-align: center; margin: 20px 0; }

.score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: bold;
  color: var(--white-primary);
  margin: 0 auto;
  background: var(--green-primary);
}

.score-label { margin-top: 15px; font-size: 18px; font-weight: bold; }

.recommendation {
  padding: 20px;
  border-radius: 10px;
  background-color: var(--white-off);
  margin-top: 20px;
  border-left: 4px solid var(--green-primary);
}

.recommendation h4 { margin-top: 0; color: var(--black-soft); font-size: 20px; }

.recommendation ul { margin-top: 10px; padding-left: 20px; }

.recommendation li { margin-bottom: 10px; line-height: 1.5; }

.reset-btn {
  display: block;
  width: 200px;
  margin: 20px auto 0;
  padding: 12px;
  background-color: var(--green-dark);
  color: var(--white-primary);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.reset-btn:hover { background-color: var(--black-soft); }

/* Animación de preguntas */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-container { animation: fadeIn 0.5s ease forwards; }

.question-container:nth-child(2) { animation-delay: 0.1s; }
.question-container:nth-child(3) { animation-delay: 0.2s; }
.question-container:nth-child(4) { animation-delay: 0.3s; }
.question-container:nth-child(5) { animation-delay: 0.4s; }




/* Media queries para responsividad */
@media (max-width: 768px) {
    .test-container {
        max-width: 100%;
        margin: 10px;
    }

    .animations-container {
        flex-direction: row; /* Mantener horizontal en móviles */
        gap: 20px;
        max-width: 100%;
    }

    .side-animation lottie-player {
        width: 150px !important;
        height: 150px !important;
    }

    .test-header {
        padding: 30px 20px;
    }

    .test-header h2 {
        font-size: 2rem;
    }

    .test-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .animations-container {
        flex-direction: column; /* Apilar animaciones en pantallas muy pequeñas */
        align-items: center;
    }

    .side-animation {
        margin: 10px 0;
    }
}

/* ===== COLOR TEST SECTION ===== */
.color-test-section {
  background: linear-gradient(to bottom, var(--white-off), var(--white-cream));
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.color-test-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  padding: 0 20px;
}

.color-test-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--white-primary);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--green-subtle);
}

.color-test-wrapper {
  padding: 40px;
}

.test-instructions h3,
.color-selection h3,
.color-results h3 {
  margin-top: 0;
  color: var(--black-soft);
  font-size: 24px;
  margin-bottom: 20px;
}

.test-instructions p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--black-gray);
  margin-bottom: 15px;
}

.start-test-btn,
.reset-selection-btn,
.get-results-btn,
.restart-test-btn {
  background-color: var(--green-primary);
  color: var(--black-primary);
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.start-test-btn:hover,
.reset-selection-btn:hover,
.get-results-btn:hover,
.restart-test-btn:hover {
  background-color: var(--green-dark);
}

.start-test-btn {
  display: block;
  margin: 30px auto 0;
}

.reset-selection-btn {
  background-color: var(--black-soft);
  color: var(--white-primary);
  margin-right: 10px;
}

.reset-selection-btn:hover {
  background-color: var(--black-primary);
}

.get-results-btn:disabled {
  background-color: var(--black-gray);
  cursor: not-allowed;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.color-box {
  aspect-ratio: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 2px solid transparent;
}

.color-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  border-color: var(--green-primary);
}

.color-box.selected {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--green-dark);
}

.color-box.selected::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--black-primary);
  font-size: 24px;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

.selection-progress {
  text-align: center;
  font-size: 16px;
  margin: 20px 0;
  color: var(--black-gray);
}

.selected-colors {
  margin-top: 30px;
}

.selected-colors h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--black-soft);
}

.selected-colors-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.selected-color-item {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 1px solid var(--green-subtle);
}

.selected-color-number {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--green-primary);
  color: var(--black-primary);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.results-summary {
  background-color: var(--white-off);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
  border-left: 4px solid var(--green-primary);
}

.detailed-analysis,
.color-recommendations {
  margin-top: 30px;
}

.detailed-analysis h4,
.color-recommendations h4 {
  font-size: 20px;
  color: var(--black-soft);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--green-subtle);
}

.analysis-content,
.recommendations-content {
  line-height: 1.7;
  color: var(--black-gray);
}

.restart-test-btn {
  display: block;
  margin: 30px auto 0;
}

.personality-trait {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--green-subtle);
}

.personality-trait h5 {
  color: var(--black-charcoal);
  margin-bottom: 8px;
  font-size: 18px;
}

.personality-trait p { margin: 0; }

.color-meaning {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.color-sample {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--green-subtle);
}

.color-meaning-text { flex: 1; }

.color-meaning-text h5 {
  margin: 0 0 5px 0;
  font-size: 16px;
}

.color-meaning-text p {
  margin: 0;
  font-size: 14px;
}

/* ESTILOS DEL BOTÓN WHATSAPP FLOTANTE */
        .whatsapp-float {
            position: fixed;
            bottom: 25px;
            right: 25px;
            z-index: 1000;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .whatsapp-float:hover {
            transform: scale(1.1) translateY(-5px);
        }

        .whatsapp-btn {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
            position: relative;
            overflow: hidden;
            border: none;
            text-decoration: none;
        }

        .whatsapp-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
            border-radius: 50%;
        }

        .whatsapp-icon {
            width: 32px;
            height: 32px;
            fill: white;
            z-index: 2;
            transition: transform 0.3s ease;
        }

        .whatsapp-float:hover .whatsapp-icon {
            transform: rotate(10deg) scale(1.1);
        }

        /* Animación de pulso */
        .whatsapp-float::after {
            content: '';
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            border: 2px solid #25d366;
            border-radius: 50%;
            animation: whatsapp-pulse 2s infinite;
            opacity: 0;
        }

        @keyframes whatsapp-pulse {
            0% {
                transform: scale(0.8);
                opacity: 1;
            }
            100% {
                transform: scale(1.4);
                opacity: 0;
            }
        }

        /* Tooltip */
        .whatsapp-tooltip {
            position: absolute;
            right: 75px;
            top: 50%;
            transform: translateY(-50%);
            background: #333;
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 14px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .whatsapp-tooltip::after {
            content: '';
            position: absolute;
            left: 100%;
            top: 50%;
            transform: translateY(-50%);
            border: 6px solid transparent;
            border-left-color: #333;
        }

        .whatsapp-float:hover .whatsapp-tooltip {
            opacity: 1;
            visibility: visible;
            transform: translateY(-50%) translateX(-10px);
        }

        /* Versión móvil */
        @media (max-width: 768px) {
            .whatsapp-float {
                bottom: 20px;
                right: 20px;
            }
            
            .whatsapp-btn {
                width: 55px;
                height: 55px;
            }
            
            .whatsapp-icon {
                width: 28px;
                height: 28px;
            }
            
            .whatsapp-tooltip {
                display: none; /* Ocultar tooltip en móvil */
            }
        }

        /* Animación de entrada cuando se carga la página */
        .whatsapp-float {
            animation: whatsapp-bounce-in 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes whatsapp-bounce-in {
            0% {
                transform: scale(0) rotate(180deg);
                opacity: 0;
            }
            60% {
                transform: scale(1.2) rotate(-10deg);
                opacity: 1;
            }
            100% {
                transform: scale(1) rotate(0deg);
                opacity: 1;
            }
        }

        /* Efecto de ondas al hacer clic */
        .whatsapp-btn.clicked {
            animation: whatsapp-click-wave 0.6s ease;
        }

        @keyframes whatsapp-click-wave {
            0% {
                transform: scale(1);
                box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
            }
            50% {
                transform: scale(0.95);
                box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
            }
            100% {
                transform: scale(1);
                box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
            }
        }
    /* ESTILOS DEL BOTÓN FLOTANTE CUADRADO DE CITAS */
.booking-float-square {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
    cursor: pointer;
}

.booking-btn-square {
    width: 80px;
    height: 80px;
    background: #50C878;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.booking-icon-square {
    width: 24px;
    height: 24px;
    fill: white;
    margin-bottom: 4px;
}

.booking-text {
    color: white;
    text-align: center;
    line-height: 1;
}

/* Versión móvil */
@media (max-width: 768px) {
    .booking-float-square {
        bottom: 20px;
        left: 20px;
    }
    
    .booking-btn-square {
        width: 70px;
        height: 70px;
        font-size: 9px;
    }
    
    .booking-icon-square {
        width: 20px;
        height: 20px;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeText {
  0% { opacity: 0; transform: translateY(20px); }
  20% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes rotateShape {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes slideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes waveMove {
  0% { background-position: 0 0; }
  50% { background-position: 100px 0; }
  100% { background-position: 0 0; }
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1024px) {
  .navbar { padding: 12px 30px; height: 70px; }
  .hero { padding-top: 70px; }
  .quienes-somos .text-block { flex: 0.45; }
  .quienes-somos .image-block { flex: 0.55; }
  #lottie-animation { max-width: 650px; }
  .nav-links li { margin-left: 25px; }
}

@media (max-width: 768px) {
  .navbar { padding: 10px 20px; height: 60px; }
  .navbar .logo { height: 45px; }
  .hero { min-height: 80vh; padding-top: 60px; }
  .hero-content h1 { font-size: 3rem; margin-bottom: 15px; }
  .hero-content .motivational-text { font-size: 1.5rem; margin: 15px 0; }
  .cta { padding: 12px 40px; font-size: 1.2rem; }
  .section-content { flex-direction: column; }
  .quienes-somos .text-block { min-width: 100%; order: 2; }
  .quienes-somos .image-block { min-width: 100%; order: 1; }
  #lottie-animation { max-width: 100%; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav-container { position: relative; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background: var(--black-primary);
    flex-direction: column;
    padding: 70px 20px 20px;
    transition: right 0.3s ease;
    margin-right: 0;
  }
  .nav-links.active { right: 0; display: flex; }
  .nav-links li { margin: 20px 0; text-align: left; }
  .nav-links a { font-size: 1.2rem; white-space: nowrap; }
  .nav-phone {
    display: block;
    font-size: 1.1rem;
    white-space: nowrap;
    margin-top: 10px;
    padding: 5px 15px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 5px;
  }
  .color-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .options { flex-direction: column; }
  .option { margin-bottom: 8px; }
}

@media (max-width: 480px) {
  .navbar { padding: 8px 15px; height: 55px; }
  .navbar .logo { height: 40px; }
  .hero { min-height: 60vh; padding-top: 55px; }
  .hero-content h1 { font-size: 2.5rem; margin-bottom: 10px; }
  .hero-content .motivational-text { font-size: 1rem; margin: 10px 0; }
  .cta { padding: 10px 30px; font-size: 1.1rem; }
  .grid-container { grid-template-columns: 1fr; }
  .section h2 { font-size: 2rem; }
  .section h2::after { width: 80px; height: 3px; }
  .hero-shape { display: none; }
  .section-content { gap: 10px; }
  .text-block { padding: 15px; }
  .image-block { padding: 5px; }
}