/* Layout: portada con retrato en arco, secciones respiradas en columna única que se abren a dos columnas en pantallas amplias. */
:root {
  --marfil: #FAF6EF;
  --beige: #F2EADF;
  --arena: #E4D6C3;
  --terracota: #A6543A;
  --terracota-osc: #8C4430;
  --terracota-suave: #F3E1D6;
  --cacao: #3A281E;
  --texto: #4B3C32;
  --texto-suave: #6B5A4E;
  --oliva: #636844;
  --oliva-suave: #E3E5D2;
  --blanco: #FFFDF9;

  --f-titulo: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --f-texto: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --t-xs: .8125rem;
  --t-s: .9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.25rem;
  --t-xl: clamp(1.9rem, 1.2rem + 3vw, 2.9rem);
  --t-xxl: clamp(2.45rem, 1.4rem + 4.6vw, 4.1rem);

  --radio: 18px;
  --ancho: 1160px;
  --sombra: 0 1px 2px rgba(58, 40, 30, .05), 0 12px 32px -14px rgba(58, 40, 30, .18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--marfil);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: var(--t-m);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--terracota-osc); text-underline-offset: 3px; }
a:hover { color: var(--cacao); }
h1, h2, h3 {
  font-family: var(--f-titulo);
  color: var(--cacao);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.005em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: var(--t-xl); }
h3 { font-size: 1.6rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--terracota); outline-offset: 3px; border-radius: 6px; }

.saltar {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cacao); color: var(--blanco); padding: .6rem 1rem; border-radius: 10px;
}
.saltar:focus { top: 12px; color: var(--blanco); }

.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 720px) { .contenedor { padding-inline: 32px; } }

.etiqueta {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--oliva);
}
.etiqueta::before { content: ""; width: 28px; height: 1.5px; background: var(--terracota); }

/* ---------- Aviso de vista previa ---------- */
.aviso-previa {
  background: var(--cacao); color: var(--marfil);
  font-size: var(--t-xs); text-align: center; padding: .55rem 16px; line-height: 1.45;
}
.aviso-previa strong { color: #F6C9B3; }
.pendiente {
  display: inline-block; border: 1.5px dashed var(--terracota); color: var(--terracota-osc);
  background: var(--terracota-suave); border-radius: 8px; padding: 0 .45rem;
  font-size: .85em; font-weight: 600; line-height: 1.6;
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.5rem; border-radius: 999px;
  font: 600 var(--t-s)/1.2 var(--f-texto); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.boton-principal { background: var(--terracota); color: var(--blanco); }
.boton-principal:hover { background: var(--terracota-osc); color: var(--blanco); transform: translateY(-1px); }
.boton-secundario { background: transparent; color: var(--cacao); border-color: var(--cacao); }
.boton-secundario:hover { background: var(--cacao); color: var(--marfil); }
.boton-whatsapp { background: var(--oliva); color: var(--blanco); }
.boton-whatsapp:hover { background: #4F5435; color: var(--blanco); }
.boton svg { width: 18px; height: 18px; flex: none; }

/* ---------- Encabezado ---------- */
.encabezado {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--arena);
}
.encabezado .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.marca { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; min-width: 0; }
.marca-nombre { font-family: var(--f-titulo); font-size: 1.5rem; font-weight: 600; color: var(--cacao); }
.marca-rol { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--oliva); font-weight: 600; margin-top: 2px; }
.marca-sep { display: none; }

.nav-lista { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.nav-lista a { white-space: nowrap; color: var(--cacao); text-decoration: none; font-size: var(--t-s); font-weight: 500; padding: .4rem 0; border-bottom: 1.5px solid transparent; }
.nav-lista a:hover { border-bottom-color: var(--terracota); color: var(--cacao); }
.nav-acciones { display: flex; align-items: center; gap: .75rem; }
.encabezado .boton { min-height: 44px; padding: .6rem 1.15rem; }

.menu-boton {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--arena);
  background: var(--blanco); color: var(--cacao); cursor: pointer;
}
.menu-boton svg { width: 22px; height: 22px; }
.menu-boton .icono-cerrar { display: none; }
.menu-boton[aria-expanded="true"] .icono-abrir { display: none; }
.menu-boton[aria-expanded="true"] .icono-cerrar { display: block; }

@media (max-width: 1099px) {
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--marfil); border-bottom: 1px solid var(--arena); box-shadow: 0 18px 30px -20px rgba(58,40,30,.35); }
  .nav[data-abierto="false"] { display: none; }
  .nav-lista { flex-direction: column; gap: 0; padding: .5rem 20px 1.25rem; }
  .nav-lista a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--arena); font-size: var(--t-m); }
  .encabezado .nav-acciones .boton { display: none; }
}
@media (min-width: 1100px) {
  .menu-boton { display: none; }
  .marca { flex-direction: row; align-items: baseline; gap: .7rem; }
  .marca-sep { display: inline; color: var(--arena); font-size: 1.3rem; }
  .marca-rol { margin-top: 0; }
}
@media (min-width: 480px) and (max-width: 1099px) {
  .encabezado .nav-acciones .boton { display: inline-flex; }
}

