/* El Charro Negro — diseño leyenda */
:root {
  --primario: #a4d0d9;
  --primario-hover: #8db3bb;
  --acento: #c8915a;
  --acento-hover: #ac7d4d;
  --oscuro: #0f1517;
  --claro: #eef5f6;
  --sobre-primario: #0f1517;
  --sobre-acento: #0f1517;
  --sobre-oscuro: #ffffff;
  --sobre-primario-suave: #242f32;
  --sobre-acento-suave: #383026;
  --suave: #565d5e;
  --suave-inv: #b0b6b8;
  --borde: #d3dadb;
  --borde-inv: #313637;
  --oscuro-0: #090d0e;
  --oscuro-2: #1b2123;
  --oscuro-3: #272c2e;
  --primario-en-claro: #0f1517;
  --acento-en-claro: #0f1517;
  --acento-en-primario: #0f1517;
  --acento-en-oscuro: #c8915a;
  --primario-en-acento: #0f1517;
  --primario-08: rgba(164, 208, 217, 0.08);
  --primario-16: rgba(164, 208, 217, 0.16);
  --acento-40: rgba(200, 145, 90, 0.4);
  --claro-92: rgba(238, 245, 246, 0.92);
  --oscuro-92: rgba(15, 21, 23, 0.92);
  --sobre-primario-12: rgba(15, 21, 23, 0.12);
  --sobre-acento-08: rgba(15, 21, 23, 0.08);
  --fuente: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fuente-titulos: "Cinzel", Georgia, "Times New Roman", serif;
  --fuente-acento: "Cinzel", Georgia, "Times New Roman", serif;
}

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texto);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--enlace); text-underline-offset: 3px; }
a:hover { color: var(--enlace-hover); }
h1, h2, h3 { font-family: var(--fuente-titulos); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 6px; }

.contenedor { width: min(1160px, 100% - 32px); margin-inline: auto; }
.seccion { padding: clamp(64px, 9vw, 104px) 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--texto); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700;
}
.saltar:focus { top: 12px; color: #fff; }

.seccion-titulo { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: var(--peso-titulo); }
.seccion-cabeza { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.seccion-cabeza.centrada { margin-inline: auto; text-align: center; }
.lead { font-size: 1.125rem; color: var(--texto-suave); }

/* ========== Botones ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { padding: .55rem 1.05rem; font-size: .92rem; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; }

/* ========== Encabezado ========== */
.encabezado {
  position: sticky; top: 0; z-index: 50;
  background: var(--encabezado-fondo);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--borde);
}
.encabezado-interior { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texto); }
.marca:hover { color: var(--texto); }
.marca-icono img { width: auto; height: 40px; }
.marca-icono span { font-family: var(--fuente-titulos); font-weight: 800; font-size: 1.18rem; letter-spacing: -.01em; }
.marca-logo img { width: auto; height: 46px; max-width: min(240px, 58vw); }
.marca-logo.ancha img { height: 32px; }
.marca-caja { background: var(--claro); padding: 6px 12px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav > a:not(.btn) { color: var(--texto); text-decoration: none; font-weight: 600; padding: .55rem .85rem; border-radius: 999px; }
.nav > a:not(.btn):hover { background: var(--hover-suave); }
.nav-toggle { display: none; }

@media (max-width: 991px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 0 11px; border: 2px solid var(--texto); border-radius: 14px;
    background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2.5px; background: var(--texto); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav {
    display: none; position: absolute; left: -16px; right: -16px; top: 100%;
    flex-direction: column; align-items: stretch; gap: 10px; padding: 16px;
    background: var(--menu-fondo); border-bottom: 1px solid var(--borde); box-shadow: 0 18px 30px rgba(0, 0, 0, .08);
  }
  .nav.abierto { display: flex; }
  .nav .btn { width: 100%; }
  .nav > a:not(.btn) { text-align: center; }
}

/* ========== Hero ========== */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.35rem, 5.4vw, 4rem); font-weight: 900; line-height: 1.02; margin-bottom: .45em; }
.hero-texto p { font-size: 1.15rem; max-width: 36em; margin-bottom: 1.8em; }
.hero-texto .hero-legal { font-size: .95rem; margin: 22px 0 0; }
.hero-legal a { font-weight: 700; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ========== Nosotros / tarjetas ========== */
.nosotros-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; margin-bottom: clamp(40px, 6vw, 64px); }
.tarjetas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tarjeta { background: var(--tarjeta-fondo); border: 1px solid var(--borde); border-radius: var(--radio); padding: 28px 24px; }
.tarjeta h3 { font-size: 1.2rem; font-weight: 800; margin: 18px 0 .4em; }
.tarjeta p { color: var(--texto-suave); font-size: .98rem; }
.icono { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; }
.icono svg { width: 28px; height: 28px; }
@media (max-width: 991px) { .tarjetas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .nosotros-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tarjetas { grid-template-columns: 1fr; } }

