/* ══════════════════════════════════════════════════════════════════════
   SEGUROS GYB — estilos de la página
   ══════════════════════════════════════════════════════════════════════
   Van en un archivo aparte, y no dentro del HTML, POR SEGURIDAD: así la
   cabecera Content-Security-Policy (ver `_headers`) puede prohibir todo
   estilo y todo script escrito dentro de la página. Si alguien lograra
   colar código en el HTML, el navegador no lo ejecutaría.

   Por lo mismo, el HTML no lleva atributos `style="…"`: todo es clase.

   LOS COLORES salen del logo, medidos sobre el archivo:
       azul del escudo  #182840    oro  #B89868    mármol  #080810
   El oro es apagado, de metal viejo: sobre blanco casi no contrasta, así
   que en claro nunca lleva texto encima (va en filetes, bordes e iconos).
   En las franjas oscuras sí puede, que es donde se ve como en el logo.
   ══════════════════════════════════════════════════════════════════════ */
:root {
  --azul: #182840; --azul-alto: #2C4A75; --azul-hondo: #0C1524;
  --oro: #B89868; --oro-alto: #D4B887; --oro-hondo: #8A7049;
  --bg: #F7F8FA; --sup: #FFFFFF; --tinta: #0E1726; --suave: #4B5A6E;
  --tenue: #8794A5; --linea: #E2E7EE; --ok: #0B7A52; --mal: #B4232A;
  --sombra: 0 1px 2px rgba(12,21,36,.05), 0 10px 30px rgba(12,21,36,.07);
  --radio: 16px;
  --tipo: "Segoe UI Variable Text","Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",system-ui,sans-serif;
  --titular: Constantia,"Palatino Linotype","Iowan Old Style",Palatino,Georgia,"Times New Roman",serif;
}
/* La página es clara a propósito y no sigue el tema del sistema: se
   comparte por WhatsApp y tiene que verse igual en todas las pantallas. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body { margin: 0; background: var(--bg); color: var(--tinta); font-family: var(--tipo);
       font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
       font-variant-numeric: tabular-nums lining-nums; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.caja { max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.saltar { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--oro); color: #14100A;
          padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.saltar:focus { left: 8px; }

/* ── tipografía ── */
h1, h2, h3 { font-family: var(--titular); font-weight: 400; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.1875rem; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
.ante { display: inline-flex; align-items: center; gap: .5rem; font-size: .6875rem; letter-spacing: .14em;
        text-transform: uppercase; font-weight: 600; color: var(--oro-hondo); margin-bottom: .9rem; }
.ante::before { content: ""; width: 22px; height: 1px; background: var(--oro); }
.lead { font-size: 1.0625rem; color: var(--suave); max-width: 62ch; margin-top: 1rem; }

/* ── botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit;
       font-size: .9375rem; font-weight: 600; padding: .8rem 1.5rem; border-radius: 999px;
       border: 1px solid transparent; cursor: pointer; text-decoration: none;
       transition: transform .14s, background .18s, border-color .18s, color .18s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-oro { background: var(--oro); color: #14100A; } .btn-oro:hover { background: var(--oro-alto); }
.btn-azul { background: var(--azul); color: #fff; } .btn-azul:hover { background: var(--azul-alto); }
.btn-linea { border-color: var(--linea); background: var(--sup); color: var(--tinta); } .btn-linea:hover { border-color: var(--azul-alto); }
.btn-claro { border-color: rgba(255,255,255,.3); color: #fff; background: transparent; }
.btn-claro:hover { border-color: var(--oro); color: var(--oro-alto); }
.btn-ancho { width: 100%; }

/* ── cabecera ── */
.cab { position: sticky; top: 0; z-index: 50; background: rgba(12,21,36,.94); backdrop-filter: blur(10px);
       border-bottom: 1px solid rgba(184,152,104,.22); }
.cab .caja { display: flex; align-items: center; gap: 1.5rem; padding-block: .65rem; }
.marca { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.marca img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.marca .nombre { display: block; }
.marca b { color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: .01em; display: block; line-height: 1.1; }
.marca small { color: var(--oro); font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; }
.menu { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.menu a { color: #C7D0DC; text-decoration: none; font-size: .875rem; font-weight: 500; transition: color .15s; }
.menu a:hover { color: var(--oro-alto); }
/* El botón conserva SU color: `.menu a` es más específico que `.btn-oro` y
   le ponía texto gris sobre oro (contraste 1,74, ilegible). */
.menu a.btn-oro, .menu a.btn-oro:hover { color: #14100A; padding: .55rem 1.1rem; }
@media (max-width: 920px) { .menu .ocultable { display: none; } }

/* ── el héroe ── */
.heroe { background: radial-gradient(900px 420px at 72% 18%, rgba(184,152,104,.16), transparent 62%),
         radial-gradient(700px 380px at 12% 72%, rgba(44,74,117,.42), transparent 60%),
         linear-gradient(180deg, #0C1524 0%, #10192B 60%, #0A111C 100%);
         color: #fff; position: relative; overflow: hidden; padding: 0; }
.heroe .caja { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1.15fr .85fr;
               padding-block: clamp(3rem, 7vw, 5.5rem); }
@media (max-width: 900px) { .heroe .caja { grid-template-columns: 1fr; gap: 2.2rem; } }
.heroe h1 { color: #fff; }
.heroe h1 em { font-style: normal; color: var(--oro-alto); }
.heroe .lead { color: #BFCAD8; font-size: 1.125rem; }
.heroe .lead b { color: var(--oro-alto); font-weight: 600; }
.heroe-botones { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.8rem; }
.heroe-sellos { display: flex; gap: 1.8rem; flex-wrap: wrap; margin-top: 2.2rem; padding-top: 1.5rem;
                border-top: 1px solid rgba(255,255,255,.1); }
.sello b { display: block; font-family: var(--titular); font-size: 1.6rem; color: var(--oro-alto); line-height: 1; }
.sello span { font-size: .75rem; color: #93A1B3; }
.heroe-escudo { display: grid; place-items: center; }
/* `height: auto` NO SOBRA: el <img> trae height="499" en el HTML (para que
   la página no salte mientras carga), y si el estilo solo cambia el ancho,
   ese alto se queda y el logo sale estirado hacia arriba. Pasó en la primera
   publicación del 26/11/2026. El logo es horizontal (703 × 499). */
.heroe-escudo img { width: min(100%, 540px); height: auto; aspect-ratio: 703 / 499; object-fit: cover;
                    border-radius: 20px; box-shadow: 0 30px 70px rgba(0,0,0,.5); border: 1px solid rgba(184,152,104,.3); }

/* ── bloques ── */
section { padding-block: clamp(3rem, 6vw, 5rem); }
.cab-bloque { max-width: 60ch; margin-bottom: 2.5rem; }
.rejilla { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.tarjeta { background: var(--sup); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.6rem;
           box-shadow: var(--sombra); }
.tarjeta h3 { margin-bottom: .4rem; }
.tarjeta p { font-size: .9375rem; color: var(--suave); }
.tarjeta-icono { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
                 background: linear-gradient(145deg, var(--azul), var(--azul-alto)); color: var(--oro-alto);
                 border: 1px solid rgba(184,152,104,.3); }
.tarjeta-icono svg { width: 22px; height: 22px; }

/* ── productos ── */
.grupo-prod { display: flex; align-items: baseline; gap: 1rem; margin: 2.4rem 0 1.1rem; }
.grupo-prod:first-of-type { margin-top: 0; }
.grupo-prod h3 { font-family: var(--tipo); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
                 font-weight: 700; color: var(--oro-hondo); white-space: nowrap; }
.grupo-prod::after { content: ""; flex: 1; height: 1px; background: var(--linea); }
.prods { display: grid; gap: 1.1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .prods { grid-template-columns: 1fr; } }
.prod { background: var(--sup); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden;
        box-shadow: var(--sombra); display: flex; flex-direction: column; cursor: pointer;
        transition: transform .18s, box-shadow .18s, border-color .18s; }
.prod:hover, .prod:focus-within { transform: translateY(-3px); border-color: rgba(184,152,104,.55);
        box-shadow: 0 2px 4px rgba(12,21,36,.06), 0 20px 44px rgba(12,21,36,.12); }
/* `height: auto` no sobra: con la altura fija de los atributos del <img>
   el `aspect-ratio` no manda y la foto salía más alta que ancha. */
.prod-foto { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #E8ECF2; }
/* La portada de los productos de empresa, mientras no tengan foto: el
   escudo de la marca y el ícono del ramo. Se lee como diseño, no como una
   imagen que no cargó. */
.prod-portada { aspect-ratio: 16 / 10; display: grid; place-items: center; position: relative; overflow: hidden;
                background: radial-gradient(320px 180px at 80% 10%, rgba(184,152,104,.28), transparent 70%),
                            linear-gradient(150deg, #0C1524, #1B2E4B 70%, #24406A); color: var(--oro-alto); }
.prod-portada::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(212,184,135,.25); border-radius: 10px; }
.prod-portada svg { width: 64px; height: 64px; position: relative; }
.prod-cuerpo { padding: 1.15rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.prod-cuerpo h3 { font-size: 1.15rem; }
.prod-cuerpo p { font-size: .9rem; color: var(--suave); flex: 1; }
.prod-btn { align-self: flex-start; margin-top: .5rem; font: inherit; font-size: .875rem; font-weight: 600; color: var(--azul);
            background: none; border: 0; padding: .35rem 0; cursor: pointer; display: inline-flex; align-items: center;
            gap: .4rem; border-bottom: 2px solid var(--oro); }
.prod-btn::after { content: "→"; transition: transform .15s; }
.prod:hover .prod-btn::after { transform: translateX(3px); }
.prod-btn:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
.tambien { margin-top: 1.6rem; padding: 1rem 1.2rem; border: 1px solid var(--linea); border-radius: 12px; background: var(--sup);
           text-align: center; color: var(--suave); font-size: .95rem; }
.tambien b { color: var(--tinta); }
.tambien a { color: var(--azul); font-weight: 600; }
/* Sin JavaScript el detalle no se puede abrir: se muestra desplegado. */
html:not(.js) .prod-detalle { display: block; padding: 0 1.2rem 1.2rem; }
html:not(.js) .prod-btn, html:not(.js) .modal { display: none; }

/* ── el diálogo del detalle ── */
.modal { width: min(580px, calc(100vw - 2rem)); max-height: min(88vh, 860px); padding: 0; border: 1px solid var(--linea);
         border-radius: 18px; background: var(--sup); color: var(--tinta); overflow: auto; box-shadow: 0 30px 80px rgba(12,21,36,.35); }
.modal::backdrop { background: rgba(8,13,22,.62); backdrop-filter: blur(3px); }
.modal-foto { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.modal-portada { aspect-ratio: 16 / 7; }
.modal-cuerpo { padding: 1.5rem; }
.modal-cuerpo h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.modal-cuerpo p { font-size: .9375rem; color: var(--suave); }
.modal-cuerpo h4 { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--azul); margin: 1.3rem 0 .5rem; font-weight: 600; }
.modal-cuerpo ul { margin: 0; padding-left: 1.15rem; font-size: .9375rem; color: var(--suave); }
.modal-cuerpo li { margin-bottom: .45rem; }
.modal-cuerpo li b { color: var(--tinta); }
.modal-pie { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--linea); }
.modal-x { position: absolute; top: .7rem; right: .7rem; z-index: 2; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
           border: 0; background: rgba(8,13,22,.55); color: #fff; font-size: 1.4rem; line-height: 1; display: grid; place-items: center; }
.modal-x:hover { background: rgba(8,13,22,.78); }
.modal-x:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }

/* ── el método ── */
.oscuro { background: linear-gradient(180deg, #0C1524, #121C2E); color: #fff; border-block: 1px solid rgba(184,152,104,.2); }
.oscuro h2 { color: #fff; }
.oscuro .lead, .oscuro p { color: #BFCAD8; }
/* Sobre azul oscuro el oro hondo se queda en 3,91 de contraste: el normal
   pasa de sobra y es el del logo. */
.oscuro .ante, .heroe .ante { color: var(--oro-alto); }
.pasos { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pasos { grid-template-columns: 1fr; } }
.paso { border: 1px solid rgba(184,152,104,.22); border-radius: var(--radio); padding: 1.4rem; background: rgba(255,255,255,.03); }
.paso-n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--titular);
          font-size: 1.15rem; color: #14100A; background: var(--oro); margin-bottom: 1rem; }
.paso h3 { font-size: 1.1rem; margin-bottom: .35rem; color: #fff; }
.paso p { font-size: .9375rem; }

/* ── aseguradoras ── */
.aliadas { display: grid; gap: .9rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 820px) { .aliadas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.aliada { background: #fff; border: 1px solid var(--linea); border-radius: 14px; height: 104px; display: grid; place-items: center;
          padding: 1rem 1.4rem; }
/* El tope va en píxeles: un `max-height: 100%` dentro de una rejilla no
   tiene contra qué medirse y el logo salía a su tamaño real, cortado. */
.aliada img { max-height: 62px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.aliadas-pie { margin-top: 1.2rem; font-size: .8125rem; color: var(--suave); }

/* ── quiénes somos ── */
.nosotros { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .nosotros { grid-template-columns: 1fr; } }
.nosotros .lead b { color: var(--tinta); }
.razones { display: grid; gap: .9rem; }
.razon { display: flex; gap: .9rem; align-items: flex-start; background: var(--sup); border: 1px solid var(--linea);
         border-radius: 14px; padding: 1.1rem 1.2rem; }
.razon svg { width: 22px; height: 22px; color: var(--oro-hondo); flex: 0 0 auto; margin-top: .15rem; }
.razon b { display: block; font-size: .975rem; }
.razon p { font-size: .9rem; color: var(--suave); margin-top: .15rem; }

/* ── contacto ── */
.contacto { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 820px) { .contacto { grid-template-columns: 1fr; } }
.lineas { display: grid; gap: 1rem; margin-top: 2rem; }
.linea { display: flex; gap: .9rem; align-items: center; text-decoration: none; }
.linea svg { width: 22px; height: 22px; color: var(--oro-alto); flex: none; }
.linea b { display: block; color: #fff; font-size: 1rem; font-weight: 600; }
.linea span { font-size: .8125rem; color: #93A1B3; }
a.linea:hover b { color: var(--oro-alto); }
.form-caja { background: #fff; color: var(--tinta); }
.campo { display: block; margin-bottom: .9rem; }
.campo span { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: .3rem; color: var(--tinta); }
.campo input, .campo select, .campo textarea { width: 100%; font: inherit; font-size: 1rem; padding: .7rem .85rem;
       border: 1px solid var(--linea); border-radius: 10px; background: var(--sup); color: var(--tinta); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--azul-alto);
       box-shadow: 0 0 0 3px rgba(44,74,117,.14); }
.campo [aria-invalid="true"] { border-color: var(--mal); }
.ayuda { font-size: .75rem; color: #6B7A8C; margin-top: .25rem; }
/* Un campo trampa: invisible para las personas, los robots lo llenan. */
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consentimiento { display: flex; gap: .6rem; align-items: flex-start; font-size: .8125rem; color: var(--suave); margin: 1rem 0; }
.consentimiento input { margin-top: .25rem; flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--azul); }
.consentimiento a { color: var(--azul-alto); }
.aviso { font-size: .875rem; margin-top: .8rem; min-height: 1.2em; }
.aviso.mal { color: var(--mal); } .aviso.bien { color: var(--ok); }

/* ── pie ── */
.pie { background: #080D16; color: #93A1B3; padding-block: 3rem 1.5rem; font-size: .875rem; }
.pie-rejilla { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .pie-rejilla { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pie-rejilla { grid-template-columns: 1fr; } }
.pie .marca { margin-bottom: 1rem; }
.pie h4 { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); margin: 0 0 .9rem; font-weight: 600; }
.pie a { color: #A7B3C3; text-decoration: none; }
.pie a:hover { color: var(--oro-alto); text-decoration: underline; }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li { margin-bottom: .45rem; }
.pie-fin { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; gap: 1rem;
           flex-wrap: wrap; justify-content: space-between; font-size: .75rem; color: #8592A3; }

/* ── botón flotante de WhatsApp ── */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid;
      place-items: center; background: #25D366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.28); text-decoration: none;
      transition: transform .16s; }
.wa:hover { transform: scale(1.06); }
.wa:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }
.wa svg { width: 30px; height: 30px; }

/* ── páginas legales ── */
.legal { max-width: 760px; margin-inline: auto; padding: clamp(2.5rem, 5vw, 4rem) 20px; }
.legal h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); margin-bottom: .6rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; }
.legal p, .legal li { color: var(--suave); }
.legal p + p { margin-top: .8rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal .fecha { font-size: .875rem; color: var(--tenue); }
.legal a { color: var(--azul-alto); }
.legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; margin-top: .6rem; }
.legal td, .legal th { border: 1px solid var(--linea); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.legal th { background: #EEF1F5; }
.error-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 20px; }
.error-404 p { color: var(--suave); margin: .8rem auto 1.6rem; max-width: 46ch; }
