/* Sistema visual de Abigail Departamentos. Variables "Marca" del Figma (página 1, Fundamentos). */
:root {
  --marron: #8D501D;
  --marron-oscuro: #733F14;
  --naranja: #F49518;
  --arena: #DABC94;
  --celeste: #A5CBEE;
  --azul: #024E9E;
  --blanco: #FFFFFF;
  --crema: #FBF6EE;
  --arena-clara: #EFE2CF;
  --tinta: #33200F;
  --tinta-suave: #6B5745;
  --celeste-claro: #E8F0FA;
  --naranja-claro: #FDF0DC;
  --error: #B3311B;
  --error-claro: #FBE6E0;
  --exito: #4A7C59;
  --whatsapp: #14917F;
  --whatsapp-oscuro: #0F7566;
  --deshabilitado: #D0B8A5;

  --titulo: "hobeaux", "Sansita", "Trebuchet MS", sans-serif;
  --texto: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 1200px;
  --lateral: 24px;
  --radio: 16px;
  --radio-boton: 6px 6px 18px 6px;
  --sombra: 0 2px 10px rgba(51, 32, 15, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--blanco); color: var(--tinta); font: 400 1rem/1.55 var(--texto); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--marron); text-underline-offset: 3px; }
a:hover { color: var(--marron-oscuro); }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; border-radius: 4px; }
.barra :focus-visible, .pie__legal :focus-visible { outline-color: var(--blanco); }

h1, h2, .titulo { font-family: var(--titulo); font-weight: 700; color: var(--marron); line-height: 1.08; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); scroll-margin-top: 96px; }
h3 { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.suave { color: var(--tinta-suave); }
.chico { font-size: .875rem; }
.fuerte { font-weight: 600; }
.sobretitulo { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--marron); }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: 8px; top: -60px; z-index: 3000; background: var(--blanco); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.saltar:focus { top: 8px; }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico--lleno { stroke: none; }

.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--lateral); }
.seccion { padding-block: 88px; }
.seccion--crema { background: var(--crema); }
.seccion--celeste { background: var(--celeste); }
.encabezado { margin-bottom: 40px; }
.encabezado p { margin-top: 12px; max-width: 62ch; }

/* Tramas de marca: siempre como franja, nunca detrás de texto */
.trama { height: 36px; background: var(--celeste) url(/assets/marca/trama-a-marron.svg) repeat-x center / 67px 36px; }
.franja { height: 34px; background-size: 220px auto; background-position: center; }
.franja--ondas-arena { background-image: url(/assets/marca/trama-ondas-arena.jpg); }
.franja--ondas-azul { background-image: url(/assets/marca/trama-ondas-azul.jpg); }
.franja--circulos-arena { background-image: url(/assets/marca/trama-circulos-arena.jpg); }
.franja--circulos-azul { background-image: url(/assets/marca/trama-circulos-azul.jpg); }
.franja--a-naranja { background: url(/assets/marca/trama-a-naranja.svg) repeat-x center / 60px 32px; height: 32px; }

