/* ==========================================================
   Suelas Prefabricadas Arenal — estilos
   ========================================================== */
:root {
  --ink: #1b1411;          /* espresso */
  --ink-2: #251c17;
  --ink-3: #33271f;
  --cream: #f6efe6;
  --cream-2: #efe4d6;
  --paper: #fbf8f3;
  --brand: #d0935a;        /* caramelo del logo */
  --brand-2: #b97a41;
  --brand-soft: rgba(208, 147, 90, .14);
  --text: #2a211c;
  --muted: #7a6a5f;
  --line: rgba(42, 33, 28, .12);
  --line-dark: rgba(246, 239, 230, .14);
  --soft-dark: rgba(246, 239, 230, .64);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bs-body-font-family: var(--sans);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--paper);
  --bs-link-color: var(--brand-2);
  --bs-link-hover-color: var(--ink);
  --bs-border-radius: 14px;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: var(--paper); color: var(--text); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
::selection { background: var(--brand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.skip { position: absolute; z-index: 2000; top: 8px; left: 8px; background: var(--brand); color: var(--ink); padding: .5rem 1rem; border-radius: 8px; }

h1, h2, h3, h4, .display-title { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; font-variation-settings: "opsz" 144; }
.display-title { font-size: clamp(2.3rem, 5.4vw, 4.6rem); }
.display-title em, h1 em, h2 em { font-style: italic; color: var(--brand); font-weight: 300; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.text-brand { color: var(--brand) !important; }
.text-soft { color: var(--soft-dark); }
.lead-lg { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.65; color: var(--muted); }
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark .lead-lg, .section-dark p { color: var(--soft-dark); }
.section-dark .eyebrow { color: var(--brand); }
.section-cream { background: var(--cream); }

/* ---------- Botones ---------- */
.btn { border-radius: 999px; font-weight: 500; letter-spacing: .01em; padding: .8rem 1.6rem; transition: all .35s var(--ease); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: .55rem 1.2rem; font-size: .9rem; }
.btn-brand { background: var(--brand); color: var(--ink); border: 1px solid var(--brand); }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--cream); border-color: var(--cream); color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(208, 147, 90, .6); }
.btn-ink { background: var(--ink); color: var(--cream); border: 1px solid var(--ink); }
.btn-ink:hover { background: var(--brand); border-color: var(--brand); color: var(--ink); transform: translateY(-2px); }
.btn-outline-light { border-color: var(--line-dark); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow i { transition: transform .35s var(--ease); }
.link-arrow:hover i { transform: translateX(5px); }

/* ---------- Navegación ---------- */
.site-nav { padding: 1.3rem 0; transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s; }
.site-nav .nav-link { font-size: .95rem; font-weight: 500; padding: .5rem .9rem !important; position: relative; }
.site-nav .nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 1px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.nav-on-dark .site-nav .nav-link { color: rgba(246, 239, 230, .85); }
.nav-on-dark .site-nav .nav-link:hover, .nav-on-dark .site-nav .nav-link.active { color: #fff; }
.nav-on-dark .brand-text strong { color: var(--cream); }
.nav-on-light .site-nav .nav-link { color: var(--text); }
.site-nav.scrolled { padding: .65rem 0; background: rgba(27, 20, 17, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.site-nav.scrolled .nav-link { color: rgba(246, 239, 230, .85) !important; }
.site-nav.scrolled .brand-text strong { color: var(--cream) !important; }
.site-nav.scrolled .burger span { background: var(--cream) !important; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--ink); font-family: var(--serif); font-size: 1.45rem; font-style: italic; font-weight: 500; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--serif); font-weight: 500; letter-spacing: .14em; font-size: 1.2rem; color: var(--ink); }
.brand-text small { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brand); margin-top: .3rem; }

.navbar-toggler { border: 0; padding: .5rem; box-shadow: none !important; }
.burger { display: flex; flex-direction: column; gap: 6px; width: 26px; }
.burger span { height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.burger span:last-child { width: 60%; margin-left: auto; }
.nav-on-dark .burger span { background: var(--cream); }

@media (max-width: 991.98px) {
  .offcanvas { background: var(--ink); color: var(--cream); max-width: 86vw; }
  .offcanvas .brand-text strong { color: var(--cream); }
  .offcanvas .nav-link { color: var(--cream) !important; font-family: var(--serif); font-size: 2rem; padding: .35rem 0 !important; }
  .offcanvas .nav-link::after { display: none; }
  .offcanvas .nav-link.active { color: var(--brand) !important; font-style: italic; }
  .offcanvas-foot { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); color: var(--soft-dark); font-size: .95rem; }
  .offcanvas-foot a { color: var(--brand); text-decoration: none; font-size: 1.2rem; }
}

/* ---------- Hero portada ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--cream); background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(27, 20, 17, .6) 0%, rgba(27, 20, 17, .3) 35%, rgba(27, 20, 17, .8) 78%, var(--ink) 100%),
  linear-gradient(90deg, rgba(27, 20, 17, .92) 0%, rgba(27, 20, 17, .7) 40%, rgba(27, 20, 17, .1) 75%); }
.hero-inner { padding-top: 9rem; padding-bottom: 4.5rem; width: 100%; }
.hero h1 { font-size: clamp(3rem, 9vw, 8.2rem); line-height: .95; letter-spacing: -.035em; margin-bottom: 1.8rem; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero-sub { max-width: 34rem; font-size: 1.15rem; color: rgba(246, 239, 230, .78); }
.hero-fade { opacity: 0; animation: fadeUp 1s var(--ease) .5s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-badge { position: absolute; right: clamp(1rem, 5vw, 5rem); top: 50%; width: 150px; height: 150px; transform: translateY(-50%); display: none; }
@media (min-width: 992px) { .hero-badge { display: block; } }
.hero-badge svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero-badge text { fill: var(--cream); font: 600 10.5px var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.hero-badge .yr { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 1.9rem; color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line-dark); }
.hero-meta div { font-size: .85rem; color: rgba(246, 239, 230, .6); }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 400; color: var(--cream); line-height: 1.1; }
.scroll-hint { position: absolute; left: 50%; bottom: 1.5rem; width: 1px; height: 46px; background: linear-gradient(var(--brand), transparent); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Hero interior ---------- */
.page-hero { position: relative; padding: 11rem 0 5rem; background: var(--ink); color: var(--cream); overflow: hidden; isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 20, 17, .4), var(--ink)); }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 6rem); line-height: 1; }
.page-hero p { color: rgba(246, 239, 230, .72); max-width: 40rem; font-size: 1.15rem; }
.crumbs { font-size: .85rem; color: rgba(246, 239, 230, .55); margin-bottom: 1.5rem; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

/* ---------- Marquee ---------- */
.marquee { background: var(--brand); color: var(--ink); overflow: hidden; padding: 1.1rem 0; border-block: 1px solid rgba(0, 0, 0, .08); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem); white-space: nowrap; padding: 0 1.8rem; display: inline-flex; align-items: center; gap: 3.6rem; }
.marquee span::after { content: "✦"; font-size: .9rem; }
.marquee i { font-style: italic; font-weight: 300; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro / empresa ---------- */
.intro-media { position: relative; }
.intro-media .img-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.intro-media .img-main img { width: 100%; height: 100%; object-fit: cover; }
.intro-media .img-float { position: absolute; width: 48%; right: -6%; bottom: -10%; border-radius: var(--radius); overflow: hidden; border: 8px solid var(--paper); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); aspect-ratio: 1; }
.intro-media .img-float img { width: 100%; height: 100%; object-fit: cover; }
.intro-media .stamp { position: absolute; left: -1.2rem; top: 2rem; background: var(--ink); color: var(--cream); border-radius: 18px; padding: 1.1rem 1.3rem; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.intro-media .stamp strong { font-family: var(--serif); font-size: 2.6rem; font-weight: 400; color: var(--brand); display: block; line-height: 1; }
.intro-media .stamp span { font-size: .8rem; letter-spacing: .08em; }
@media (max-width: 575.98px) { .intro-media .img-float { right: 0; } .intro-media .stamp { left: .8rem; } }

.checks { list-style: none; padding: 0; margin: 1.8rem 0 2.2rem; display: grid; gap: .8rem; }
.checks li { display: flex; gap: .9rem; align-items: flex-start; }
.checks i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); font-size: .95rem; margin-top: .15rem; }
.section-dark .checks li { color: var(--cream); }

