/* ============================================================
   INDEX.CSS — Estilos específicos de index.html
   ============================================================ */

/* === TIPOGRAFÍA ESPECÍFICA DE INDEX === */
h3 {
  font-family: 'Inter', sans-serif;
}

.caption {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 0.78rem;
  color: #1b2d58;
  opacity: 0.45;
}

.story-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  line-height: 1.5;
  color: #1b2d58;
}

/* === PILLS / BOTONES === */
.pill {
  background-color: #1b2d58;
  color: #f5f4f2;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.pill-num {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
}

/* === HERO (escritorio) ===
   Bloque construido únicamente para pantallas de escritorio, sin ninguna
   regla @media. El responsive para móvil se diseñará aparte, en un bloque
   propio, cuando se aborde esa fase del proyecto. */

/* Sección a pantalla completa: foto de fondo + contenido superpuesto */
.hero-full {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Sin alto fijo: el alto lo marca la propia imagen (ver .hero-full-img),
   así nunca se recorta ni deja huecos grises, sea cual sea la proporción
   de la foto que se use */
.hero-full-photo {
  position: relative;
  width: 100%;
  line-height: 0;
}

.hero-full-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contenido superpuesto: ocupa exactamente el alto de la foto (su
   hermana en el DOM), no el del viewport */
.hero-full-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.75rem;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 3rem;
  /* Sube el bloque de texto un 27% de su propio alto respecto al centrado
     vertical, para compensar el peso visual de la foto en la mitad inferior */
  transform: translateY(-27%);
}

.hero-title {
  font-family: 'BricolageGrotesque', sans-serif;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-size: 4.2rem;
  color: #453a7a;
}

.hero-title--onphoto {
  width: 100%;
  max-width: 900px;
  padding: 0 1rem;
}

.hero-full-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #453a7a;
  margin: 0;
  width: 100%;
  max-width: 620px;
  padding: 0 0.6rem;
}

.hero-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-top: 0.25rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  background-color: #9787f4;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  letter-spacing: 0.01em;
  border: 1.5px solid #9787f4;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.hero-cta-group:hover .hero-cta {
  background-color: #ded7f6;
  border-color: #ded7f6;
  color: #453a7a;
}

/* === HERO (responsive móvil) ===
   Versión construida desde cero para pantallas pequeñas. En escritorio la
   foto marca el alto con height:auto para no recortar nunca la imagen,
   pero en móvil esa misma foto (apaisada) queda demasiado baja y no deja
   sitio para el texto superpuesto. Por eso aquí se le da una proporción
   fija (aspect-ratio) y se recorta con object-fit: cover. */
@media (max-width: 768px) {
  .hero-full-photo {
    aspect-ratio: 4 / 5;
    line-height: normal;
  }

  .hero-full-img {
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }

  .hero-full-content {
    gap: 1.1rem;
    max-width: 100%;
    padding: 0 1.5rem;
    transform: translateY(-11%);
  }

  .hero-title {
    font-size: 2.3rem;
    line-height: 1.05;
  }

  .hero-title--onphoto {
    max-width: 100%;
    padding: 0;
  }

  .hero-full-text {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 100%;
    padding: 0;
  }

  .hero-cta {
    font-size: 0.9rem;
    padding: 0.7rem 1.6rem;
  }
}

@media (max-width: 420px) {
  .hero-full-photo {
    aspect-ratio: 3 / 4;
  }

  .hero-title {
    font-size: 1.95rem;
  }
}

/* === SOBRE MÍ === */
.about-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: rgba(176, 184, 217, 0.18);
  border: 1px solid rgba(176, 184, 217, 0.35);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-split {
    grid-template-columns: 1fr;
  }
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #1b2d58;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.about-link:hover {
  opacity: 1;
}

/* === CÓMO FUNCIONA === */
.steps-section {
  padding: 0 0 120px;
}

.wheels-outer {
  position: relative;
  height: 400vh;
}

.wheels-sticky {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
}

.steps-col {
  display: flex;
  align-items: center;
  position: relative;
}

.steps-col--title {
  flex: 0 0 52%;
  justify-content: center;
  padding: 0 clamp(1.5rem, 3vw, 3rem);
  position: relative;
}

.steps-col--circle {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  pointer-events: none;
  z-index: 0;
}

.steps-col--content {
  flex: 1;
  overflow: hidden;
  padding-left: clamp(1.5rem, 3vw, 4rem);
  align-items: flex-start;
}

.steps-col--content::before,
.steps-col--content::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 30%;
  z-index: 2;
  pointer-events: none;
}