/* Botones: la esquina inferior derecha más redonda, como en el Figma */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border: 0; border-radius: var(--radio-boton); background: var(--marron); color: var(--blanco); font: 600 .9375rem/1.25 var(--texto); text-decoration: none; text-align: center; transition: background-color .15s; }
.boton:hover { background: var(--marron-oscuro); color: var(--blanco); }
.boton[disabled], .boton[aria-disabled="true"] { background: var(--deshabilitado); cursor: not-allowed; }
.boton--secundario { background: var(--blanco); color: var(--marron); box-shadow: inset 0 0 0 1.500px var(--marron); }
.boton--secundario:hover { background: var(--crema); color: var(--marron-oscuro); }
.boton--azul { background: var(--blanco); color: var(--azul); box-shadow: inset 0 0 0 1.500px var(--azul); }
.boton--azul:hover { background: var(--celeste-claro); color: var(--azul); }
.boton--whatsapp { background: var(--whatsapp); }
.boton--whatsapp:hover { background: var(--whatsapp-oscuro); }
.boton--blanco { background: var(--blanco); color: var(--marron); }
.boton--blanco:hover { background: var(--crema); color: var(--marron-oscuro); }
.boton--ancho { width: 100%; }
.boton--chico { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.enlace { background: none; border: 0; padding: 0; color: var(--marron); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.enlace:hover { color: var(--marron-oscuro); }
.enlace--azul { color: var(--azul); }
.enlace--volver { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-size: .9375rem; }
.enlace--volver:hover { text-decoration: underline; }
.enlace--volver .ico { width: 16px; height: 16px; }
/* Enlaces sueltos (volver, ayuda, cambiar, editar, ver detalles): área táctil de 44 px de alto sin mover el diseño. */
.enlace--volver, .barra__ayuda, [data-cambiar], .revisa__fila > .enlace, .checkout__nota, .cabecera-complejo__acciones > .enlace, .tipo--plano > .enlace, .faq + p > .enlace { position: relative; }
.enlace--volver::before, .barra__ayuda::before, [data-cambiar]::before, .revisa__fila > .enlace::before, .checkout__nota::before, .cabecera-complejo__acciones > .enlace::before, .tipo--plano > .enlace::before, .faq + p > .enlace::before { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 44px; transform: translateY(-50%); }

/* Campos */
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo > label, .campo__rotulo { font-size: .8125rem; font-weight: 600; }
.campo__aclara { font-weight: 400; color: var(--tinta-suave); }
.campo input, .campo select, .campo textarea, .campo__boton { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1.500px solid var(--marron); border-radius: 6px; background: var(--blanco); color: var(--tinta); font: 500 .9375rem/1.3 var(--texto); }
.campo input::placeholder, .campo textarea::placeholder { color: var(--tinta-suave); font-weight: 400; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible, .campo__boton:focus-visible { outline: 3px solid var(--azul); outline-offset: 1px; }
.campo--error input, .campo--error select { border-color: var(--error); }
.campo__error { color: var(--error); font-size: .8125rem; }
.campo__ayuda { color: var(--tinta-suave); font-size: .8125rem; }
.campo select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238D501D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 20px; padding-right: 38px; }
.campo__boton { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
.campo__boton span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campo__boton .ico { color: var(--marron); transition: transform .15s; }
.campo__boton[aria-expanded="true"] .ico { transform: rotate(180deg); }
.casilla { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .875rem; cursor: pointer; }
.casilla input { appearance: none; width: 22px; height: 22px; margin: 0; border: 1.500px solid var(--marron); border-radius: 5px; background: var(--blanco); display: grid; place-content: center; cursor: pointer; }
.casilla input:checked { background: var(--marron); }
.casilla input:checked::after { content: ""; width: 11px; height: 6px; border-left: 2.500px solid #fff; border-bottom: 2.500px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }

/* Avisos */
.aviso { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--arena-clara); font-size: .875rem; }
.aviso .ico { width: 22px; height: 22px; color: var(--marron); }
.aviso strong { display: block; font-size: .9375rem; font-weight: 600; }
.aviso--info { background: var(--celeste-claro); }
.aviso--info .ico { color: var(--azul); }
.aviso--naranja { background: var(--naranja-claro); }
.aviso--naranja .ico { color: var(--naranja); }
.aviso--error { background: var(--error-claro); display: block; }
.aviso--error strong { color: var(--error); }
.aviso--sin-icono { display: block; }

.pildora { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--arena-clara); color: var(--tinta); font-size: .75rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.pildora--azul { background: var(--celeste-claro); color: var(--azul); }
.etiqueta { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border: 1px solid var(--arena-clara); border-radius: 999px; background: var(--blanco); font-size: .8125rem; }
.etiqueta .ico, .dato-ico .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--azul); color: var(--blanco); }
.dato-ico { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; }

.tarjeta-blanca { background: var(--blanco); border: 1px solid var(--arena-clara); border-radius: 20px; padding: 40px; }

/* Barra de navegación */
.barra { position: sticky; top: 0; z-index: 1000; background: var(--marron); color: var(--blanco); }
/* Entorno de prueba: aviso persistente arriba de todo (solo en los entornos marcados en config.js). */
.aviso-prueba { margin: 0; padding: 6px 16px; background: var(--arena-clara); color: var(--marron-oscuro, var(--marron)); font-size: .8125rem; font-weight: 700; line-height: 1.3; text-align: center; border-bottom: 1px solid var(--arena); }
/* El interior de la barra ocupa todo el ancho de la pantalla: el monograma va a la izquierda (no alineado con el
   contenido central), con un margen seguro de 32 a 48 px, y la navegación inmediatamente después. Es una fila flexible,
   sin posiciones absolutas; el aviso de prueba sigue centrado arriba. */
.barra .contenedor { --margen-barra: clamp(32px, 3vw, 48px); display: flex; align-items: center; gap: 40px; min-height: 92px; max-width: none; padding-inline: max(var(--margen-barra), env(safe-area-inset-left)) max(var(--margen-barra), env(safe-area-inset-right)); }
.barra__marca { flex: none; display: block; width: 46px; }
.barra__marca img { width: 100%; height: auto; }
/* Inicio: el monograma aparece una sola vez al cargar. Opacidad y escala (no ocupa otro lugar: no mueve contenido), sin rebote. */
@keyframes aparece-monograma { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.barra__marca--aparece img { animation: aparece-monograma 360ms cubic-bezier(.2, .7, .3, 1) both; }
@media (prefers-reduced-motion: reduce) { .barra__marca--aparece img { animation: none; } }
.barra__enlaces { display: flex; align-items: stretch; }
.barra__enlaces a { display: flex; align-items: center; white-space: nowrap; padding: 16px 14px; color: var(--blanco); font-weight: 600; font-size: 1rem; text-decoration: none; border-left: 1.500px solid rgba(255, 255, 255, .85); }
.barra__enlaces a:first-child { border-left: 0; padding-left: 0; }
.barra__enlaces a:hover, .barra__enlaces a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.barra__acciones { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.barra__menu { display: none; width: 46px; height: 46px; padding: 8px; border: 0; background: none; color: var(--blanco); }
.barra__menu .ico { width: 30px; height: 30px; }
.barra--compacta .contenedor { min-height: 72px; }
.barra--compacta .barra__marca { width: 38px; }
.barra__ayuda { margin-left: auto; color: var(--blanco); font-weight: 600; font-size: .9375rem; }
.barra__ayuda:hover { color: var(--arena-clara); }
.barra__ayuda .corto { display: none; }

/* Pie */
.pie { background: var(--crema); }
.pie__grilla { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 40px 64px; padding-block: 48px 40px; font-size: .875rem; }
.pie__logo { display: block; width: 92px; }
.pie__logo img { width: 100%; height: auto; }
.pie__lema { margin-top: 14px; font-family: var(--titulo); font-weight: 700; font-size: 1.125rem; line-height: 1.2; color: var(--marron); }
.pie__rotulo { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--marron); margin-bottom: 10px; }
.pie__dato { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--tinta); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.pie__dato .ico { color: var(--marron); }
.pie__dato--wa .ico { color: var(--whatsapp); }
a.pie__dato:hover { text-decoration: underline; }
p.pie__dato { margin: 0; font-weight: 400; }
.pie__legales { display: flex; flex-direction: column; align-items: flex-start; max-width: 260px; }
.pie__legales a { display: block; padding: 5px 0; color: var(--tinta); text-decoration: none; }
.pie__legales a:hover { text-decoration: underline; }
.pie__redes { display: flex; gap: 10px; }
.pie__redes a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--marron); color: var(--blanco); }
.pie__redes a:hover { background: var(--marron-oscuro); }
.pie__usuario { margin-top: 10px; font-weight: 700; color: var(--marron); }
.pie__legal { background: var(--marron); color: var(--blanco); font-size: .75rem; }
.pie__legal .contenedor { display: flex; flex-direction: column; gap: 2px; padding-block: 12px calc(12px + env(safe-area-inset-bottom)); }
.pie__legal p { margin: 0; }
.pie__legal a { color: inherit; text-decoration: underline; }
.pie__copia { font-weight: 700; }
.pie__negocio { flex-basis: 100%; margin: 0; font-size: .75rem; line-height: 1.5; }
.pie__negocio a { color: inherit; text-decoration: underline; }
.pie--minimo .pie__negocio { color: inherit; }
.pie--minimo { background: var(--blanco); border-top: 1px solid var(--arena-clara); font-size: .875rem; }
.pie--minimo .contenedor { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 24px; }
.pie--minimo nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pie--minimo a { text-decoration: none; }
.pie--minimo a:hover { text-decoration: underline; }

