/* Tipografía Inter alojada en la propia web (sin conexión a Google) */
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =========================================================
   Web de Daniel Ortiz · sistema de diseño (28 nov 2026)
   Móvil primero (390 px). Desktop: pendiente de montar.
   ========================================================= */

:root {
  /* Color */
  --texto: #1D1D1F;
  --texto-2: #6E6E73;
  --acento: #2445D6;
  --gris: #F5F5F7;
  --borde: #E8E8E8;
  --borde-campo: #D4D4D4;
  --borde-boton: #BFBFBF;
  --rojo: #E31717;
  --verde: #1C8A45;
  --blanco: #FFFFFF;

  /* Distancias: siempre múltiplos de 8 */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s8: 64px; --s12: 96px;

  --radio-foto: 16px;
  --radio-tarjeta: 24px;
  --sombra: 0 8px 24px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06);

  --fuente: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 720px; /* columna de lectura hasta tener la versión desktop */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.01em;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ---------- Tipografía ---------- */
.ceja    { font-size: 14px; line-height: 16px; font-weight: 500; color: var(--acento); letter-spacing: 0; }
.h1      { font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -0.03em; }
.h2      { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; }
.nota    { font-size: 12px; line-height: 16px; color: var(--texto-2); letter-spacing: 0; }

/* ---------- Estructura ---------- */
.bloque {
  padding: var(--s4) var(--s3);
  text-align: center;
}
.bloque > * { width: 100%; max-width: var(--ancho); margin-left: auto; margin-right: auto; }
.bloque, .bloque * { min-width: 0; }
.bloque--gris { background: var(--gris); padding-top: var(--s6); padding-bottom: var(--s6); }
.pila   { display: flex; flex-direction: column; gap: var(--s4); }
.encabezado { display: flex; flex-direction: column; gap: var(--s2); }
.ceja-titular { display: flex; flex-direction: column; gap: var(--s1); }

/* ---------- Botones ---------- */
.botones { display: flex; flex-direction: column; align-items: center; gap: var(--s2); width: 100%; }
.boton {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 48px; padding: 0 var(--s4);
  border-radius: 999px; border: 0;
  background: var(--texto); color: var(--blanco);
  font-weight: 600; cursor: pointer;
  transition: opacity .15s;
}
.boton:hover { opacity: .85; }
.enlace {
  display: inline-flex; padding: 12px 0;
  font-weight: 600; color: var(--acento);
}
.enlace:hover { text-decoration: underline; }

/* ---------- Foto ---------- */
.foto {
  width: 100%; height: 256px;
  border-radius: var(--radio-foto);
  object-fit: cover;
}

/* ---------- Barra ---------- */
.barra {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: var(--s1) var(--s2) var(--s1) var(--s3);
  background: var(--blanco); border-bottom: 1px solid var(--borde);
}
.barra__nombre { font-weight: 600; }
.barra__menu {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
}
.menu {
  position: fixed; inset: 60px 0 auto 0; z-index: 9;
  display: none; flex-direction: column;
  padding: var(--s2) var(--s3) var(--s3);
  background: var(--blanco); border-bottom: 1px solid var(--borde);
}
.menu.abierto { display: flex; }
.menu a { padding: 12px 0; font-size: 20px; line-height: 24px; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding-bottom: var(--s3); }
.hero .foto { object-position: 88% center; }

