:root {
  --ink: #0f1720;
  --ink-2: #1e2936;
  --paper: #ffffff;
  --soft: #f7f6f1;
  --soft-gold: #fbf6e8;
  --line: #e3e1da;
  --accent: #b78916;
  --accent-dark: #8a6610;
  --accent-light: #d7b34d;
  --text: #35404a;
  --muted: #69737c;
  --shadow: 0 18px 45px rgba(15, 23, 32, .11);
  --shadow-lg: 0 28px 70px rgba(15, 23, 32, .18);
  --radius: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--paper); line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(183,137,22,.35); outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 9999; background: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 1000; pointer-events: none; }
.scroll-progress-bar { width: 0; height: 100%; background: var(--accent-light); box-shadow: 0 0 12px rgba(215,179,77,.6); }

.topbar { background: #080b0e; color: #d9dee2; font-size: .86rem; border-bottom: 1px solid rgba(215,179,77,.16); }
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-links { display: flex; gap: 10px; align-items: center; }
.topbar a { text-decoration: none; transition: color .2s ease; }
.topbar a:hover { color: var(--accent-light); }

.navbar { position: sticky; top: 0; z-index: 100; background: linear-gradient(135deg, rgba(9,12,15,.985) 0%, rgba(20,25,31,.985) 100%); backdrop-filter: blur(16px); border-bottom: 2px solid rgba(183,137,22,.72); transition: box-shadow .25s ease, background .25s ease; }
.navbar.is-scrolled { box-shadow: 0 12px 32px rgba(0,0,0,.24); background: rgba(8,11,14,.985); }
.navbar-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 32px; transition: min-height .25s ease; }
.navbar.is-scrolled .navbar-inner { min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 15px; color: #fff; text-decoration: none; flex: 0 0 auto; min-width: 0; }
.brand-logo { width: clamp(62px, 6vw, 76px); height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; border-radius: 50%; box-shadow: 0 0 0 1px rgba(215,179,77,.42), 0 8px 24px rgba(0,0,0,.25); }
.brand-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding-left: 15px; border-left: 1px solid rgba(215,179,77,.42); line-height: 1.2; }
.brand-copy strong { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 600; letter-spacing: .025em; white-space: nowrap; }
.brand-copy small { margin-top: 5px; color: #c9aa55; font-size: .67rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { position: relative; color: #eef1f3; text-decoration: none; font-weight: 650; font-size: .91rem; letter-spacing: .025em; transition: color .2s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -10px; width: 0; height: 2px; background: var(--accent-light); box-shadow: 0 0 8px rgba(215,179,77,.28); transition: width .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-light); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }
.menu-toggle { display: none; width: 46px; height: 42px; border: 1px solid rgba(215,179,77,.24); border-radius: 10px; background: rgba(255,255,255,.035); cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--accent-light); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { min-height: 690px; position: relative; display: grid; align-items: center; background: url('../assets/fachada.jpg') center 44% / cover no-repeat; color: white; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -120px -180px auto; width: 440px; height: 440px; border: 1px solid rgba(215,179,77,.35); border-radius: 50%; box-shadow: 0 0 0 42px rgba(215,179,77,.05), 0 0 0 92px rgba(215,179,77,.025); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,14,20,.93) 0%, rgba(8,14,20,.78) 45%, rgba(8,14,20,.30) 100%); }
.hero-content { position: relative; z-index: 1; padding-block: 108px 128px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: end; gap: 66px; }
.hero-main { max-width: 820px; }
.hero h1 { max-width: 810px; margin: 13px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 5.7vw, 5.35rem); line-height: .98; font-weight: 500; letter-spacing: -.045em; }
.hero p:not(.eyebrow) { max-width: 690px; font-size: 1.1rem; color: #e7ebee; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .17em; font-weight: 850; font-size: .76rem; color: var(--accent-light); }
.eyebrow.dark { color: var(--accent-dark); }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 23px; border-radius: 999px; text-decoration: none; font-weight: 760; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(183,137,22,.2); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 14px 34px rgba(183,137,22,.28); }
.btn-secondary { border: 1px solid rgba(255,255,255,.52); background: rgba(255,255,255,.09); color: white; backdrop-filter: blur(5px); }
.btn-secondary:hover { background: rgba(255,255,255,.16); }
.btn-outline-light { border: 1px solid rgba(255,255,255,.42); color: white; }
.hero-info { padding: 24px; border-radius: 20px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20); backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0,0,0,.16); }
.hero-info-kicker { color: var(--accent-light); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.hero-info > strong { display: block; margin: 7px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1.25; }
.hero-info-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; }
.hero-info-row span { color: #cfd6da; }
.hero-info-row b { color: #fff; }
.hero-info a { display: inline-block; margin-top: 15px; color: var(--accent-light); text-decoration: none; font-weight: 750; }

.highlights { position: relative; z-index: 2; margin-top: -64px; padding-bottom: 38px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.highlight-card { position: relative; overflow: hidden; background: white; border-radius: var(--radius); padding: 29px; box-shadow: var(--shadow); border: 1px solid rgba(15,23,32,.055); transition: transform .25s ease, box-shadow .25s ease; }
.highlight-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .25s ease; }
.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.highlight-card:hover::before { transform: scaleY(1); }
.highlight-card h2 { margin: 16px 0 8px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.highlight-card p { margin: 0; color: var(--muted); }
.icon-circle { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--soft-gold); color: var(--accent-dark); font-weight: 900; border: 1px solid rgba(183,137,22,.16); }

.section { padding: 100px 0; }
.section-soft { background: linear-gradient(180deg, #f8f8f5 0%, #f4f3ee 100%); }
.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: 70px; align-items: center; }
.split-media { position: relative; }
.split-media::before { content: ""; position: absolute; width: 54%; height: 58%; left: -24px; bottom: -24px; border-radius: 26px; background: var(--soft-gold); z-index: -1; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.split-content h2, .section-heading h2, .contact-main h2 { margin: 8px 0 20px; font-family: Georgia, "Times New Roman", serif; color: var(--ink); font-size: clamp(2.25rem, 4vw, 3.7rem); line-height: 1.04; font-weight: 500; letter-spacing: -.035em; }
.split-content p { color: var(--muted); }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.mission-grid > div { border-top: 3px solid var(--accent); padding-top: 16px; }
.mission-grid h3 { margin: 0 0 8px; color: var(--ink); }
.mission-grid p { margin: 0; font-size: .93rem; }

.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading.centered { text-align: center; margin-inline: auto; }
.section-heading p:last-child { color: var(--muted); margin-top: 0; }
.service-tools { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 22px; padding: 18px 22px; border-radius: 16px; background: var(--ink); color: #fff; }
.service-tools strong { display: block; }
.service-tools span { color: #cbd3d8; font-size: .9rem; }
.text-link { color: var(--accent-light); text-decoration: none; font-weight: 760; white-space: nowrap; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-grid > .service-tools { grid-column: 1 / -1; }
.service-card { position: relative; min-height: 245px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 26px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease; }
.service-card::after { content: ""; position: absolute; right: -38px; bottom: -38px; width: 115px; height: 115px; border-radius: 50%; background: var(--soft-gold); transition: transform .25s ease; z-index: 0; }
.service-card:hover, .service-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(183,137,22,.20); }
.service-card:hover::after { transform: scale(1.22); }
.service-card > * { position: relative; z-index: 1; }
.service-card > span { color: var(--accent); font-weight: 850; letter-spacing: .12em; font-size: .78rem; }
.service-icon { float: right; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--soft-gold); color: var(--accent-dark); font-style: normal; }
.service-card h3 { margin: 42px 0 10px; color: var(--ink); font-size: 1.15rem; }
.service-card p { margin: 0; color: var(--muted); font-size: .94rem; }

.tramite-search { margin: 0 0 30px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft-gold); }
.tramite-search label { display: block; margin-bottom: 10px; color: var(--ink); font-weight: 780; }
.search-box { position: relative; display: flex; align-items: center; background: #fff; border: 1px solid rgba(15,23,32,.12); border-radius: 14px; transition: border .2s ease, box-shadow .2s ease; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(183,137,22,.10); }
.search-box svg { width: 21px; height: 21px; margin-left: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search-box input { width: 100%; min-height: 54px; padding: 0 50px 0 12px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box button { position: absolute; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--soft); color: var(--muted); cursor: pointer; font-size: 1.3rem; }
.search-status { min-height: 22px; margin: 8px 0 0; color: var(--muted); font-size: .86rem; }
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); transition: background .2s ease; }
.accordion-item.is-match { background: linear-gradient(90deg, rgba(183,137,22,.07), transparent); }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 4px; border: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 760; font-size: 1.08rem; cursor: pointer; }
.accordion-trigger:hover { color: var(--accent-dark); }
.plus { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--soft-gold); color: var(--accent-dark); font-size: 1.3rem; transition: transform .22s ease, background .22s ease; }
.accordion-trigger[aria-expanded="true"] .plus { transform: rotate(45deg); background: #ead9a8; }
.accordion-panel { padding: 0 56px 28px 4px; color: var(--muted); animation: panelIn .22s ease; }
.accordion-panel h3 { color: var(--ink); font-size: 1rem; margin: 8px 0; }
.accordion-panel ul, .accordion-panel ol { padding-left: 22px; }
.accordion-panel li::marker { color: var(--accent); }
.accordion-panel a { color: var(--accent-dark); font-weight: 720; }
.notice { margin-top: 30px; padding: 18px 20px; border-left: 4px solid var(--accent); background: var(--soft-gold); color: var(--muted); font-size: .92rem; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.contact-section { position: relative; padding: 98px 0; background: var(--ink); color: white; overflow: hidden; }
.contact-section::after { content: "ND"; position: absolute; right: -30px; bottom: -155px; font-size: 23rem; font-weight: 900; letter-spacing: -.12em; color: rgba(255,255,255,.022); pointer-events: none; }
.contact-section::before { content: ""; position: absolute; width: 330px; height: 330px; left: -180px; top: 40px; border-radius: 50%; border: 1px solid rgba(215,179,77,.17); }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; }
.contact-main h2 { color: white; }
.contact-card { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid rgba(255,255,255,.16); }
.contact-card > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.contact-card strong { color: var(--accent-light); }
.contact-card span, .contact-card a { color: #eef1f3; text-decoration: none; }
.directory { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11); border-radius: 22px; padding: 30px; backdrop-filter: blur(8px); }
.directory-badge { display: inline-flex; margin-bottom: 14px; padding: 6px 10px; border: 1px solid rgba(215,179,77,.25); border-radius: 999px; color: var(--accent-light); font-size: .73rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.directory h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 500; }
.directory-list { display: grid; gap: 0; }
.directory-list > div { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.10); transition: padding-left .18s ease; }
.directory-list > div:hover { padding-left: 6px; }
.directory-list > div:last-child { border-bottom: 0; }
.directory-list strong { display: block; color: white; }
.directory-list span, .directory-list a { color: #cbd2d6; font-size: .9rem; }

.site-footer { background: #090e13; color: #aeb6bb; padding: 34px 0; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-logo { width: 92px; height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.footer-inner p { margin: 4px 0 0; font-size: .9rem; }

.floating-actions { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.floating-whatsapp { display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 7px 15px 7px 7px; border-radius: 999px; background: #fff; box-shadow: 0 12px 36px rgba(15,23,32,.20); color: var(--ink); text-decoration: none; font-size: .88rem; transition: transform .2s ease, box-shadow .2s ease; }
.floating-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(15,23,32,.26); }
.floating-whatsapp-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; }
.floating-whatsapp-icon .whatsapp-icon { width: 20px; height: 20px; }
.back-to-top { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 10px 28px rgba(15,23,32,.20); cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease, background .2s ease; }
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--accent-dark); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .nav-links { gap: 18px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 35px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-inner > span { display: none; }
  .menu-toggle { display: block; }
  .brand-logo { width: 68px; }
  .brand-copy strong { font-size: 1.05rem; }
  .brand-copy small { font-size: .61rem; }
  .nav-links { position: absolute; left: 0; right: 0; top: 92px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; background: #0b0f13; border-bottom: 2px solid rgba(183,137,22,.72); box-shadow: 0 18px 34px rgba(0,0,0,.28); }
  .navbar.is-scrolled .nav-links { top: 78px; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 8px; border-top: 1px solid rgba(255,255,255,.08); color: #f3f5f6; }
  .nav-links a::after { display: none; }
  .hero { min-height: 650px; }
  .hero-layout { grid-template-columns: 1fr; align-items: start; }
  .hero-info { max-width: 440px; }
  .cards-3 { grid-template-columns: 1fr; }
  .highlights { margin-top: -42px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 46px; }
  .split-media { order: 2; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .topbar-links { font-size: .77rem; }
  .topbar-links span { display: none; }
  .navbar-inner { min-height: 78px; gap: 14px; }
  .navbar.is-scrolled .navbar-inner { min-height: 72px; }
  .brand-logo { width: 56px; }
  .brand { gap: 10px; }
  .brand-copy { padding-left: 10px; }
  .brand-copy strong { font-size: .95rem; }
  .brand-copy small { display: none; }
  .nav-links, .navbar.is-scrolled .nav-links { top: 78px; }
  .hero { min-height: 680px; background-position: 58% center; }
  .hero-overlay { background: rgba(8,14,20,.78); }
  .hero-content { padding-block: 78px 106px; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .hero-actions .btn { width: 100%; }
  .hero-info { padding: 20px; }
  .section { padding: 72px 0; }
  .mission-grid, .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-card h3 { margin-top: 30px; }
  .service-tools { align-items: flex-start; flex-direction: column; }
  .accordion-panel { padding-right: 4px; }
  .contact-card > div { grid-template-columns: 1fr; gap: 3px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-logo { width: 84px; }
  .floating-actions { right: 13px; bottom: 13px; }
  .floating-whatsapp b { display: none; }
  .floating-whatsapp { padding-right: 7px; }
}

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