/* ========== Información legal ========== */
.legales { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tarjeta-legal {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 4vw, 36px); border-radius: calc(var(--radio) + 4px);
  background: var(--legal-fondo); border: 2px solid var(--texto); color: var(--texto); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.tarjeta-legal:hover { color: var(--texto); transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--texto); background: var(--legal-hover); }
.tarjeta-legal .icono { width: 60px; height: 60px; }
.tarjeta-legal h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 900; margin: 6px 0 0; }
.tarjeta-legal p { color: var(--texto-suave); margin: 0; }
.tarjeta-legal .leer { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-weight: 800; }
.tarjeta-legal .leer svg { width: 20px; height: 20px; transition: transform .18s ease; }
.tarjeta-legal:hover .leer svg { transform: translateX(4px); }
.nota {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px 20px;
  border-radius: 16px; background: var(--nota-fondo); color: var(--texto); font-size: .95rem;
}
.nota svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
@media (max-width: 760px) { .legales { grid-template-columns: 1fr; } }

/* ========== Contacto ========== */
.contacto-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contacto-dato {
  display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px 18px;
  border-radius: 18px; background: var(--dato-fondo); text-decoration: none; color: inherit; max-width: 100%;
}
.contacto-dato:hover { color: inherit; }
.contacto-dato .icono { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.contacto-dato .icono svg { width: 24px; height: 24px; }
.contacto-dato small { display: block; opacity: .8; font-size: .85rem; }
.contacto-dato strong { display: block; font-size: 1.02rem; overflow-wrap: anywhere; }
@media (max-width: 900px) { .contacto-grid { grid-template-columns: 1fr; } }

.formulario {
  background: #fff; color: var(--texto); border-radius: calc(var(--radio) + 6px);
  padding: clamp(22px, 4vw, 40px); box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}
.formulario h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: .25em; }
.formulario .ayuda { color: var(--texto-suave); font-size: .95rem; margin-bottom: 22px; }
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .fila { grid-template-columns: 1fr; } }
.campo { margin-bottom: 16px; }
.campo label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.campo label .opcional { font-weight: 400; color: var(--texto-suave); }
.campo input, .campo select, .campo textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--texto);
  padding: .8rem 1rem; border: 2px solid var(--input-borde); border-radius: 14px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.campo select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23555' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.campo textarea { min-height: 140px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--acento-form); box-shadow: 0 0 0 4px var(--anillo); }
