:root {
  --navy: #0d1b2a;
  --navy-2: #13293d;
  --ink: #18212b;
  --gold: #c5a76d;
  --gold-2: #e1cfaa;
  --cream: #f6f2ea;
  --paper: #fbfaf7;
  --white: #ffffff;
  --muted: #6a737d;
  --line: rgba(13,27,42,.12);
  --shadow: 0 20px 60px rgba(10,24,39,.12);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  background: var(--gold);
  color: #111;
  padding: .75rem 1rem;
  border-radius: 10px;
  z-index: 1000;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 100px 0; }
.section-dark { background: var(--navy); color: var(--white); position: relative; }
.section-muted { background: var(--cream); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,250,247,.93);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(13,27,42,.08);
}
.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  color: var(--navy);
  flex: 0 0 auto;
}
.brand-mark svg { width: 26px; height: 26px; fill: currentColor; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; letter-spacing: .04em; }
.brand-text strong { font-family: Georgia, "Times New Roman", serif; font-size: .94rem; }
.brand-text small { font-size: .72rem; margin-top: 3px; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 23px; font-size: .9rem; font-weight: 650; }
.main-nav a { position: relative; }
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px;
  background: var(--gold); transition: right .25s ease;
}
.main-nav a:hover::after { right: 0; }
.nav-cta { padding: 11px 17px; border-radius: 999px; background: var(--navy); color: white; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; border-radius: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s ease; }

.hero { min-height: calc(100vh - 78px); display: flex; align-items: center; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 90%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.hero-glow-one { width: 560px; height: 560px; right: -150px; top: -180px; background: radial-gradient(circle, rgba(197,167,109,.18), transparent 67%); }
.hero-glow-two { width: 420px; height: 420px; left: -220px; bottom: -200px; background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 72px; align-items: center; padding-top: 76px; padding-bottom: 76px; position: relative; z-index: 2; }
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 20px; }
.eyebrow-dark { color: #8e7344; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(3.1rem, 6.2vw, 6.7rem); line-height: .93; letter-spacing: -.045em; }
.hero h1 span { color: var(--gold-2); }
.hero-lead { max-width: 720px; font-size: clamp(1.05rem, 1.9vw, 1.35rem); color: rgba(255,255,255,.76); margin: 28px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 999px; font-weight: 800; font-size: .92rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #102019; background: var(--gold-2); box-shadow: 0 12px 30px rgba(197,167,109,.18); }
.btn-secondary { color: white; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.05); }
.hero-meta { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 44px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.13); }
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta span { color: rgba(255,255,255,.55); font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; }
.hero-meta strong { font-size: 1rem; }

.hero-panel { border: 1px solid rgba(255,255,255,.13); border-radius: 30px; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035)); padding: 32px; box-shadow: 0 40px 80px rgba(0,0,0,.18); }
.seal { width: 110px; height: 110px; color: var(--gold-2); margin-bottom: 36px; }
.seal svg { width: 100%; height: 100%; }
.seal circle { fill: none; stroke: currentColor; stroke-width: 1.3; opacity: .78; }
.seal path { fill: currentColor; }
.panel-kicker { margin: 0 0 12px; color: rgba(255,255,255,.55); text-transform: uppercase; font-weight: 800; font-size: .73rem; letter-spacing: .14em; }
.panel-list { display: grid; }
.panel-list a { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); font-family: Georgia, "Times New Roman", serif; font-size: 1.16rem; }
.panel-list a span { font-family: Inter, sans-serif; font-size: .7rem; color: var(--gold-2); }
.panel-contact { border-top: 1px solid rgba(255,255,255,.1); margin-top: 6px; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-contact span { color: rgba(255,255,255,.55); font-size: .82rem; }
.panel-contact a { color: var(--gold-2); font-weight: 800; }

.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading h2, .legal-sticky h2, .contact-copy h2, .quick-nav h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 4.5vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 500; margin: 0 0 18px; }
.section-heading p, .legal-sticky p, .contact-copy > p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.profile-grid { display: grid; grid-template-columns: 1.25fr .75fr .9fr; gap: 18px; }
.profile-card { position: relative; min-height: 230px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 38px rgba(13,27,42,.05); overflow: hidden; }
.profile-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -42px; bottom: -48px; border-radius: 50%; border: 1px solid rgba(197,167,109,.35); }
.card-number { font-size: .75rem; color: #9b8152; font-weight: 800; letter-spacing: .12em; }
.profile-card h3 { margin: 50px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 500; }
.profile-card p { margin: 0; color: #59616a; }
.profile-card .big-value { color: var(--navy); font-weight: 800; font-size: 1.8rem; letter-spacing: .04em; }
.profile-card .smaller { font-size: 1.4rem; letter-spacing: 0; }

.area-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.area-card { position: relative; min-height: 330px; padding: 30px; border-radius: 26px; background: var(--white); border: 1px solid rgba(13,27,42,.08); display: flex; flex-direction: column; align-items: flex-start; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.area-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: rgba(197,167,109,.45); }
.area-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--navy); color: var(--gold-2); margin-bottom: auto; }
.area-icon svg { width: 28px; height: 28px; fill: currentColor; }
.area-card > span { color: #967847; text-transform: uppercase; font-size: .74rem; letter-spacing: .13em; font-weight: 800; margin-top: 48px; }
.area-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 500; line-height: 1.2; margin-top: 8px; }
.area-card small { margin-top: 24px; font-weight: 800; color: var(--navy); }