.steps-col--content::before {
  top: 0;
  background: linear-gradient(to bottom, #ffffff 0%, transparent 100%);
}

.steps-col--content::after {
  bottom: 0;
  background: linear-gradient(to top, #ffffff 0%, transparent 100%);
}

.steps-title-inner {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.steps-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ded7f6;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  width: max-content;
}

.steps-label::before {
  display: none;
}

.steps-main-title {
  font-family: 'BricolageGrotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(3.4rem, calc(5vw + 14px), 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #453a7a;
  position: relative;
  z-index: 1;
}

.steps-circle-svg {
  width: auto;
  height: 100%;
  display: block;
  max-width: 100%;
}

.step-dot-svg {
  transition: fill 0.2s ease;
}

.wheel-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.wheel-text-item {
  height: 25vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  transform-origin: left center;
}

.step-num-label {
  font-family: 'BricolageGrotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #d0c5fb;
  flex-shrink: 0;
  width: clamp(5rem, 9vw, 8rem);
  transition: color 0.45s ease;
}

.wheel-text-item.wheel-active .step-num-label {
  color: #9787f4;
}

.step-text-block {
  display: flex;
  flex-direction: column;
}

.wheel-subtitle {
  font-family: 'BricolageGrotesque', sans-serif;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #c5b8f8;
  margin-bottom: 0.55rem;
  transition: color 0.45s ease;
}

.wheel-text-item.wheel-active .wheel-subtitle {
  color: #1b2d58;
}

.wheel-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.035rem;
  line-height: 1.7;
  color: #c5b8f8;
  max-width: 34ch;
  transition: color 0.45s ease;
}

.wheel-text-item.wheel-active .wheel-desc {
  color: rgba(27, 45, 88, 0.65);
}

@media (max-width: 768px) {
  .wheels-outer {
    height: auto;
    padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
  }

  .wheels-sticky {
    position: static;
    height: auto;
    flex-direction: column;
    overflow: visible;
    gap: 3rem;
  }

  .steps-col--title {
    flex: none;
    justify-content: flex-start;
    padding-right: 0;
  }

  .steps-col--circle {
    display: none;
  }

  .steps-col--content {
    flex: none;
    padding-left: 0;
    overflow: visible;
  }

  .steps-col--content::before,
  .steps-col--content::after {
    display: none;
  }

  .wheel-track {
    transform: none !important;
  }

  .wheel-text-item {
    height: auto;
    padding: 1.5rem 0;
    transform: none !important;
    border-bottom: 1px solid rgba(27, 45, 88, 0.08);
    gap: 1.25rem;
  }

  .wheel-text-item .step-num-label {
    color: #9787f4;
  }

  .wheel-text-item .wheel-subtitle {
    color: #1b2d58;
  }

  .wheel-text-item .wheel-desc {
    color: rgba(27, 45, 88, 0.65);
  }

  .wheel-text-item:last-child {
    border-bottom: none;
  }

  .step-num-label {
    font-size: 2.5rem;
    width: 4rem;
  }
}

/* === MOTIVOS DE CONSULTA === */
.consult-section {
  padding: clamp(8rem, 10vw, 10rem) clamp(1.25rem, 4vw, 2.5rem);
  background-color: #ffffff;
  text-align: center;
}

.consult-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1b2d58;
  opacity: 0.45;
  display: block;
  margin-bottom: 0.85rem;
}

.consult-heading {
  font-family: 'BricolageGrotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(3.4rem, calc(5vw + 14px), 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #453a7a;
  margin-bottom: 1.25rem;
  white-space: nowrap;
  text-align: center;
}

.consult-lead {
  font-size: 1.15rem;
  color: #1b2d58;
  opacity: 0.65;
  line-height: 1.65;
  max-width: 58ch;
  margin: 0 auto;
}

/* Los títulos de sección (Terapia online, Aula del bienestar, Lo que
   necesitas saber, Motivos de consulta) llevan white-space: nowrap para
   mantenerse en una línea en escritorio. En móvil el tamaño mínimo de
   fuente no cabe en una sola línea y el texto se salía de la pantalla. */
@media (max-width: 768px) {
  #precios h2,
  #faq h2,
  .consult-heading {
    white-space: normal !important;
  }
}

/* === GRID MOTIVOS DE CONSULTA === */
.consult-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 5vw, 4rem);
  max-width: 1100px;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  text-align: center;
}

@media (max-width: 640px) {
  .consult-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 1.5rem;
  }
}

.cg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.cg-item:hover .cg-title {
  color: #9787f4;
}

.cg-title {
  transition: color 0.2s ease;
}