/* ---------- Portada ---------- */
.portada { padding-block: 1.25rem 3.5rem; overflow: hidden; }
.portada-grid { display: grid; gap: 1.75rem; align-items: center; }
.portada-foto { position: relative; width: min(68%, 262px); margin-inline: auto; margin-top: 10px; }
.portada-foto .arco {
  border-radius: 999px 999px var(--radio) var(--radio);
  overflow: hidden; background: var(--beige); aspect-ratio: 4 / 4.5; max-width: 100%;
  box-shadow: var(--sombra);
}
.portada-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portada-foto::before {
  content: ""; position: absolute; inset: -12px -12px 18px 18px; z-index: -1;
  border: 1.5px solid var(--oliva); opacity: .45;
  border-radius: 999px 999px var(--radio) var(--radio);
}
.ficha {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  background: var(--blanco); border: 1px solid var(--arena); border-radius: 999px;
  padding: .5rem 1.1rem; box-shadow: var(--sombra); white-space: nowrap;
  font-size: var(--t-xs); color: var(--cacao); font-weight: 600; display: flex; gap: .5rem; align-items: center;
}
.ficha i { width: 8px; height: 8px; border-radius: 50%; background: var(--oliva); display: inline-block; }

.portada-texto { display: grid; gap: 1rem; text-align: center; justify-items: center; padding-top: .9rem; min-width: 0; }
.portada h1 { font-size: var(--t-xxl); font-weight: 500; }
.portada .etiqueta { letter-spacing: .1em; }
@media (max-width: 899px) { .portada .etiqueta::before { display: none; } }
.portada h1 em { font-style: italic; color: var(--terracota); font-weight: 500; }
.portada-intro { max-width: 34rem; font-size: var(--t-s); color: var(--texto); }
@media (min-width: 900px) { .portada-intro { font-size: var(--t-m); } }
.portada-botones { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: .25rem; }
.sellos { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 0; font-size: var(--t-xs); color: var(--oliva); font-weight: 600; letter-spacing: .03em; }
.sellos li + li::before { content: "·"; color: var(--terracota); font-weight: 700; margin-inline: .6rem; }

@media (max-width: 479px) {
  .portada-botones .boton { flex: 1 1 100%; }
}
@media (min-width: 900px) {
  .portada { padding-block: 3.5rem 5rem; }
  .portada-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .portada-texto { text-align: left; justify-items: start; order: -1; padding-top: 0; }
  .portada-botones, .sellos { justify-content: flex-start; }
  .portada-foto { width: 100%; max-width: 440px; }
  .portada-foto .arco { aspect-ratio: 4 / 5; }
}