.campo.invalido input, .campo.invalido select, .campo.invalido textarea { border-color: #d93025; }
.campo.invalido input:focus, .campo.invalido textarea:focus { box-shadow: 0 0 0 4px rgba(217, 48, 37, .15); }
.error-msg { display: block; color: #c5221f; font-size: .86rem; margin-top: 6px; min-height: 0; }
.error-msg:empty { display: none; }
.campo-check { display: flex; gap: 10px; align-items: flex-start; }
.campo-check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--acento-form); cursor: pointer; }
.campo-check label { font-weight: 400; margin: 0; cursor: pointer; }
.campo-check .error-msg { margin-left: 30px; }
.campo-oculto { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.formulario .btn-enviar { width: 100%; margin-top: 6px; font-size: 1.05rem; padding: 1rem 1.5rem; }
.girando { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

.form-estado { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-size: .97rem; border: 2px solid; }
.form-estado[hidden] { display: none; }
.form-estado svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.form-estado.exito { background: #e8f7ee; border-color: #1e8e3e; color: #0f5130; }
.form-estado.error { background: #fdecea; border-color: #d93025; color: #7a1a12; }
.form-estado.exito, .form-estado.error { animation: aparecer .25s ease; }
@keyframes aparecer { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ========== Pie de página ========== */
.pie { background: var(--pie-fondo); color: var(--pie-texto); padding: 60px 0 28px; font-size: .98rem; }
.pie-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.pie-titulo { font-family: var(--fuente-titulos); font-weight: 800; color: var(--pie-titulo, #fff); font-size: 1rem; margin: 0 0 14px; letter-spacing: .02em; }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li { margin-bottom: 10px; }
.pie a { color: var(--pie-enlace); text-decoration: none; }
.pie a:hover { color: var(--pie-titulo, #fff); text-decoration: underline; }
.pie-legal { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 44px; padding-top: 22px; text-align: center; font-size: .9rem; }
.pie-legal p { margin: 0; }
.pie-legal nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 8px; }
@media (max-width: 760px) { .pie-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ========== Páginas legales ========== */
.pagina-hero { background: var(--hero-fondo); color: var(--hero-texto); padding: clamp(40px, 6vw, 64px) 0 clamp(96px, 12vw, 128px); }
.migas { font-size: .92rem; margin-bottom: 14px; opacity: .9; }
.migas a { color: inherit; }
.pagina-hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 900; margin-bottom: .3em; }
.actualizado { margin: 0; opacity: .85; }
.documento-envoltura { padding: 0 0 clamp(64px, 8vw, 96px); }
.documento {
  position: relative; max-width: 880px; margin: -72px auto 0; background: #fff; color: var(--texto);
  border-radius: calc(var(--radio) + 6px); box-shadow: 0 24px 60px rgba(0, 0, 0, .10); padding: clamp(24px, 5vw, 56px);
}
.documento .intro { font-size: 1.08rem; }
.documento h2 { font-size: 1.28rem; font-weight: 800; margin: 2.1em 0 .6em; color: var(--doc-titulo); }
.documento h3 { font-size: 1.05rem; font-weight: 700; margin: 1.4em 0 .5em; }
.documento ul { padding-left: 1.3em; margin: 0 0 1em; }
.documento li { margin-bottom: .45em; }
.documento li::marker { color: var(--doc-titulo); }
.documento .aceptacion { margin-top: 2.2em; padding: 18px 20px; border-radius: 16px; background: var(--nota-fondo); }
.doc-nav { max-width: 880px; margin: 28px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc-nav a {
  display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-radius: 18px;
  background: #fff; border: 2px solid var(--texto); color: var(--texto); text-decoration: none; font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
}
.doc-nav a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--texto); color: var(--texto); }
.doc-nav a small { display: block; font-weight: 500; color: var(--texto-suave); font-size: .85rem; }
.doc-nav a:last-child { justify-content: flex-end; text-align: right; }
.doc-nav svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 640px) { .doc-nav { grid-template-columns: 1fr; } .doc-nav a:last-child { justify-content: flex-start; text-align: left; } }

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

/* ========== Logo del pie sobre caja clara (cuando no hay versión para fondo oscuro) ========== */
.pie-logo-caja { display: inline-block; background: var(--claro); padding: 14px 18px; border-radius: 16px; margin-bottom: 16px; }
.pie-logo-caja img { margin: 0; }

/* ========== Facebook ========== */
.facebook-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(28px, 5vw, 64px); align-items: center; }
.facebook-marco { width: 340px; max-width: 100%; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .12); }
.facebook-marco iframe { display: block; width: 100%; height: 500px; border: 0; }
.btn-facebook { background: #1877f2; color: #fff; }
.btn-facebook:hover { background: #0f5fd0; color: #fff; }
@media (max-width: 860px) { .facebook-grid { grid-template-columns: 1fr; } .facebook-marco { margin-inline: auto; } }

/* Varios datos de contacto seguidos (correo, teléfono, domicilio) */
.contacto-dato + .contacto-dato { margin-top: 12px; }

/* ===== Diseño LEYENDA: nocturno y de cine, foto a pantalla completa, titulares romanos (ej. El Charro Negro) ===== */
:root {
  --peso-titulo: 700;
  --radio: 2px;
  --texto: var(--sobre-oscuro);
  --texto-suave: var(--suave-inv);
  --fondo: var(--oscuro);
  --borde: var(--borde-inv);
  --enlace: var(--acento-en-oscuro);
  --enlace-hover: var(--sobre-oscuro);
  --foco: var(--primario);
  --hover-suave: rgba(255, 255, 255, .06);
  --encabezado-fondo: var(--oscuro-92);
  --menu-fondo: var(--oscuro);
  --tarjeta-fondo: transparent;
  --legal-fondo: var(--oscuro-2);
  --legal-hover: var(--oscuro-3);
  --nota-fondo: var(--oscuro-2);
  --dato-fondo: rgba(255, 255, 255, .05);
  --input-borde: #d4d8da;
  --acento-form: var(--acento-en-claro);
  --anillo: var(--acento-40);
  --pie-fondo: var(--oscuro-0);
  --pie-texto: var(--suave-inv);
  --pie-enlace: var(--sobre-oscuro);
  --pie-titulo: var(--primario);
  --hero-fondo: var(--oscuro);
  --hero-texto: var(--sobre-oscuro);
  --doc-titulo: #15191b;
  --grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.55'/%3E%3C/svg%3E");
}
/* Tarjetas blancas dentro del diseño oscuro */
.formulario, .documento, .doc-nav a { --texto: #15191b; --texto-suave: #586064; --borde: #e1e4e5; }

h1, h2, h3 { letter-spacing: .02em; line-height: 1.12; }
h3 { font-weight: 700; }
.btn {
  border-radius: 2px; text-transform: uppercase; letter-spacing: .16em; font-size: .86rem; font-weight: 600;
  padding: 1rem 1.6rem;
}
.btn-sm { font-size: .74rem; padding: .62rem 1rem; letter-spacing: .14em; }

/* Encabezado */
.encabezado { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.marca-logo.ancha img { height: 26px; max-width: min(300px, 62vw); }
.nav > a:not(.btn) { text-transform: uppercase; font-size: .76rem; letter-spacing: .18em; font-weight: 600; border-radius: 2px; }
.btn-primario, .btn-hero { background: var(--acento); color: var(--sobre-acento); }
.btn-primario:hover, .btn-hero:hover { background: var(--primario); color: var(--sobre-primario); }
.btn-borde, .btn-hero-2 { border: 1px solid rgba(255, 255, 255, .3); color: var(--sobre-oscuro); }
.btn-borde:hover, .btn-borde[aria-current="page"], .btn-hero-2:hover { border-color: var(--primario); color: var(--primario); background: transparent; }

/* Acentos */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 18px;
  font-size: .78rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--primario);
}
.eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--acento); }
.resalta { color: var(--acento-en-oscuro); }
.seccion-titulo::after { content: ""; display: block; width: 72px; height: 1px; margin-top: 22px; background: linear-gradient(90deg, var(--acento), transparent); }
.centrada .seccion-titulo::after { margin-inline: auto; background: linear-gradient(90deg, transparent, var(--acento), transparent); width: 140px; }

/* Portada: foto a pantalla completa */
.hero {
  min-height: min(90vh, 880px); display: flex; flex-direction: column; justify-content: center;
  padding: clamp(72px, 10vw, 128px) 0 0; background: var(--oscuro); isolation: isolate;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--grano); opacity: .16; mix-blend-mode: overlay; pointer-events: none; }
.ley-fondo { position: absolute; inset: 0; z-index: -1; }
.ley-fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 28%; filter: saturate(.85) contrast(1.05); }
.ley-fondo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--oscuro) 0%, var(--oscuro-92) 30%, rgba(0, 0, 0, .25) 62%, rgba(0, 0, 0, .1) 100%),
    linear-gradient(0deg, var(--oscuro) 0%, transparent 32%),
    radial-gradient(ellipse at 70% 40%, transparent 30%, rgba(0, 0, 0, .55) 100%);
}
.hero-grid { grid-template-columns: minmax(0, 640px); z-index: 2; }
.ley-sello img { width: min(360px, 78%); margin-bottom: clamp(26px, 4vw, 40px); filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .6)); }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.9rem); font-weight: 700; line-height: 1.08; }
.hero-texto p { color: var(--suave-inv); }
.hero-legal a { color: var(--sobre-oscuro); text-decoration-color: var(--acento); }
.ley-pie {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; margin-top: clamp(48px, 8vw, 96px); padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .12); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--suave-inv);
}
.ley-orla { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--acento) 0 6px, transparent 6px 14px); opacity: .55; }
@media (max-width: 860px) {
  .hero { min-height: 0; padding-top: 62vw; }
  .ley-fondo { bottom: auto; height: 82vw; }
  .ley-fondo img { object-position: 58% 20%; }
  .ley-fondo::after { background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, transparent 35%, var(--oscuro) 96%); }
  .ley-sello img { width: min(280px, 82%); }
  .ley-pie span:last-child { display: none; }
}

