/* Colores de la tarjeta de presentación */
:root {
  --marino: #0E1B33;
  --marino-claro: #1B2C4D;
  --dorado: #D9B45A;
  --dorado-oscuro: #C29E45;
  --blanco: #FFFFFF;
  --fondo-suave: #F4F6FA;
  --texto: #1A2233;
  --texto-suave: #4A5568;
  --borde: #D5DAE3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--blanco);
  padding-bottom: 72px; /* espacio para la barra fija del celular */
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--marino);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--marino); }
img { max-width: 100%; height: auto; display: block; }

.contenedor { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.estrecho { max-width: 760px; }
.centrado { text-align: center; }
.oculto { position: absolute; left: -9999px; }

/* Botones */
.boton {
  display: inline-block;
  width: 100%;
  min-height: 60px;
  padding: 17px 28px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.boton-dorado { background: var(--dorado); color: var(--marino); }
.boton-dorado:hover { background: var(--dorado-oscuro); }
.boton-marino { background: var(--marino); color: var(--blanco); }
.boton-marino:hover { background: var(--marino-claro); }
.boton:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 3px;
}

/* Encabezado */
.hero { background: var(--marino); color: var(--blanco); padding: 36px 0 48px; }
.hero h1 { color: var(--blanco); }
.hero-grid { display: flex; flex-direction: column-reverse; gap: 28px; }
.marca {
  color: var(--dorado);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.hero-sub { font-size: 1.15rem; color: #E6EAF2; }
.hero-nota { margin: 14px 0 0; font-size: 1rem; color: #C9D1E0; text-align: center; }
.hero-foto img {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid var(--dorado);
  object-fit: cover;
  background: var(--marino-claro);
}

/* Secciones */
.seccion { padding: 52px 0; }
.seccion-suave { background: var(--fondo-suave); }
.intro { font-size: 1.1rem; color: var(--texto-suave); }
.nota { margin-top: 24px; font-style: italic; color: var(--texto-suave); }

/* Tarjetas */
.tarjetas { display: grid; gap: 18px; margin-top: 24px; }
.tarjeta {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-top: 5px solid var(--dorado);
  border-radius: 10px;
  padding: 22px;
}
.tarjeta p:last-child { margin-bottom: 0; }
.cita { font-style: italic; color: var(--texto-suave); }

/* Quién soy */
.licencia {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 5px solid var(--dorado);
  background: var(--fondo-suave);
  font-size: 1rem;
}

/* Pasos */
.pasos { list-style: none; counter-reset: paso; margin: 24px 0 32px; padding: 0; display: grid; gap: 18px; }
.pasos li {
  counter-increment: paso;
  position: relative;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 22px 22px 22px 84px;
}
.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--marino);
  color: var(--dorado);
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 46px;
  text-align: center;
}
.pasos p { margin: 0; }

/* Preguntas frecuentes */
details { border-bottom: 1px solid var(--borde); }
details:first-of-type { border-top: 1px solid var(--borde); }
summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--marino);
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--dorado-oscuro);
}
details[open] summary::after { content: "–"; }
details p { padding: 0 0 20px; margin: 0; }