/* ---------- Tarjetas de producto ---------- */
.product-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); color: var(--cream); text-decoration: none; aspect-ratio: 3 / 4; isolation: isolate; }
.product-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.product-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(27, 20, 17, .92)); transition: opacity .5s; }
.product-card:hover img { transform: scale(1.07); }
.product-card .pc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem; }
.product-card .pc-num { position: absolute; top: 1.2rem; left: 1.4rem; font-family: var(--serif); font-style: italic; color: var(--ink); background: rgba(246, 239, 230, .9); border-radius: 999px; padding: .1rem .8rem; font-size: .9rem; }
.product-card h3 { font-size: 1.7rem; margin: 0 0 .4rem; color: #fff; }
.product-card p { font-size: .92rem; color: rgba(246, 239, 230, .75); margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s, margin .5s; }
.product-card:hover p, .product-card:focus-visible p { max-height: 6rem; opacity: 1; margin-top: .3rem; }
.product-card .pc-go { position: absolute; top: 1.1rem; right: 1.1rem; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--ink); display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .5s var(--ease); }
.product-card:hover .pc-go { transform: scale(1) rotate(0); }
@media (hover: none) { .product-card p { max-height: 6rem; opacity: 1; } .product-card .pc-go { transform: none; } }

/* ---------- Proceso ---------- */
.process { counter-reset: step; }
.step { position: relative; padding: 2.2rem 1.8rem 2rem; border: 1px solid var(--line-dark); border-radius: var(--radius); height: 100%; transition: background .4s, border-color .4s, transform .5s var(--ease); }
.step:hover { background: var(--ink-2); border-color: rgba(208, 147, 90, .5); transform: translateY(-6px); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-size: 3.4rem; font-style: italic; font-weight: 300; color: var(--brand); line-height: 1; display: block; margin-bottom: 1.4rem; }
.step h3 { font-size: 1.45rem; color: var(--cream); margin-bottom: .6rem; }
.step p { font-size: .95rem; margin: 0; }
.step .bi { position: absolute; top: 2rem; right: 1.8rem; font-size: 1.6rem; color: rgba(246, 239, 230, .3); }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 992px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 2.2rem 1.2rem 2rem 0; border-bottom: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1; color: var(--ink); }
.stat strong sup { font-size: .45em; color: var(--brand); top: -1.1em; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---------- Banda imagen ---------- */
.band { position: relative; min-height: 70vh; display: flex; align-items: center; color: var(--cream); overflow: hidden; isolation: isolate; }
.band .bg { position: absolute; inset: -12% 0; z-index: -2; }
.band .bg img { width: 100%; height: 100%; object-fit: cover; }
.band .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27, 20, 17, .9), rgba(27, 20, 17, .35)); }
.band blockquote { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1.1; letter-spacing: -.02em; max-width: 52rem; margin: 0; }
.band blockquote em { color: var(--brand); }