/* Nosotros: relatos con números romanos */
.nosotros { background: var(--oscuro); position: relative; }
.nosotros-logo { display: grid; place-items: center; padding: clamp(32px, 5vw, 56px); border: 1px solid rgba(255, 255, 255, .1); position: relative; }
.nosotros-logo::before, .nosotros-logo::after { content: "✦"; position: absolute; color: var(--acento); font-size: 14px; line-height: 1; }
.nosotros-logo::before { top: 12px; left: 14px; }
.nosotros-logo::after { bottom: 12px; right: 14px; }
.nosotros-logo img { width: min(380px, 100%); }
.nosotros-logo.caja-logo { background: var(--claro); }
.nosotros-retrato { padding: 14px; }
.nosotros-retrato img { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; filter: saturate(.85) contrast(1.05); }
@media (max-width: 860px) { .nosotros-retrato img { max-width: 300px; } }
@media (max-width: 560px) { .btn { white-space: normal; letter-spacing: .1em; } }
.tarjetas { counter-reset: relato; gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.tarjeta { border: 0; border-right: 1px solid rgba(255, 255, 255, .12); border-radius: 0; padding: 30px 26px 8px; counter-increment: relato; }
.tarjeta:last-child { border-right: 0; }
.tarjeta::before { content: counter(relato, upper-roman); display: block; font-family: var(--fuente-titulos); font-size: 2.6rem; line-height: 1; color: var(--acento-en-oscuro); }
.tarjeta .icono { display: none; }
.tarjeta h3 { font-size: 1.12rem; margin-top: 16px; }
@media (max-width: 991px) {
  .tarjeta:nth-child(2n) { border-right: 0; }
  .tarjeta { border-bottom: 1px solid rgba(255, 255, 255, .12); padding-bottom: 28px; }
}
@media (max-width: 560px) { .tarjeta { border-right: 0; } }

/* Facebook */
.facebook { background: var(--oscuro-2); }
.facebook-marco { border-radius: 2px; }

/* Información legal */
.informacion-legal { background: var(--oscuro); position: relative; }
.tarjeta-legal { border: 1px solid rgba(255, 255, 255, .14); border-radius: 2px; }
.tarjeta-legal:hover { color: var(--sobre-oscuro); border-color: var(--acento); box-shadow: 0 0 0 1px var(--acento), 0 22px 50px rgba(0, 0, 0, .45); transform: translateY(-3px); }
.tarjeta-legal .icono { border: 1px solid var(--primario); color: var(--primario); border-radius: 50%; }
.tarjeta-legal .leer { color: var(--acento-en-oscuro); text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; }
.nota { border-left: 2px solid var(--acento); border-radius: 0; }

/* Contacto */
.contacto { background: var(--oscuro-2); position: relative; }
.contacto::before { content: ""; position: absolute; inset: 0; background: var(--grano); opacity: .08; mix-blend-mode: overlay; pointer-events: none; }
.contacto .contenedor { position: relative; }
.contacto .lead { color: var(--suave-inv); }
.contacto-dato { border-radius: 2px; border: 1px solid rgba(255, 255, 255, .1); margin-top: 14px; }
.lead + .contacto-dato { margin-top: 28px; }
.contacto-dato .icono { background: transparent; border: 1px solid var(--acento); color: var(--acento-en-oscuro); border-radius: 50%; }
.formulario { border-radius: 2px; border-top: 3px solid var(--acento); }
.formulario h3 { letter-spacing: .02em; }
.formulario .btn-enviar { background: var(--oscuro); color: var(--sobre-oscuro); }
.formulario .btn-enviar:hover { background: var(--acento); color: var(--sobre-acento); }
.campo input, .campo select, .campo textarea { border-radius: 2px; }

/* Pie */
.pie { border-top: 1px solid rgba(255, 255, 255, .08); }
.pie-logo { width: 230px; margin-bottom: 18px; }
.pie-titulo { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; }
.pie a:hover { color: var(--primario); }

/* Páginas legales */
.pagina-hero { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.pagina-hero::before { content: ""; position: absolute; inset: 0; background: var(--grano); opacity: .12; mix-blend-mode: overlay; pointer-events: none; }
.pagina-hero .contenedor { position: relative; }
.pagina-hero h1 { font-weight: 700; }
.pagina-hero .migas a:hover { color: var(--primario); }
.documento { border-radius: 2px; }
.documento h2 { color: #15191b; font-family: var(--fuente-titulos); letter-spacing: .02em; }
.documento li::marker { color: var(--acento-en-claro); }
.doc-nav a { border-radius: 2px; background: #fff; border-color: #fff; }
.doc-nav a:hover { box-shadow: 0 0 0 2px var(--acento); transform: translateY(-2px); }