/* ---------- Logos ---------- */
.logos { padding-top: 0; display: flex; flex-direction: column; gap: var(--s2); }
.logos__texto { font-size: 14px; line-height: 20px; color: var(--texto-2); letter-spacing: 0; }
.logos__rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s1); width: 100%; }
.logo {
  display: flex; align-items: center; justify-content: center;
  height: 52px; border-radius: 8px; background: rgba(245,245,247,.4);
}
.logo--texto { background: #FBFBFB; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; color: var(--texto-2); }

/* ---------- Carruseles ---------- */
.carrusel {
  display: flex; gap: var(--s2);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: var(--s2) var(--s3);
  width: calc(100% + var(--s3) * 2) !important;
  margin-left: calc(var(--s3) * -1) !important; margin-right: calc(var(--s3) * -1) !important;
  max-width: none !important;
  scrollbar-width: none;
}
.carrusel::-webkit-scrollbar { display: none; }
.carrusel > * { scroll-snap-align: center; flex: 0 0 auto; }
@media (min-width: 768px) { .carrusel { justify-content: center; } }

/* ---------- Tarjetas que se giran ---------- */
.frases { gap: var(--s2); }
.tarjeta {
  width: 304px; height: 512px;
  perspective: 1200px;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: center;
}
.tarjeta__giro {
  position: relative; width: 100%; height: 100%;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
}
.tarjeta[aria-pressed="true"] .tarjeta__giro { transform: rotateY(180deg); }
.tarjeta__cara {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: var(--s3) var(--s2);
  background: var(--blanco); border-radius: var(--radio-foto); box-shadow: var(--sombra);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.tarjeta__cara--delante { gap: var(--s3); }
.tarjeta__cara--detras  { transform: rotateY(180deg); justify-content: space-between; padding-top: var(--s4); }
.tarjeta__ilustracion { width: 96px; height: 112px; object-fit: contain; }
.tarjeta__ilustracion--ancha { width: 112px; }
.tarjeta__frase { font-size: 20px; line-height: 24px; font-weight: 700; }
.separador { width: 64px; height: 1px; background: var(--texto); flex: none; }
.tarjeta__no  { flex: 1; font-size: 20px; line-height: 24px; font-weight: 600; color: var(--rojo); }
.tarjeta__si  { font-size: 20px; line-height: 24px; font-weight: 600; color: var(--verde); }
.tarjeta__contenido { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.tarjeta__grupo { display: flex; flex-direction: column; gap: var(--s1); }
.etiqueta { font-size: 14px; line-height: 16px; font-weight: 500; color: var(--texto-2); letter-spacing: 0; }
.tarjeta__pregunta { font-size: 20px; line-height: 24px; font-weight: 700; }
.tarjeta__abajo { display: flex; flex-direction: column; align-items: center; gap: var(--s2); width: 100%; }
.tarjeta__sesgo {
  display: flex; flex-direction: column; gap: var(--s1); width: 100%;
  padding: var(--s2); background: var(--gris); border-radius: var(--radio-foto);
  font-size: 14px; line-height: 20px; letter-spacing: 0; color: var(--texto);
}
.tarjeta__sesgo-titulo { font-weight: 500; line-height: 16px; }
.boton-girar {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  height: 48px; padding: 0 var(--s3); flex: none;
  border: 1px solid var(--borde-boton); border-radius: 999px; background: var(--blanco);
  font-weight: 500; letter-spacing: 0;
}
.boton-girar--volver { width: 204px; }
.llamada { display: flex; flex-direction: column; gap: var(--s2); width: 100%; }

/* ---------- Formatos ---------- */
.formatos { display: flex; flex-direction: column; gap: var(--s2); }
.formato {
  display: flex; flex-direction: column; gap: var(--s1);
  padding: var(--s3) var(--s3) var(--s4);
  background: var(--blanco); border-radius: var(--radio-tarjeta);
}
.formatos-botones { display: flex; flex-direction: column; gap: var(--s3); width: 100%; }

/* ---------- Testimonios ---------- */
.testimonios { padding-bottom: var(--s3); }
.testimonios__carrusel { display: flex; flex-direction: column; gap: var(--s2); }
.testimonio {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s4);
  width: 312px; min-height: 320px; padding: var(--s5) var(--s3);
  background: var(--gris); border-radius: var(--radio-tarjeta);
}
.testimonio__autor { display: flex; flex-direction: column; }
.testimonio__nombre { font-weight: 600; }
.testimonio__cargo { color: var(--texto-2); }
.puntos { display: flex; justify-content: center; gap: var(--s1); }
.punto { width: 8px; height: 8px; border-radius: 50%; background: #D4D4D4; }
.punto.activo { background: var(--texto); }

/* ---------- Quién soy ---------- */
.quien { padding-top: var(--s2); }
.quien .ceja-titular { gap: var(--s2); }
.quien .texto { display: flex; flex-direction: column; gap: var(--s3); }

/* ---------- Formulario ---------- */
.formulario { display: flex; flex-direction: column; gap: var(--s2); text-align: left; width: 100%; }
.campo { display: flex; flex-direction: column; gap: var(--s1); }
.campo label { font-weight: 600; }
.campo .opcional { font-weight: 400; color: var(--texto-2); }
.campo input, .campo textarea {
  width: 100%; height: 52px; padding: 14px var(--s2);
  font: inherit; color: var(--texto);
  background: var(--blanco); border: 1px solid var(--borde-campo); border-radius: 8px;
  outline: none; transition: border-color .15s;
}
.campo textarea { height: 112px; resize: vertical; }
.campo input:hover, .campo textarea:hover,
.campo input:focus, .campo textarea:focus { border-color: var(--texto); box-shadow: inset 0 0 0 1px var(--texto); }
.campo input:focus-visible, .campo textarea:focus-visible { outline: none; }
.formulario .nota { text-align: center; }
.formulario .nota a { text-decoration: underline; }

/* ---------- Pie ---------- */
.pie {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s3);
  font-size: 12px; line-height: 16px; color: var(--texto-2); letter-spacing: 0;
}
.pie a:hover { text-decoration: underline; }

/* ---------- Accesibilidad ---------- */
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tarjeta__giro { transition: none; }
}

/* =========================================================
   DESKTOP (≥ 1024 px) · diseño a 1440 px, contenido 1080
   ========================================================= */
.barra__nav { display: none; }

@media (min-width: 1024px) {
  :root { --contenido: 1080px; }

  .h1 { font-size: 48px; line-height: 56px; }
  .h2 { font-size: 40px; line-height: 48px; }
  .formato .h2, .testimonio .h2 { font-size: 24px; line-height: 32px; }

  /* Ancho del contenido */
  .bloque { padding-left: max(24px, calc((100% - var(--contenido)) / 2)); padding-right: max(24px, calc((100% - var(--contenido)) / 2)); }
  .bloque > * { max-width: var(--contenido); }
  .bloque > .encabezado, .bloque > .logos__texto { max-width: var(--ancho); }
  .bloque--gris { padding-top: var(--s12); padding-bottom: var(--s12); }

  /* Barra */
  .barra { height: 72px; padding: var(--s3) max(24px, calc((100% - var(--contenido)) / 2)); }
  .barra__menu, .menu { display: none !important; }
  .barra__nav { display: flex; gap: var(--s4); font-weight: 500; }
  .barra__nav a:hover { text-decoration: underline; }

  /* Botones en línea */
  .botones { flex-direction: row; justify-content: center; gap: var(--s3); width: auto; }
  .boton { width: 280px; }

  /* Dos columnas: foto 496 × 372, texto alineado arriba */
  .dos-columnas { flex-direction: row !important; align-items: flex-start; gap: var(--s8); text-align: left; }
  .dos-columnas > .foto { width: 496px; height: 372px; flex: none; }
  .dos-columnas > .columna-texto { flex: 1; min-width: 0; }
  .foto-izquierda > .foto { order: -1; }
  .foto-derecha > .foto { order: 1; }

  /* Hero */
  .hero { padding-top: var(--s8); padding-bottom: var(--s6); }
  .hero__texto { flex: 0 0 520px !important; gap: var(--s5); }
  .hero > .foto { flex: 1; width: auto; }
  .hero .botones { justify-content: flex-start; }
  .enlace { white-space: nowrap; }

  /* Logos */
  .logos { padding-bottom: var(--s6); align-items: center; }
  .logos__rejilla { grid-template-columns: repeat(6, 1fr); }

  /* Tres frases */
  .frases { padding-top: var(--s6); padding-bottom: var(--s6); gap: var(--s2); align-items: center; }
  .carrusel { justify-content: center; overflow: visible; }
  .llamada { width: auto; align-items: center; }

  /* Mis hijos */
  .hijos { padding-top: var(--s8) !important; padding-bottom: var(--s8) !important; }

  /* Qué ofrezco */
  .ofrezco { gap: var(--s4); }
  .formatos-botones { gap: var(--s5); align-items: center; }
  .formatos { flex-direction: row; gap: var(--s3); width: 100%; }
  .formato { flex: 1; }
  .ofrezco .botones { height: 112px; align-items: center; }

  /* Testimonios */
  .testimonios { padding-top: var(--s6); padding-bottom: var(--s6); align-items: center; }
  .testimonios .carrusel { gap: var(--s3); }
  .testimonio { width: 344px; height: 320px; }
  .puntos { display: none; }

  /* Quién soy */
  .quien { padding-top: var(--s6); padding-bottom: var(--s6); }

  /* Contacto */
  #contacto { align-items: center; }
  #contacto .h1 { font-size: 56px; line-height: 64px; }
  .formulario { max-width: 480px !important; align-items: stretch; }
  .formulario .boton { align-self: center; }

  /* Pie */
  .pie { padding: var(--s3) max(24px, calc((100% - var(--contenido)) / 2)); }
}

/* =========================================================
   PÁGINA FORMACIÓN
   ========================================================= */
.bloque--gris-suave { background: rgba(245,245,247,.5); padding-top: var(--s6); padding-bottom: var(--s6); }

/* Tarjeta de formato: sin sombra, blanca sobre gris, pie azul dentro */
.tarjetas-formato { display: flex; flex-direction: column; gap: var(--s3); }
.tarjeta-formato {
  display: flex; flex-direction: column;
  padding: 0 var(--s1) var(--s1);
  background: var(--blanco); border-radius: var(--radio-tarjeta);
}
.tarjeta-formato__cuerpo { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3) var(--s2); }
.tarjeta-formato__ceja { font-size: 14px; line-height: 16px; font-weight: 500; color: var(--acento); letter-spacing: 0; }
.cada-formato > .foto { margin-bottom: var(--s4); } /* 32 px más de aire sobre «Charla · Taller · Formación» */
.tarjeta-formato__pie {
  margin: 0; padding: var(--s2) var(--s3);
  background: #EEF4FC; border-radius: var(--radio-foto);
  font-size: 14px; line-height: 20px; color: #0B4A8B;
}
.lista-pie { list-style: none; padding-bottom: var(--s3); }