/* ---------- Productos detalle ---------- */
.type-row { padding: clamp(3rem, 7vw, 6rem) 0; border-bottom: 1px solid var(--line); }
.type-row:last-child { border-bottom: 0; }
.type-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--cream-2); position: relative; }
.type-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.type-img:hover img { transform: scale(1.05); }
.type-index { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--brand-2); }
.type-row h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin: .4rem 0 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.chip { font-size: .8rem; font-weight: 500; letter-spacing: .04em; padding: .4rem .95rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: #fff; }
.type-nav { position: sticky; top: 76px; z-index: 5; background: rgba(251, 248, 243, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.type-nav .inner { display: flex; gap: .5rem; overflow-x: auto; padding: .9rem 0; scrollbar-width: none; }
.type-nav .inner::-webkit-scrollbar { display: none; }
.type-nav a { flex: none; font-size: .9rem; padding: .45rem 1.1rem; border-radius: 999px; color: var(--text); text-decoration: none; border: 1px solid var(--line); transition: .3s; }
.type-nav a:hover, .type-nav a.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 3rem; }
.filters button { font-size: .92rem; padding: .55rem 1.25rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); transition: .3s; }
.filters button:hover { border-color: var(--ink); }
.filters button.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.gallery-item { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.gallery-item.is-hidden { display: none; }
.g-card { display: block; width: 100%; border: 0; padding: 0; background: var(--cream-2); border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 1; cursor: zoom-in; }
.g-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g-card:hover img { transform: scale(1.06); }
.g-card .g-cap { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; justify-content: space-between; align-items: center; background: rgba(251, 248, 243, .92); backdrop-filter: blur(8px); border-radius: 14px; padding: .7rem 1rem; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); transform: translateY(12px); opacity: 0; transition: .45s var(--ease); }
.g-card:hover .g-cap, .g-card:focus-visible .g-cap { transform: none; opacity: 1; }
@media (hover: none) { .g-card .g-cap { transform: none; opacity: 1; } }

/* ---------- Lightbox ---------- */
.lightbox-content { background: transparent; border: 0; align-items: center; }
.lightbox-content img { max-height: 82vh; width: auto; border-radius: 16px; }
.lightbox-caption { color: var(--cream); font-family: var(--serif); font-size: 1.2rem; margin-top: 1rem; text-align: center; }
.lightbox-close { position: absolute; top: -2.5rem; right: 0; opacity: .9; }
.modal-backdrop.show { opacity: .88; background: var(--ink); }

/* ---------- Contacto ---------- */
.contact-card { color: var(--text); background: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(1.6rem, 4vw, 3rem); box-shadow: 0 40px 80px -50px rgba(27, 20, 17, .45); border: 1px solid var(--line); }
.form-floating > .form-control, .form-floating > .form-select { border-radius: 14px; border-color: var(--line); background: var(--paper); }
.form-floating > .form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .25rem var(--brand-soft); }
.form-floating > textarea.form-control { height: 170px; }
.form-floating > label { color: var(--muted); opacity: 1; }
.form-floating > .form-control:focus ~ label, .form-floating > .form-control:not(:placeholder-shown) ~ label, .form-floating > .form-select ~ label { color: var(--brand-2); }
.form-floating > .form-control:not(:placeholder-shown) ~ label::after, .form-floating > .form-control:focus ~ label::after, .form-floating > .form-select ~ label::after { background: transparent; }
.form-check-input:checked { background-color: var(--brand-2); border-color: var(--brand-2); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6rem; }
.info-list li { display: flex; gap: 1.1rem; }
.info-list .ic { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--ink-2); color: var(--brand); display: grid; place-items: center; font-size: 1.3rem; border: 1px solid var(--line-dark); }
.info-list small { display: block; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(246, 239, 230, .5); }
.info-list a, .info-list span { color: var(--cream); text-decoration: none; font-size: 1.1rem; }
.info-list a:hover { color: var(--brand); }
.map-wrap { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7; background: var(--cream-2); filter: grayscale(.9) sepia(.25) contrast(.95); transition: filter .6s; }
.map-wrap:hover { filter: none; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 767.98px) { .map-wrap { aspect-ratio: 4 / 3; } }
.alert-brand { background: var(--brand-soft); border: 1px solid rgba(208, 147, 90, .4); color: var(--ink); border-radius: 16px; }