.cg-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background-color: #9787f4;
  border-radius: 0.75rem;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.cg-title {
  font-family: 'BricolageGrotesque', sans-serif;
  font-weight: 700;
  font-size: 1.3225rem;
  color: #453a7a;
  line-height: 1.25;
  margin: 0;
  transition: color 0.2s ease;
}

.cg-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #453a7a;
  opacity: 0.6;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

/* === PRECIOS === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 330px));
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pricing-card-featured {
    transform: none !important;
  }
}

.pricing-card {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 3px solid rgba(176, 184, 217, 0.4);
}

.pricing-card-featured {
  background-color: #453a7a;
  border-color: #453a7a;
  transform: translateY(calc(-1.25rem - 10px));
}

.pricing-card:not(.pricing-card-featured):hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(69, 58, 122, 0.12);
}

.pricing-card-featured:hover {
  transform: translateY(calc(-1.25rem - 10px - 10px));
  box-shadow: 0 24px 48px rgba(69, 58, 122, 0.25);
}

.pricing-plan-name {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #453a7a;
  opacity: 0.5;
  margin-bottom: 1rem;
  text-align: center;
}

.pricing-card-featured .pricing-plan-name {
  color: #ffffff;
  opacity: 0.5;
}

.pricing-amount {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: #453a7a;
  text-align: center;
}

.pricing-card-featured .pricing-amount {
  color: #ffffff;
}

.pricing-period {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 300;
  color: #453a7a;
  opacity: 0.5;
}

.pricing-card-featured .pricing-period {
  color: #453a7a;
  opacity: 0.5;
}

.pricing-btn {
  display: block;
  text-align: center;
  margin-top: 1.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.pricing-btn-outline {
  border: none;
  color: #ffffff;
  background: #453a7a;
}

.pricing-btn-outline:hover {
  background-color: #ded7f6;
  color: #453a7a;
}

.pricing-btn-light {
  background-color: #9787f4;
  color: #ffffff;
  border: none;
}

.pricing-btn-light:hover {
  background-color: #c8bcf8;
  color: #2e2560;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(176, 184, 217, 0.4);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pricing-card-featured .pricing-features {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.pricing-features li {
  font-size: 1.15rem;
  font-weight: 300;
  color: #453a7a;
  opacity: 0.7;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.4;
}

.pricing-card-featured .pricing-features li {
  color: #ffffff;
  opacity: 0.7;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  opacity: 0.6;
  font-size: 0.75rem;
  top: 0.05em;
}

/* === FORMULARIO === */
.contact-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  #formulario-contacto form[action] {
    grid-template-columns: 1fr !important;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group {
  border-top: 1px solid rgba(28, 53, 95, 0.12);
  padding: 1.4rem 0;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #1b2d58;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  position: relative;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(28, 53, 95, 0.2);
  padding: 0.55rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  color: #1b2d58;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-input::placeholder {
  color: #1b2d58;
  opacity: 0.3;
}

.form-input:focus {
  border-bottom-color: #1b2d58;
}

.form-textarea {
  resize: none;
  line-height: 1.65;
}

.select-wrapper {
  position: relative;
}

.form-select {
  cursor: pointer;
  padding-right: 1.5rem;
}

.select-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  opacity: 0.4;
  pointer-events: none;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 300;
  color: #1b2d58;
  opacity: 0.7;
  line-height: 1.5;
}

.form-checkbox {
  margin-top: 0.15rem;
  accent-color: #1b2d58;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.form-submit {
  background-color: #1b2d58;
  color: #f5f4f2;
  border: none;
  border-radius: 9999px;
  padding: 0.85rem 2.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  letter-spacing: 0.01em;
}

.form-submit:hover {
  background-color: #26406e;
}

/* === SECCIÓN CTA === */
.cta-link {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #f5f4f2;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(242, 242, 242, 0.35);
  padding-bottom: 0.3rem;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.85;
}

.cta-link:hover {
  border-color: rgba(242, 242, 242, 1);
  opacity: 1;
}

/* === FAQ === */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background-color: #ded7f6;
  border-radius: 1rem;
  border: 1px solid rgba(176, 184, 217, 0.35);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #453a7a;
  font-family: 'BricolageGrotesque', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.faq-trigger h3 {
  margin: 0;
  font: inherit;
  color: inherit;
}

.faq-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #453a7a;
  color: #f5f4f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1;
  position: relative;
  user-select: none;
}

.faq-icon svg {
  overflow: visible;
}

.faq-icon .icon-morph {
  d: path("M10 5 L10 15 M5 10 L15 10");
  transition: d 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.faq-item.open .faq-icon .icon-morph {
  d: path("M6 7 L10 13 M10 13 L14 7");
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease, padding 0.38s ease;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.4rem;
}

.faq-answer p {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.75;
  color: #453a7a;
}