/* Pasos */
.pasos { list-style: none; margin: 0; padding: var(--s1) 0 0; display: flex; flex-direction: column; gap: var(--s2); }
.paso {
  display: flex; flex-direction: column; align-items: center; gap: var(--s1);
  padding: var(--s3); background: var(--gris); border-radius: var(--radio-tarjeta);
}
.paso__numero { font-size: 24px; line-height: 32px; font-weight: 500; color: #8C8C8C; }
.paso__titulo { font-weight: 600; }

/* Preguntas frecuentes */
.preguntas { text-align: left; }
.pregunta { border-bottom: 1px solid #E0E0E0; padding: var(--s2) 0; }
.pregunta summary {
  display: flex; align-items: center; gap: var(--s2);
  font-weight: 600; cursor: pointer; list-style: none;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after { content: "+"; margin-left: auto; font-size: 20px; font-weight: 400; }
.pregunta[open] summary::after { content: "–"; }
.pregunta p { margin-top: var(--s1); }
.barra__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.solo-desktop { display: none; }

/* ---------- Formación · desktop ---------- */
@media (min-width: 1024px) {
  .solo-desktop { display: block; }

  .entrada { padding-top: var(--s8); padding-bottom: var(--s6); }
  .entrada > .encabezado { max-width: 880px; }
  .entrada .h1 { font-size: 56px; line-height: 64px; }

  .bloque--gris-suave { padding-top: var(--s12); padding-bottom: var(--s12); }
  .cada-formato { align-items: center; }
  .cada-formato > .foto { height: 560px; }
  .cada-formato > .ceja-titular { max-width: var(--ancho); }
  .tarjetas-formato { flex-direction: row; align-items: stretch; }
  .tarjetas-formato .tarjeta-formato { flex: 1; }
  .tarjeta-formato .h2 { font-size: 24px; line-height: 32px; }
  .tarjetas-formato .tarjeta-formato__cuerpo { flex: 1; min-height: 208px; }
  .tarjetas-formato .tarjeta-formato__pie { min-height: 120px; display: flex; align-items: center; justify-content: center; }

  .a-medida { padding-top: var(--s6); padding-bottom: var(--s6); align-items: center; }
  .pasos { flex-direction: row; gap: var(--s3); }
  .paso { flex: 1; }

  .que-llevais { align-items: center; }
  .que-llevais > .tarjeta-formato { max-width: var(--ancho); }

  .faq { padding-top: var(--s6); padding-bottom: var(--s6); align-items: center; }
  .faq > * { max-width: var(--ancho); }
}

/* =========================================================
   PÁGINA CONTACTO
   ========================================================= */
.pagina-contacto main { display: flex; flex-direction: column; }
.contacto { min-height: calc(100vh - 60px - 64px); }
.pagina-contacto .campo input { height: 48px; padding-top: 12px; padding-bottom: 12px; }
.telefono { padding-top: var(--s2); text-align: center; }
.telefono a { font-weight: 600; color: var(--acento); }
.telefono a:hover { text-decoration: underline; }
.telefono .solo-desktop-inline { display: none; }

@media (min-width: 1024px) {
  .contacto { min-height: calc(100vh - 72px - 64px); }
  .pagina-contacto .formulario .boton { width: 100%; }
  /* En escritorio el teléfono no es pulsable: va en negro y sin enlace */
  .telefono .solo-movil { display: none; }
  .telefono .solo-desktop-inline { display: inline; }
}

/* =========================================================
   PÁGINAS LEGALES
   ========================================================= */
.legal { padding: var(--s4) var(--s3) var(--s6); }
.legal > * { max-width: var(--ancho); margin-left: auto; margin-right: auto; }
.legal h1 { margin-bottom: var(--s1); }
.legal .actualizado { color: var(--texto-2); font-size: 14px; margin-bottom: var(--s4); }
.legal h2 { font-size: 20px; line-height: 24px; font-weight: 600; margin: var(--s4) auto var(--s1); }
.legal p, .legal li { color: var(--texto); }
.legal p + p { margin-top: var(--s2); }
.legal ul { padding-left: 20px; margin-top: var(--s1); margin-bottom: 0; }
.legal li + li { margin-top: var(--s1); }
.legal a { color: var(--acento); font-weight: 500; }
.legal a:hover { text-decoration: underline; }
.datos { margin-top: var(--s2); padding: var(--s3); background: var(--gris); border-radius: var(--radio-foto); }
.datos p + p { margin-top: 0 !important; }
.pie__enlaces { display: flex; gap: var(--s1); }
@media (min-width: 1024px) { .legal { padding-top: var(--s8); padding-bottom: var(--s12); } }
.legal ul + p { margin-top: var(--s2); }
.foto--charla { object-position: 22% center; }
@media (min-width: 1024px) { .foto--charla { object-position: center 40%; } }