/* Formulario */
.formulario {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 24px 20px;
}
.formulario label { display: block; font-weight: 700; margin: 18px 0 6px; }
.formulario label:first-of-type { margin-top: 0; }
.formulario input[type="text"],
.formulario input[type="tel"],
.formulario select {
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  font: inherit;
  color: var(--texto);
  background: var(--blanco);
  border: 2px solid #8A94A6;
  border-radius: 8px;
}
.formulario .consentimiento {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 24px 0;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
}
.consentimiento input { flex: 0 0 28px; width: 28px; height: 28px; margin: 2px 0 0; accent-color: var(--marino); }
.mensaje-formulario { margin: 16px 0 0; font-weight: 700; }
.mensaje-formulario:empty { display: none; }
.mensaje-formulario.exito { padding: 16px; border-radius: 8px; background: #E6F4EA; color: #14532D; }
.mensaje-formulario.error { padding: 16px; border-radius: 8px; background: #FDECEC; color: #8A1C1C; }
.letra-chica { margin: 16px 0 0; font-size: 0.95rem; color: var(--texto-suave); text-align: center; }

/* Pie de página */
.pie { background: var(--marino); color: #D6DCE8; padding: 44px 0; font-size: 1rem; }
.pie a { color: var(--dorado); }
.pie-nombre { font-family: Georgia, serif; font-size: 1.4rem; color: var(--blanco); margin-bottom: 0.3em; }
.aviso {
  margin: 24px 0;
  padding-top: 24px;
  border-top: 1px solid #33425F;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #B9C2D3;
}

/* Barra fija de Llamar y WhatsApp (celular) */
.barra-fija {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
}
.barra-fija a {
  flex: 1;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.barra-llamar { background: var(--dorado); color: var(--marino); }
.barra-whatsapp { background: #128C4B; color: var(--blanco); }

/* Tabletas y computadoras */
@media (min-width: 760px) {
  body { font-size: 20px; padding-bottom: 0; }
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2.1rem; }
  .boton { width: auto; }
  .hero { padding: 72px 0; }
  .hero-grid { flex-direction: row; align-items: center; gap: 48px; }
  .hero-texto { flex: 1; }
  .hero-nota { text-align: left; }
  .hero-foto img { width: 320px; height: 320px; }
  .seccion { padding: 76px 0; }
  .tarjetas { grid-template-columns: 1fr 1fr; }
  .tarjetas-3, .pasos { grid-template-columns: repeat(3, 1fr); }
  .pasos li { padding: 84px 22px 22px; }
  .formulario { padding: 36px; }
  .formulario .boton { width: 100%; }
  .barra-fija {
    left: auto;
    right: 20px;
    bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
  }
  .barra-fija a { padding: 0 24px; min-height: 56px; font-size: 1.05rem; }
}

/* ===== Acabado premium (sobrio, sin animaciones pesadas) ===== */
::selection { background: var(--dorado); color: var(--marino); }
h1, h2 { letter-spacing: -0.01em; }

/* Filete dorado bajo los títulos de sección */
h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 14px;
  background: var(--dorado);
  border-radius: 2px;
}

/* Encabezado con profundidad */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(217, 180, 90, 0.22), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(64, 98, 168, 0.35), transparent 60%),
    var(--marino);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--dorado), transparent);
}
.hero-foto { position: relative; width: fit-content; margin: 0 auto; }
.hero-foto::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(217, 180, 90, 0.5);
  border-radius: 50%;
}
.hero-foto img { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.hero-texto > *, .hero-foto { animation: entrar 0.7s ease-out both; }
.hero-texto > :nth-child(2) { animation-delay: 0.08s; }
.hero-texto > :nth-child(3) { animation-delay: 0.16s; }
.hero-texto > :nth-child(4) { animation-delay: 0.24s; }
.hero-texto > :nth-child(5) { animation-delay: 0.32s; }
@keyframes entrar {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Botones con relieve */
.boton {
  box-shadow: 0 6px 18px rgba(14, 27, 51, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.boton:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 27, 51, 0.28); }
.boton:active { transform: translateY(0); }
.boton-dorado { background: linear-gradient(180deg, #E4C473, var(--dorado)); }

/* Tarjetas */
.tarjeta, .pasos li, .formulario {
  box-shadow: 0 2px 4px rgba(14, 27, 51, 0.04), 0 12px 28px rgba(14, 27, 51, 0.07);
}
.tarjeta { border-top-width: 4px; }
.tarjeta:hover { box-shadow: 0 18px 36px rgba(14, 27, 51, 0.13); }
.icono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--marino);
  color: var(--dorado);
}
.cita { padding-left: 18px; border-left: 3px solid var(--dorado); }


/* Aparición suave al bajar (solo si el JavaScript carga; sin él, el texto nunca queda oculto) */
.aparece { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.aparece.visible { opacity: 1; transform: none; }

/* ===== Ajustes de landing: textos cortos en celular ===== */
.hero-sub { font-size: 1.05rem; }
.tarjeta { padding: 20px 18px; }
.cierre { margin-bottom: 44px; }
details p { padding-bottom: 10px; }
details p:last-child { padding-bottom: 20px; }
.pasos li { padding: 22px; }
.pasos h3 { display: flex; align-items: center; min-height: 46px; padding-left: 60px; }
@media (min-width: 760px) {
  .hero-sub { font-size: 1.15rem; }
  .tarjeta { padding: 22px; }
  .pasos li { padding: 84px 22px 22px; }
  .pasos h3 { display: block; min-height: 0; padding-left: 0; }
}