/* Entrada suave */
@media (prefers-reduced-motion: no-preference) {
  .portada-texto > *, .portada-foto { animation: subir .9s cubic-bezier(.2,.7,.2,1) both; }
  .portada-foto { animation-delay: .05s; }
  .portada-texto > :nth-child(2) { animation-delay: .12s; }
  .portada-texto > :nth-child(3) { animation-delay: .2s; }
  .portada-texto > :nth-child(4) { animation-delay: .28s; }
  .portada-texto > :nth-child(5) { animation-delay: .36s; }
  @keyframes subir { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Secciones ---------- */
.seccion { padding-block: 4rem; }
@media (min-width: 900px) { .seccion { padding-block: 6rem; } }
.seccion-alt { background: var(--beige); }
.seccion-cabeza { display: grid; gap: .85rem; max-width: 40rem; margin-bottom: 2.5rem; }
.seccion-cabeza p { color: var(--texto-suave); }
.centrada { text-align: center; margin-inline: auto; justify-items: center; }

/* Servicios */
.servicios { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .servicios { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .servicios { grid-template-columns: repeat(4, 1fr); } }
.servicio {
  background: var(--blanco); border: 1px solid var(--arena); border-radius: var(--radio);
  padding: 1.6rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .8rem; min-width: 0;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.servicio:hover { transform: translateY(-3px); box-shadow: var(--sombra); border-color: #D7C3AA; }
.servicio-icono {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--oliva-suave); color: var(--oliva);
}
.servicio-icono svg { width: 26px; height: 26px; }
.servicio h3 { font-size: 1.7rem; }
.servicio p { color: var(--texto); font-size: var(--t-s); flex: 1; }
.enlace-flecha {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: .4rem;
  font-weight: 600; font-size: var(--t-s); color: var(--terracota-osc); text-decoration: none;
  min-height: 44px;
}
.enlace-flecha svg { width: 18px; height: 18px; transition: transform .25s ease; }
.enlace-flecha:hover svg { transform: translateX(4px); }

/* Sobre María */
.sobre-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .sobre-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; } }
.sobre-foto { position: relative; max-width: 440px; width: 100%; margin-inline: auto; }
.sobre-foto img { border-radius: var(--radio); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--sombra); }
.sobre-foto::after {
  content: ""; position: absolute; right: -14px; bottom: -14px; width: 55%; height: 55%;
  background: var(--terracota-suave); border-radius: var(--radio); z-index: -1;
}
.sobre-texto { display: grid; gap: 1.1rem; min-width: 0; }
.sobre-texto p { max-width: 36rem; }
.cita {
  margin: .6rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--arena);
  font-family: var(--f-titulo); font-size: 1.65rem; line-height: 1.25; font-style: italic; color: var(--cacao); max-width: 32rem;
}
.cita footer { font-family: var(--f-texto); font-style: normal; font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--oliva); margin-top: .7rem; font-weight: 600; }

/* Pasos */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: paso; }
@media (min-width: 820px) { .pasos { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.paso { position: relative; padding: 1.5rem 1.5rem 1.6rem; border-top: 1.5px solid var(--cacao); display: grid; gap: .55rem; counter-increment: paso; }
.paso::before {
  content: counter(paso); font-family: var(--f-titulo); font-size: 3rem; line-height: 1; color: var(--terracota); font-weight: 500;
}
.paso h3 { font-size: 1.55rem; }
.paso p { font-size: var(--t-s); color: var(--texto); }
.nota-prudente { margin-top: 2rem; font-size: var(--t-xs); color: var(--texto-suave); max-width: 44rem; }

/* Motivos */
.motivos { display: grid; gap: 1.6rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .motivos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .motivos { grid-template-columns: repeat(4, 1fr); } }
.motivo { display: grid; gap: .55rem; align-content: start; }
.motivo-icono { width: 44px; height: 44px; color: var(--terracota); }
.motivo-icono svg { width: 30px; height: 30px; }
.motivo h3 { font-size: 1.45rem; }
.motivo p { font-size: var(--t-s); }

/* Preguntas */
.faq-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.faq { display: grid; gap: .75rem; min-width: 0; }
.faq details { background: var(--blanco); border: 1px solid var(--arena); border-radius: 14px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  font-weight: 600; color: var(--cacao); font-size: var(--t-m); line-height: 1.4; border-radius: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--terracota); border-bottom: 2px solid var(--terracota);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details > div { padding: 0 1.25rem 1.2rem; color: var(--texto); font-size: var(--t-s); display: grid; gap: .6rem; }

/* Contacto */
.contacto-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contacto-grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; } }
.contacto-info { display: grid; gap: 1.25rem; min-width: 0; }
.datos { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .9rem; }
.datos li { display: grid; grid-template-columns: 40px 1fr; gap: .8rem; align-items: center; }
.datos .ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blanco); border: 1px solid var(--arena); color: var(--oliva); }
.datos .ico svg { width: 18px; height: 18px; }
.datos small { display: block; font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--oliva); font-weight: 600; }
.datos a, .datos span.valor { color: var(--cacao); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }

