
:root {
  --yellow: #e5cc00;
  --yellow-dark: #cbb500;
  --black: #0b0b0a;
  --ink: #171715;
  --graphite: #222220;
  --paper: #ffffff;
  --warm: #f3f1e9;
  --muted: #6b6b65;
  --line: #deddd5;
  --green: #25d366;
  --container: min(1180px, calc(100% - 40px));
  --radius: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: var(--container); margin-inline: auto; }
.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; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 9999; background: var(--yellow); color: var(--black); padding: 10px 16px; font-weight: 700; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.topbar { background: var(--black); color: #fff; font-size: .8rem; }
.topbar__inner { min-height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar p { margin: 0; letter-spacing: .02em; }
.topbar strong { color: var(--yellow); }
.topbar__links { display: flex; align-items: center; gap: 10px; color: #d8d8d3; }
.topbar a:hover { color: var(--yellow); }

.site-header { position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(0,0,0,.08); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand img { width: 238px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: .9rem; font-weight: 600; }
.main-nav > a:not(.btn) { position: relative; }
.main-nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 100%; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.main-nav > a:not(.btn):hover::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--black); padding: 11px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; background: #fff; margin: 5px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--small { min-height: 44px; padding-inline: 18px; font-size: .84rem; }
.btn--yellow { color: var(--black); background: var(--yellow); border-color: var(--yellow); box-shadow: 0 9px 24px rgba(229, 204, 0, .2); }
.btn--yellow:hover { background: #f2da00; border-color: #f2da00; }
.btn--ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.42); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--dark { color: #fff; background: var(--black); border-color: var(--black); }
.btn--outline-dark { color: var(--black); background: transparent; border-color: var(--black); }

.hero { position: relative; overflow: hidden; color: #fff; background: var(--black); }
.hero__pattern { position: absolute; z-index: 0; pointer-events: none; inset: 0; opacity: .18; background-image: linear-gradient(135deg, transparent 0 46%, rgba(229,204,0,.9) 46% 50%, transparent 50% 100%); background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent, #000 50%, #000); }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -220px; border-radius: 50%; border: 100px solid rgba(229,204,0,.12); }
.hero__grid { position: relative; z-index: 1; min-height: 680px; padding: 94px 0 84px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--yellow); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 36px; height: 2px; background: currentColor; }
.eyebrow--dark { color: #766900; }
.hero h1, .section-head h2, .story h2, .quote-steps h2, .location h2, .final-cta h2 { margin: 18px 0 20px; font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-weight: 800; letter-spacing: -.02em; line-height: .96; }
.hero h1 { max-width: 750px; font-size: clamp(3.4rem, 6.5vw, 6.4rem); }
.hero__copy > p { max-width: 680px; margin: 0; color: #d4d4ce; font-size: 1.08rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18); }
.hero__meta strong, .hero__meta span { display: block; }
.hero__meta strong { color: var(--yellow); font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-size: 1.7rem; line-height: 1; }
.hero__meta span { margin-top: 7px; color: #b9b9b3; font-size: .78rem; }
.hero__visual { position: relative; }
.hero-panel { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.055); backdrop-filter: blur(8px); }
.hero-panel--main { min-height: 355px; padding: 40px; border-radius: 26px 26px 8px 26px; position: relative; overflow: hidden; }
.hero-panel--main::after { content: ""; position: absolute; width: 260px; height: 260px; right: -100px; bottom: -120px; border-radius: 50%; background: var(--yellow); opacity: .12; }
.hero-panel__label { color: var(--yellow); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-panel__icon { width: 92px; margin: 30px 0 36px; stroke: var(--yellow); stroke-width: 2.3; fill: none; }
.hero-panel h2 { margin: 0; font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-size: 2.45rem; line-height: 1; }
.hero-panel p { max-width: 380px; margin: 14px 0 0; color: #c9c9c2; font-size: .92rem; }
.hero-panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.hero-panel--small { min-height: 115px; padding: 22px; border-radius: 8px; }
.hero-panel--small span, .hero-panel--small strong { display: block; }
.hero-panel--small span { color: var(--yellow); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.hero-panel--small strong { margin-top: 8px; font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-size: 1.25rem; }

.trust-strip { background: var(--yellow); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid article { min-height: 152px; display: flex; align-items: center; gap: 16px; padding: 30px 22px; border-right: 1px solid rgba(0,0,0,.16); }
.trust-grid article:first-child { border-left: 1px solid rgba(0,0,0,.16); }
.icon-wrap { width: 45px; height: 45px; flex: 0 0 45px; display: grid; place-items: center; border: 1px solid rgba(0,0,0,.25); border-radius: 50%; }
.icon-wrap svg, .service-card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-size: 1.28rem; }
.trust-grid span { margin-top: 4px; font-size: .72rem; line-height: 1.45; }

.section { padding: 112px 0; }
.section--light { background: #f7f6f1; }
.section--dark { color: #fff; background: var(--black); }
.section--warm { background: var(--warm); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: end; gap: 70px; margin-bottom: 52px; }
.section-head h2, .story h2, .location h2, .quote-steps h2, .final-cta h2 { font-size: clamp(3rem, 5vw, 5rem); }
.section-head p { margin: 0 0 8px; color: var(--muted); }
.section-head--dark p { color: #aaa9a2; }

.category-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.category-card { grid-column: span 4; min-height: 405px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); position: relative; overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.category-card:hover { transform: translateY(-6px); border-color: var(--yellow-dark); box-shadow: var(--shadow); }
.category-card--featured { grid-column: span 8; background: var(--yellow); border-color: var(--yellow); }
.category-card::after { content: ""; position: absolute; right: -55px; bottom: -80px; width: 190px; height: 190px; border: 30px solid rgba(0,0,0,.04); border-radius: 50%; }
.category-card__top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.category-card__index { font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-size: 1.2rem; font-weight: 800; }
.category-card__tag { padding: 7px 10px; border-radius: 99px; background: var(--black); color: #fff; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.category-card__icon { width: 80px; height: 80px; margin: 50px 0 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; }
.category-card h3 { margin: auto 0 10px; font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-size: 2rem; line-height: 1; position: relative; z-index: 1; }
.category-card p { margin: 0 0 20px; color: var(--muted); font-size: .9rem; position: relative; z-index: 1; }
.category-card--featured p { color: rgba(0,0,0,.7); }
.text-link { display: inline-flex; align-items: center; gap: 9px; width: fit-content; border: 0; background: none; padding: 0; font-weight: 800; font-size: .82rem; position: relative; z-index: 1; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.disclaimer { margin: 24px 0 0; color: var(--muted); font-size: .76rem; }

.brands-groups { border-top: 1px solid rgba(255,255,255,.16); }
.brand-group { display: grid; grid-template-columns: 65px 260px 1fr; align-items: center; gap: 30px; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.brand-group__number { color: var(--yellow); font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-size: 1.35rem; font-weight: 800; }
.brand-group h3 { margin: 0; font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-size: 1.8rem; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-chips span { padding: 9px 13px; border: 1px solid rgba(255,255,255,.19); border-radius: 7px; color: #d7d7d0; font-size: .76rem; font-weight: 700; }

.story__grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 100px; }
.story__visual { position: relative; min-height: 560px; background: var(--black); border-radius: 28px; overflow: hidden; display: grid; place-items: center; }
.story__visual::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(229,204,0,.35); border-radius: 18px; }
.story__monogram { color: var(--yellow); font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-size: clamp(7rem, 16vw, 13rem); font-weight: 800; letter-spacing: -.08em; line-height: 1; }
.story__lines { position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, transparent 0 22px, rgba(229,204,0,.08) 22px 24px); }
.story__stamp { position: absolute; right: 24px; bottom: 24px; width: 168px; height: 168px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--black); background: var(--yellow); border-radius: 50%; text-align: center; transform: rotate(-7deg); }
.story__stamp strong { font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-size: 4rem; line-height: .8; }
.story__stamp span { max-width: 105px; margin-top: 8px; font-size: .7rem; font-weight: 800; line-height: 1.25; text-transform: uppercase; }
.story__copy p { color: var(--muted); }
.values-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.values-list span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: .75rem; font-weight: 700; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { min-height: 330px; display: flex; flex-direction: column; padding: 34px; border: 1px solid rgba(0,0,0,.12); border-radius: var(--radius); background: rgba(255,255,255,.45); }
.service-card__icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(0,0,0,.2); border-radius: 50%; }
.service-card h3 { margin: auto 0 14px; font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-size: 2rem; }
.service-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.quote-steps { padding: 105px 0; color: #fff; background: var(--graphite); }
.quote-steps__grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 90px; }
.quote-steps__intro p { max-width: 530px; color: #b9b9b2; }
.quote-steps__intro .btn { margin-top: 20px; }
.steps-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.steps-list li { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.steps-list li > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--black); background: var(--yellow); font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-size: 1.25rem; font-weight: 800; }
.steps-list strong { font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-size: 1.55rem; }
.steps-list p { margin: 5px 0 0; color: #b9b9b2; font-size: .86rem; }

.location__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: stretch; }
.location__address { margin: 0 0 30px; color: var(--muted); font-style: normal; font-size: 1.05rem; }
.contact-list { border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 135px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-list > div > span { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-list p { margin: 0 0 10px; color: var(--muted); }
.contact-list p:last-child { margin-bottom: 0; }
.contact-list a { color: var(--ink); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--yellow-dark); text-decoration-thickness: 2px; }
.location__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.location__map { min-height: 610px; position: relative; overflow: hidden; border-radius: 24px; background: #e6e6df; box-shadow: var(--shadow); }
.location__map iframe { width: 100%; height: 100%; min-height: 610px; border: 0; filter: grayscale(1) contrast(1.05); }
.map-note { position: absolute; left: 20px; bottom: 20px; min-width: 215px; padding: 16px 18px; border-left: 5px solid var(--yellow); border-radius: 7px; background: var(--black); color: #fff; }
.map-note strong, .map-note span { display: block; }
.map-note span { margin-top: 3px; color: #bdbdb6; font-size: .75rem; }

.final-cta { padding: 76px 0; color: #fff; background: var(--black); }
.final-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.final-cta h2 { max-width: 760px; margin-bottom: 0; }

.footer { color: #d5d5cf; background: #050504; }
.footer__grid { display: grid; grid-template-columns: 1.5fr .7fr 1fr .9fr; gap: 55px; padding: 70px 0 55px; }
.footer__brand img { width: 240px; filter: brightness(0) invert(1); opacity: .94; }
.footer__brand p { max-width: 330px; color: #94948e; }
.footer h3 { margin: 0 0 18px; color: var(--yellow); font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-size: 1.2rem; }
.footer a { display: block; width: fit-content; margin: 8px 0; color: #c7c7c1; font-size: .84rem; }
.footer a:hover { color: var(--yellow); }
.footer p { color: #94948e; font-size: .82rem; }
.footer-link { padding: 0; border: 0; background: none; font-weight: 700; }
.footer__bottom { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(255,255,255,.12); }
.footer__bottom p { margin: 0; }

.whatsapp-float { position: fixed; right: 24px; bottom: 24px; z-index: 850; height: 58px; display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; color: #fff; background: var(--green); border-radius: 999px; box-shadow: 0 13px 35px rgba(0,0,0,.25); font-size: .82rem; font-weight: 800; transition: transform .2s ease; }
.whatsapp-float:hover { transform: translateY(-3px); }
.whatsapp-float svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.reveal { opacity: 1; transform: none; }
.reveal--visible { opacity: 1; transform: none; }

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

@media (max-width: 1020px) {
  :root { --container: min(920px, calc(100% - 30px)); }
  .topbar__links { display: none; }
  .brand img { width: 210px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 15px; right: 15px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
  .main-nav--open { display: flex; }
  .main-nav > a { padding: 13px 12px; }
  .main-nav > a:not(.btn)::after { display: none; }
  .main-nav .btn { margin-top: 6px; }
  .hero__grid { grid-template-columns: 1fr; min-height: auto; gap: 55px; }
  .hero__copy { max-width: 830px; }
  .hero__visual { max-width: 760px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid article { border-bottom: 1px solid rgba(0,0,0,.15); }
  .trust-grid article:nth-child(odd) { border-left: 1px solid rgba(0,0,0,.15); }
  .section { padding: 90px 0; }
  .category-card, .category-card--featured { grid-column: span 6; }
  .story__grid, .quote-steps__grid, .location__grid { grid-template-columns: 1fr; gap: 60px; }
  .story__visual { max-width: 680px; }
  .location__map, .location__map iframe { min-height: 480px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__grid > div:last-child { grid-column: 2; }
}

@media (max-width: 720px) {
  .topbar__inner { justify-content: center; text-align: center; }
  .nav-wrap { min-height: 74px; }
  .brand img { width: 178px; }
  .hero__grid { padding: 78px 0 62px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero__copy > p { font-size: .98rem; }
  .hero__meta { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .hero__meta div { display: flex; align-items: baseline; gap: 10px; }
  .hero-panel--main { min-height: 315px; padding: 28px; }
  .hero-panel__icon { width: 74px; margin: 28px 0; }
  .hero-panel h2 { font-size: 2rem; }
  .hero-panel-grid { grid-template-columns: 1fr; }
  .hero-panel--small { min-height: 96px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid article, .trust-grid article:first-child, .trust-grid article:nth-child(odd) { border-left: 1px solid rgba(0,0,0,.15); }
  .section { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 38px; }
  .section-head h2, .story h2, .location h2, .quote-steps h2, .final-cta h2 { font-size: clamp(2.65rem, 13vw, 3.7rem); }
  .category-card, .category-card--featured { grid-column: span 12; min-height: 370px; }
  .brand-group { grid-template-columns: 42px 1fr; gap: 13px; }
  .brand-group h3 { grid-column: 2; }
  .brand-chips { grid-column: 1 / -1; padding-left: 55px; }
  .story__visual { min-height: 430px; }
  .story__stamp { width: 140px; height: 140px; }
  .story__stamp strong { font-size: 3.3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 260px; }
  .quote-steps { padding: 76px 0; }
  .contact-list > div { grid-template-columns: 1fr; gap: 5px; }
  .location__actions .btn { width: 100%; }
  .location__map, .location__map iframe { min-height: 420px; }
  .final-cta__inner { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__grid > div:last-child { grid-column: auto; }
  .footer__bottom { flex-direction: column; align-items: flex-start; justify-content: center; padding: 18px 0; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { width: 56px; padding: 0; justify-content: center; right: 18px; bottom: 18px; }
}

@media (max-width: 440px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .hero__actions .btn { width: 100%; }
}


/* Reliability and responsive safeguards — v3 */
[hidden] { display: none !important; }
main, section, footer { width: 100%; }
.hero__copy, .hero__visual, .section-head, .category-card, .brand-group,
.story__visual, .story__copy, .service-card, .quote-steps__intro, .steps-list,
.location__content, .location__map, .final-cta__inner { visibility: visible; opacity: 1; }
.main-nav a, .btn, .text-link, .footer-link { overflow-wrap: anywhere; }
.location__map iframe { border: 0; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
@media (max-width: 520px) {
  :root { --container: min(100% - 28px, 1180px); }
  .brand img { width: 205px; }
  .nav-wrap { min-height: 76px; }
  .topbar__inner { min-height: 36px; }
  .hero__grid { padding-top: 62px; }
  .hero h1 { overflow-wrap: anywhere; }
  .location__actions .btn { width: 100%; }
  .footer__grid { gap: 34px; }
  .footer__brand img { width: 215px; }
}

/* =========================================================
   V4 — Galería fotográfica, alineación y correcciones finales
   ========================================================= */

/* Los indicadores del hero y los beneficios quedan realmente centrados. */
.hero__meta { text-align: center; }
.hero__meta > div { display: flex; min-height: 66px; flex-direction: column; align-items: center; justify-content: center; }

.trust-grid article {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 12px;
}
.trust-grid article > div { max-width: 210px; }
.icon-wrap { margin-inline: auto; }

/* Galería principal con fotografías locales: no depende de servidores externos. */
.hero-gallery { position: relative; display: grid; gap: 12px; }
.hero-gallery figure { margin: 0; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.16); background: transparent; }
.hero-gallery img { width: 100%; height: 100%; object-fit: cover; }
.hero-gallery__main { height: 405px; border-radius: 28px 28px 10px 28px; }
.hero-gallery__badge { position: absolute; z-index: 3; right: -20px; top: -28px; width: 124px; height: 124px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 8px solid var(--black); border-radius: 50%; color: var(--black); background: var(--yellow); text-align: center; transform: rotate(5deg); box-shadow: 0 18px 38px rgba(0,0,0,.26); }
.hero-gallery__badge strong { font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-size: 3.15rem; line-height: .8; }
.hero-gallery__badge span { width: 78px; margin-top: 7px; font-size: .62rem; font-weight: 900; line-height: 1.15; text-transform: uppercase; }

/* Tarjetas fotográficas del portafolio. */
.category-card,
.category-card--featured {
  min-height: 430px;
  padding: 0;
  color: #fff;
  background: #181816;
  border-color: rgba(0,0,0,.09);
}
.category-card { grid-column: span 4; }
.category-card--featured { grid-column: span 7; }
.category-card--medium { grid-column: span 5; }
.category-card::after { display: none; }
.category-card__image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card:hover .category-card__image { transform: scale(1.045); }
.category-card__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.12) 5%, rgba(0,0,0,.24) 42%, rgba(0,0,0,.92) 100%); }
.category-card__content { position: relative; z-index: 2; min-height: 430px; display: flex; flex-direction: column; padding: 28px; }
.category-card__top { color: #fff; }
.category-card__index { text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.category-card__tag { color: var(--black); background: var(--yellow); }
.category-card__body { margin-top: auto; }
.category-card h3 { margin: 0 0 11px; color: #fff; font-size: 2.15rem; text-shadow: 0 2px 15px rgba(0,0,0,.35); }
.category-card p,
.category-card--featured p { max-width: 520px; margin: 0 0 20px; color: rgba(255,255,255,.83); }
.category-card .text-link { color: var(--yellow); }
.category-card .text-link:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }

/* La sección de historia vuelve a utilizar una fotografía real del primer borrador. */
.story__visual { background: #171715; }
.story__visual::before { z-index: 2; pointer-events: none; }
.story__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.story__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.36)); }
.story__stamp { z-index: 3; }

/* Google Maps conserva su paleta original. */
.location__map iframe { filter: none !important; }

/* Logo del pie: versión a color sobre superficie clara para máxima legibilidad. */
.footer__logo-shell { width: fit-content; max-width: 100%; padding: 10px 14px; border-radius: 14px; background: #fff; }
.footer__brand img { width: 240px; max-width: 100%; filter: none !important; opacity: 1; }

/* Mejor lectura y distribución de las marcas. */
.brand-chips { align-items: center; }
.brand-chips span { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; text-align: center; }

@media (max-width: 1020px) {
  .hero-gallery { max-width: 760px; }
  .hero-gallery__badge { right: 18px; }
  .category-card,
  .category-card--featured,
  .category-card--medium { grid-column: span 6; }
}

@media (max-width: 720px) {
  .hero__meta { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero__meta > div { display: flex; min-height: 72px; gap: 0; padding: 10px 4px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; }
  .hero__meta strong { font-size: 1.25rem; }
  .hero__meta span { font-size: .66rem; }
  .hero-gallery__main { height: 330px; }
  .hero-gallery__badge { width: 104px; height: 104px; top: -20px; right: 12px; border-width: 6px; }
  .hero-gallery__badge strong { font-size: 2.65rem; }
  .hero-gallery__badge span { width: 68px; font-size: .55rem; }
  .category-card,
  .category-card--featured,
  .category-card--medium { grid-column: span 12; min-height: 390px; }
  .category-card__content { min-height: 390px; padding: 24px; }
  .category-card h3 { font-size: 2rem; }
  .trust-grid article { min-height: 145px; }
  .footer__logo-shell { padding: 9px 12px; }
}

@media (max-width: 440px) {
  .hero__meta { grid-template-columns: 1fr; }
  .hero__meta > div { min-height: 58px; }
  .hero-gallery__main { height: 300px; }
  .hero-gallery__badge { width: 92px; height: 92px; top: -16px; right: 8px; }
  .hero-gallery__badge strong { font-size: 2.3rem; }
  .hero-gallery__badge span { width: 58px; font-size: .48rem; }
}
.footer .social-inline a { display: inline; width: auto; margin: 0; }
.footer .social-inline { line-height: 1.8; }


/* =========================================================
   V5 — Correcciones definitivas de iconos y ubicación
   ========================================================= */

/*
  La regla general `.trust-grid span { display: block; }` tenía mayor
  especificidad que `.icon-wrap` y anulaba su centrado. Esta regla
  específica restaura un contenedor flex real y centra el SVG en ambos ejes.
*/
.trust-grid .icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  margin: 0 auto;
  padding: 0;
  line-height: 0;
}

.trust-grid .icon-wrap svg {
  position: static;
  display: block;
  width: 24px;
  height: 24px;
  margin: 0;
  flex: 0 0 auto;
  transform: none;
  transform-origin: center;
  overflow: visible;
}

/* El mapa conserva color y ocupa completamente su contenedor en cualquier ancho. */
.location__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  filter: none !important;
}

/* =========================================================
   V6 — Fotografías reales, ocho categorías y redes visibles
   ========================================================= */

html,
body { overflow-x: clip; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--yellow-dark);
  outline-offset: 4px;
}

.hero-gallery__main img { object-position: center 45%; }

/* La tarjeta mantiene una envolvente común, pero cada fotografía conserva
   su proporción mediante un área de imagen independiente. */
.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.category-card,
.category-card--featured,
.category-card--medium {
  grid-column: auto;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.category-card__media {
  position: relative;
  z-index: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ebe9e2;
  border-bottom: 1px solid var(--line);
}

.category-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}

.category-card:hover .category-card__image { transform: scale(1.025); }
.category-card__shade { display: none; }

.category-card__content {
  position: relative;
  z-index: 1;
  min-height: 285px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--paper);
}

.category-card__top { color: var(--ink); }
.category-card__index {
  color: #766900;
  text-shadow: none;
}
.category-card__tag {
  color: var(--black);
  background: var(--yellow);
}
.category-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 22px;
}
.category-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  line-height: 1.05;
  text-shadow: none;
}
.category-card p,
.category-card--featured p {
  max-width: none;
  margin: 0 0 22px;
  color: var(--muted);
}
.category-card .text-link {
  margin-top: auto;
  color: #665a00;
}
.category-card .text-link:focus-visible {
  outline-color: var(--yellow-dark);
}

/* La nueva fotografía de operación se muestra con un recorte moderado. */
.story__visual {
  min-height: 0;
  aspect-ratio: 4 / 3;
}
.story__photo { object-position: 46% center; }

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 0;
}
.contact-list .social-button,
.footer .footer-social {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.contact-list .social-button {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink);
}
.contact-list .social-button:hover {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow-dark);
  text-decoration: none;
  transform: translateY(-2px);
}
.social-button svg,
.footer-social svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-button[data-facebook] svg,
.footer-social[data-facebook] svg {
  fill: currentColor;
  stroke: none;
}
.social-button__dot { fill: currentColor; stroke: none; }

.location__grid { align-items: start; }
.location__map,
.location__map iframe {
  height: 680px;
  min-height: 680px;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
}
.footer .footer-social {
  width: 100%;
  max-width: 165px;
  margin: 0;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.25);
}
.footer .footer-social:hover {
  color: var(--black);
  background: var(--yellow);
  border-color: var(--yellow);
  transform: translateY(-2px);
}

@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location__map,
  .location__map iframe {
    height: 520px;
    min-height: 520px;
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .category-grid { grid-template-columns: 1fr; gap: 18px; }
  .services-grid { grid-template-columns: 1fr; }
  .category-card,
  .category-card--featured,
  .category-card--medium { min-height: 0; }
  .category-card__content { min-height: 260px; padding: 24px; }
  .category-card__media { aspect-ratio: 4 / 3; }
  .story__visual { aspect-ratio: 4 / 3; }
  .social-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .contact-list .social-button { width: 100%; padding-inline: 10px; }
  .location__map,
  .location__map iframe {
    height: 460px;
    min-height: 460px;
  }
}

@media (max-width: 390px) {
  .social-buttons { grid-template-columns: 1fr; }
  .category-card__content { min-height: 250px; }
}

@media (max-width: 440px) {
  .hero h1 { font-size: clamp(2.8rem, 13vw, 3.2rem); }
  .hero__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .hero__meta > div { min-height: 68px; }
  .hero__actions,
  .social-buttons,
  .location__actions { padding-right: 66px; }
}

/* =========================================================
   V7 — Hero limpio, mosaico editorial y WhatsApp correcto
   ========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* La fachada abierta es el único recurso visual del hero. */
.hero__grid {
  min-height: 720px;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  grid-template-areas:
    "copy visual"
    "meta visual";
  grid-template-rows: auto auto;
  gap: 54px;
}
.hero__copy { grid-area: copy; align-self: end; }
.hero__meta { grid-area: meta; align-self: start; margin-top: -8px; }
.hero__visual { grid-area: visual; align-self: center; }
.hero h1 {
  max-width: 650px;
  font-size: clamp(3.35rem, 5.8vw, 5.8rem);
}
.hero-gallery {
  max-width: none;
  padding-top: 34px;
}
.hero-gallery__main {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(0,0,0,.34);
}
.hero-gallery__main img {
  object-fit: cover;
  object-position: center 47%;
}
.hero-gallery__badge {
  top: 0;
  right: -16px;
  width: 128px;
  height: 128px;
  transform: rotate(3deg);
}
.hero-gallery__badge strong {
  font-size: 2.95rem;
  letter-spacing: -.05em;
}
.hero-gallery__badge span {
  width: 82px;
  font-size: .59rem;
}

/* Mosaico: 4:3, 1:1 y 3:4 según la composición de cada fotografía. */
.category-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}
.category-card--span-3 { grid-column: span 3; }
.category-card--span-4 { grid-column: span 4; }
.category-card--span-6 { grid-column: span 6; }
.category-card--span-8 { grid-column: span 8; }

.category-card__media {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: #ebe9e2;
}
.category-card--landscape .category-card__media { aspect-ratio: 4 / 3; }
.category-card--square .category-card__media { aspect-ratio: 1 / 1; }
.category-card--portrait .category-card__media { aspect-ratio: 3 / 4; }
.category-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.category-card__content {
  min-height: 250px;
  padding: 24px;
}
.category-card__body { margin-top: 18px; }
.category-card h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); }

/* Isotipo de WhatsApp de una sola pieza, centrado y nítido. */
.whatsapp-float svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: currentColor;
  stroke: none;
}

@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card--span-3,
  .category-card--span-4,
  .category-card--span-6,
  .category-card--span-8 { grid-column: auto; }
}

@media (max-width: 1020px) {
  .hero__grid {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "meta";
    grid-template-rows: auto;
    gap: 44px;
  }
  .hero__meta { margin-top: 0; }
  .hero__visual { max-width: 820px; }
  .hero-gallery__badge { right: 16px; }
}

@media (max-width: 720px) {
  .hero__grid { gap: 30px; padding-top: 52px; }
  .hero-gallery { padding-top: 26px; }
  .hero-gallery__main { height: auto; aspect-ratio: 4 / 3; border-radius: 20px; }
  .hero-gallery__badge {
    top: 0;
    right: 10px;
    width: 98px;
    height: 98px;
    border-width: 6px;
  }
  .hero-gallery__badge strong { font-size: 2.25rem; }
  .hero-gallery__badge span { width: 64px; font-size: .48rem; }
  .category-grid { grid-template-columns: 1fr; gap: 18px; }
  .category-card__content { min-height: 235px; }
}

@media (max-width: 440px) {
  .hero h1 { font-size: clamp(2.45rem, 11.5vw, 2.8rem); }
  .hero__actions { padding-right: 0; }
  .hero-gallery__badge { right: 82px; }
  .hero-gallery__main { height: auto; }
  .category-card__content { min-height: 225px; padding: 22px; }
  .category-card h3 { font-size: 1.75rem; }
  .whatsapp-float { width: 58px; height: 58px; }
}