.legal-section { scroll-margin-top: 78px; }
.legal-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 76px; align-items: start; }
.legal-sticky { position: sticky; top: 128px; }
.legal-sticky .text-link { display: inline-block; margin-top: 28px; font-weight: 800; color: #8d7040; }
.text-link.light { color: var(--gold-2); }
.legal-content { min-width: 0; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.service-card { min-height: 150px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.service-card span { font-size: .72rem; font-weight: 800; color: #a18859; }
.service-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; font-weight: 500; line-height: 1.15; }
.feature-card { margin: 14px 0; padding: 30px; border-radius: 24px; border: 1px solid rgba(197,167,109,.45); background: linear-gradient(135deg, #f4ecdd, #fff); display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: center; }
.feature-label { color: #8e713e; font-size: .73rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.feature-card h3, .civil-card h3 { margin: 8px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 500; line-height: 1.1; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 18px; }
.check-list li { position: relative; padding-left: 18px; font-size: .92rem; color: #505963; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .66em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.civil-section { overflow: hidden; }
.civil-section .legal-sticky p { color: rgba(255,255,255,.63); }
.civil-primary-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.civil-card { min-height: 210px; padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(255,255,255,.05); }
.civil-card .feature-label { color: var(--gold-2); }
.civil-card h3 { color: white; margin-top: 45px; }
.civil-card p { color: rgba(255,255,255,.62); margin: 10px 0 0; font-size: .9rem; }
.dark-card { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.13); }
.dark-card .feature-label { color: var(--gold-2); }
.dark-card h3 { color: white; }
.light-list li { color: rgba(255,255,255,.68); }
.wide-services { display: grid; gap: 12px; margin-top: 14px; }
.wide-service { display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: center; padding: 22px 24px; border-radius: 18px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.wide-service > span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(225,207,170,.36); color: var(--gold-2); font-size: .75rem; font-weight: 800; }
.wide-service small { color: var(--gold-2); text-transform: uppercase; letter-spacing: .13em; font-size: .67rem; font-weight: 800; }
.wide-service h3 { margin: 4px 0 0; color: white; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 500; }

.military-section { background: linear-gradient(180deg, #fbfaf7 0%, #f1ece3 100%); }
.military-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.military-card { position: relative; padding: 30px; min-height: 310px; border-radius: 26px; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.military-number { color: #a18757; font-weight: 800; font-size: .74rem; letter-spacing: .14em; }
.military-icon { width: 64px; height: 64px; border-radius: 19px; margin-top: 62px; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); }
.military-icon svg { width: 30px; height: 30px; fill: currentColor; }
.military-card h3 { margin: 22px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 500; line-height: 1.2; }

.quick-nav { display: grid; grid-template-columns: .6fr 1.4fr; gap: 62px; padding: 44px; border-radius: 28px; background: white; border: 1px solid var(--line); }
.quick-nav h2 { margin: 0; font-size: 3.1rem; }
.quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.quick-links a { padding: 14px 8px; border-bottom: 1px solid var(--line); font-weight: 650; font-size: .94rem; transition: padding-left .2s ease, color .2s ease; }
.quick-links a:hover { padding-left: 14px; color: #8c6e3c; }

.contact-section { background: var(--paper); scroll-margin-top: 78px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.contact-location { margin-top: 38px; display: flex; gap: 15px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.contact-location svg { width: 25px; height: 25px; fill: #9b7d49; flex: 0 0 auto; }
.contact-location div { display: flex; flex-direction: column; }
.contact-location span { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .11em; }
.contact-location strong { margin-top: 3px; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: center; min-height: 120px; padding: 22px; border-radius: 20px; background: white; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
a.contact-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(13,27,42,.08); }
.contact-icon { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: #f3efe7; color: var(--navy); }
.contact-icon svg { width: 25px; height: 25px; fill: currentColor; }
.whatsapp-icon { color: #177f4d; background: #e7f4ed; }
.contact-card div:last-child { min-width: 0; display: flex; flex-direction: column; }
.contact-card span { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-card strong { margin-top: 4px; font-size: 1.06rem; word-break: break-word; }
.contact-card small { color: #8e713f; margin-top: 4px; font-weight: 700; }
.email-value { font-size: .96rem !important; }
.social-card { cursor: default; }

.site-footer { padding: 34px 0; background: #09141f; color: white; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 4px; }
.footer-grid span, .footer-grid a { color: rgba(255,255,255,.6); font-size: .85rem; }
.footer-grid > div:last-child { text-align: right; }

.floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: white; background: #1f9d61; box-shadow: 0 16px 34px rgba(20,95,58,.34); transition: transform .2s ease; }
.floating-whatsapp:hover { transform: translateY(-4px) scale(1.03); }
.floating-whatsapp svg { width: 29px; height: 29px; fill: currentColor; }

.reveal { opacity: 1; transform: translateY(0); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@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) {
  .main-nav { gap: 15px; font-size: .82rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-panel { max-width: 650px; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .profile-grid .profile-card:first-child { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; gap: 44px; }
  .legal-sticky { position: static; max-width: 760px; }
  .contact-grid { gap: 40px; }
}

@media (max-width: 820px) {
  .header-inner { height: 70px; }
  .brand-text strong { font-size: .82rem; }
  .brand-text small { font-size: .66rem; }
  .menu-toggle { display: block; position: relative; z-index: 102; }
  .main-nav {
    position: fixed; top: 70px; left: 0; right: 0; height: calc(100dvh - 70px);
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: rgba(251,250,247,.985); padding: 28px 20px 40px;
    transform: translateX(100%); opacity: 0; pointer-events: none;
    transition: transform .28s ease, opacity .28s ease; overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 16px 6px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav a::after { display: none; }
  .nav-cta { margin-top: 18px; text-align: center; border: 0 !important; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 78px 0; }
  .hero { min-height: auto; }
  .hero-grid { padding-top: 70px; padding-bottom: 70px; }
  .hero h1 { font-size: clamp(2.75rem, 12vw, 4.9rem); }
  .hero-meta { gap: 24px; }
  .area-cards, .military-grid { grid-template-columns: 1fr; }
  .area-card { min-height: 275px; }
  .service-grid.three, .civil-primary-grid { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 1fr; gap: 22px; }
  .quick-nav, .contact-grid { grid-template-columns: 1fr; }
  .quick-nav { gap: 28px; }
}

@media (max-width: 620px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .brand-mark { width: 38px; height: 38px; }
  .brand-mark svg { width: 23px; height: 23px; }
  .brand-text strong { font-size: .72rem; letter-spacing: .025em; }
  .brand-text small { font-size: .6rem; }

  .hero-grid { padding-top: 54px; padding-bottom: 54px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-meta { display: grid; grid-template-columns: 1fr; margin-top: 34px; padding-top: 24px; }
  .hero-panel { padding: 24px; border-radius: 22px; }
  .seal { width: 88px; height: 88px; }
  .panel-list a { grid-template-columns: 32px 1fr; font-size: 1.02rem; }
  .panel-contact { align-items: flex-start; flex-direction: column; }

  .section-heading { margin-bottom: 34px; }
  .section-heading h2, .legal-sticky h2, .contact-copy h2 { font-size: clamp(2.25rem, 11vw, 3.35rem); }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-grid .profile-card:first-child { grid-column: auto; }
  .profile-card { min-height: 210px; }
  .service-grid { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .wide-service { grid-template-columns: 52px 1fr; gap: 14px; }
  .wide-service { padding: 18px; }
  .wide-service h3 { font-size: 1.1rem; }
  .quick-nav { padding: 28px 22px; }
  .quick-nav h2 { font-size: 2.55rem; }
  .quick-links { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 50px 1fr; padding: 18px; }
  .contact-icon { width: 48px; height: 48px; }
  .contact-card strong { font-size: .97rem; }
  .email-value { font-size: .86rem !important; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .footer-grid > div:last-child { text-align: left; }
  .floating-whatsapp { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (max-width: 390px) {
  .brand-text { max-width: 220px; }
  .brand-text strong { font-size: .66rem; }
  .brand-text small { font-size: .56rem; }
  .hero h1 { font-size: 2.6rem; }
}

/* Mejora visual progresiva: si JS no carga, el sitio sigue completamente visible y utilizable. */
.site-header.has-shadow { box-shadow: 0 10px 30px rgba(13,27,42,.06); }