/* ---------- Legal ---------- */
.legal { max-width: 52rem; }
.legal h2 { font-size: 1.8rem; margin: 2.8rem 0 1rem; }
.legal h3 { font-size: 1.3rem; margin: 2rem 0 .8rem; }
.legal p, .legal li { color: #4a3e36; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 6rem 0 2rem; position: relative; }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; padding-bottom: 4.5rem; margin-bottom: 4.5rem; border-bottom: 1px solid var(--line-dark); }
.footer-cta .display-title { margin: 0; }
.footer-logo { opacity: .95; }
.footer-h { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(246, 239, 230, .5); margin-bottom: 1.2rem; }
.footer-links li { margin-bottom: .55rem; }
.site-footer a { color: var(--cream); text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--brand); }
.footer-phone { font-family: var(--serif); font-size: 1.7rem; }
address { font-style: normal; }
.subsidies { margin-top: 4.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line-dark); }
.subsidy-card { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #fff; border: 0; border-radius: 16px; padding: 1.2rem; overflow: hidden; transition: transform .4s var(--ease); }
button.subsidy-card { cursor: zoom-in; }
button.subsidy-card:hover { transform: translateY(-4px); }
.subsidy-card img { width: 100%; max-height: 520px; object-fit: contain; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); font-size: .85rem; color: rgba(246, 239, 230, .5); }
.to-top { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; }
.to-top:hover { background: var(--brand); color: var(--ink) !important; border-color: var(--brand); }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(12% 0 12% 0 round var(--radius)); transition: clip-path 1.4s var(--ease); }
.reveal-img.in { clip-path: inset(0 0 0 0 round var(--radius)); }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-img { clip-path: none; }
  .hero h1 .line > span { transform: none; }
  .hero-fade { opacity: 1; }
}

/* Grano sutil */
.grain::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Captcha */
.captcha-row { display: flex; gap: .8rem; align-items: stretch; flex-wrap: wrap; }
.captcha-img { display: flex; align-items: center; gap: 6px; padding-right: 8px; flex: none; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); height: 58px; }
.captcha-img img { display: block; height: 100%; width: auto; }
.captcha-reload { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ink); color: var(--cream); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.captcha-reload:hover { background: var(--brand); color: var(--ink); transform: rotate(180deg); }
.captcha-row .form-floating { min-width: 200px; }
.captcha-row .form-control { letter-spacing: .3em; font-weight: 600; }

/* Antetítulo dentro del H1 */
.h1-kicker { display: flex; font-family: var(--sans); font-size: .78rem; line-height: 1.5; letter-spacing: .22em; font-weight: 600; margin-bottom: 1.4rem; }
.hero h1 .h1-kicker { margin-bottom: 1.6rem; }

/* Móvil: evitar desbordamiento horizontal */
html, body { overflow-x: clip; max-width: 100%; }
@media (max-width: 767.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
}
.info-list li > div { min-width: 0; }
.info-list a, .info-list span { overflow-wrap: anywhere; }