/* WhatsApp: en celular va en la barra superior, junto al menú. No hay botones flotantes que tapen mapas, tarjetas
   ni las barras fijas de abajo. */
.barra__wa { display: none; }

/* Capas: hoja inferior, popover y diálogo */
.velo { position: fixed; inset: 0; z-index: 2000; background: rgba(51, 32, 15, .5); display: grid; place-items: center; padding: 24px; }
.dialogo { width: 100%; max-width: 480px; background: var(--blanco); border-radius: 18px; padding: 32px; box-shadow: 0 16px 48px rgba(51, 32, 15, .3); }
.dialogo h2 { font-family: var(--texto); font-size: 1.25rem; font-weight: 600; color: var(--tinta); line-height: 1.3; }
.dialogo p { margin-top: 12px; }
.dialogo__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.carga { display: grid; place-items: center; min-height: 40vh; color: var(--tinta-suave); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 900px) {
  .barra .contenedor { --margen-barra: var(--lateral); min-height: 76px; gap: 16px; }
  .barra__enlaces { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--marron); padding: 4px var(--lateral) 20px; box-shadow: 0 12px 20px rgba(51, 32, 15, .25); }
  .barra__enlaces.abierto { display: flex; }
  .barra__enlaces a, .barra__enlaces a:first-child { border-left: 0; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .3); font-size: 1.0625rem; }
  .barra__menu { display: block; }
  .pie__grilla { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 36px 28px; }
  .pie__marca { display: flex; align-items: center; gap: 14px; }
  .pie__logo { width: 64px; flex: none; }
  .pie__lema { margin: 0; }
  .pie__legales { max-width: none; }
  .pie__seguinos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
  .pie__seguinos .pie__rotulo { flex-basis: 100%; margin-bottom: 0; }
  .pie__seguinos .pie__usuario { margin: 0; }
}
@media (max-width: 640px) {
  :root { --lateral: 16px; }
  .seccion { padding-block: 56px; }
  .tarjeta-blanca { padding: 24px 20px; border-radius: 18px; }
  .barra__ayuda .largo { display: none; }
  .barra__ayuda .corto { display: inline; }
  .barra--compacta .contenedor { min-height: 64px; }
  .barra__wa { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px 10px 18px 10px; background: var(--whatsapp); color: var(--blanco); }
  .barra__wa .ico { width: 24px; height: 24px; }
  .velo { padding: 16px; }
  .dialogo { padding: 24px; }
  .dialogo__acciones { flex-direction: column; align-items: stretch; }
  .pie--minimo .contenedor { flex-direction: column; }
}

#contenido:focus { outline: none; }
[tabindex="-1"]:focus { outline: none; }