.formulario {
  background: var(--blanco); border: 1px solid var(--arena); border-radius: 22px;
  padding: 1.5rem 1.25rem; display: grid; gap: 1.1rem; box-shadow: var(--sombra); min-width: 0;
}
@media (min-width: 600px) { .formulario { padding: 2.2rem; } .fila-2 { grid-template-columns: 1fr 1fr; } }
.fila-2 { display: grid; gap: 1.1rem; }
.campo { display: grid; gap: .4rem; min-width: 0; }
.campo label, .campo legend { font-weight: 600; color: var(--cacao); font-size: var(--t-s); padding: 0; }
.opcional { font-weight: 400; color: var(--texto-suave); font-size: var(--t-xs); }
.campo input, .campo select, .campo textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-texto); color: var(--cacao);
  background: var(--marfil); border: 1.5px solid var(--arena); border-radius: 12px; padding: .8rem .95rem; min-height: 50px;
  transition: border-color .2s ease, background-color .2s ease;
}
.campo textarea { min-height: 110px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--terracota); background: var(--blanco); box-shadow: 0 0 0 3px rgba(166,84,58,.18); }
.campo [aria-invalid="true"] { border-color: #B3261E; }
.error { color: #9B2119; font-size: var(--t-xs); font-weight: 600; min-height: 0; }
fieldset.campo { border: 0; margin: 0; padding: 0; }
.opciones { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcion span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--arena); background: var(--marfil); cursor: pointer; font-size: var(--t-s); color: var(--cacao); font-weight: 500;
}
.opcion input:checked + span { background: var(--oliva); border-color: var(--oliva); color: var(--blanco); }
.opcion input:focus-visible + span { outline: 3px solid var(--terracota); outline-offset: 2px; }

.privacidad-aviso {
  display: flex; gap: .75rem; align-items: flex-start;
  background: var(--oliva-suave); border-radius: 12px; padding: .9rem 1rem; font-size: var(--t-xs); color: #3E4129; line-height: 1.5;
}
.privacidad-aviso svg { width: 20px; height: 20px; flex: none; color: var(--oliva); margin-top: 1px; }
.consentimiento { display: grid; grid-template-columns: 24px 1fr; gap: .7rem; align-items: start; font-size: var(--t-xs); line-height: 1.55; color: var(--texto); }
.consentimiento input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--terracota); }
.formulario .boton { width: 100%; }
.estado { border-radius: 12px; padding: .9rem 1rem; font-size: var(--t-s); line-height: 1.5; }
.estado-pendiente { background: var(--terracota-suave); color: var(--cacao); border: 1.5px dashed var(--terracota); }
.estado-ok { background: var(--oliva-suave); color: #33361F; border: 1px solid var(--oliva); }
.estado-error { background: #F8E1DE; color: #7A1D16; border: 1px solid #C9776F; }
.oculto-bot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pie */
.pie { background: var(--cacao); color: #E9DDD0; padding-block: 3.5rem 2rem; font-size: var(--t-s); }
.pie a { color: #F3E6D8; }
.pie a:hover { color: #FFFFFF; }
.pie-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .pie-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.pie .marca-nombre { color: #FFF8EF; font-size: 1.8rem; }
.pie h2 { font-family: var(--f-texto); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: #C9CBA8; font-weight: 600; margin-bottom: .8rem; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.pie .pendiente { background: transparent; color: #F6C9B3; border-color: #D9967A; }
.pie-legal { border-top: 1px solid rgba(233,221,208,.2); margin-top: 2.5rem; padding-top: 1.5rem; display: grid; gap: .8rem; font-size: var(--t-xs); color: #CDBFB1; }

/* Botón flotante de WhatsApp (móvil) */
.flotante {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: var(--oliva); color: var(--blanco);
  display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(58,40,30,.5);
}
.flotante svg { width: 28px; height: 28px; }
.flotante:hover { background: #4F5435; color: var(--blanco); }

/* Páginas legales */
.legal { padding-block: 3rem 4rem; }
.legal article { max-width: 46rem; display: grid; gap: 1rem; }
.legal h1 { font-size: var(--t-xl); }
.legal h2 { font-size: 1.6rem; margin-top: 1rem; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
