:root {
  --ink: #101114;
  --ink-2: #191b20;
  --paper: #f7f4ee;
  --white: #ffffff;
  --sand: #ece7dc;
  --muted: #65666b;
  --line: #d9d2c5;
  --accent: #b39455;
  --accent-soft: #d7c392;
  --shadow: 0 24px 70px rgba(10, 11, 13, .12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }

.ci-logo {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #050505;
  color: #fff;
  border: 2px solid #050505;
  box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 8px #050505;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: -.12em;
}
.ci-logo span { transform: translateX(-.04em); }
.ci-logo--small { width: 54px; height: 54px; font-size: 1.35rem; }
.ci-logo--hero { width: clamp(190px, 25vw, 270px); height: clamp(190px, 25vw, 270px); font-size: clamp(4.3rem, 9vw, 7rem); box-shadow: inset 0 0 0 10px #fff, inset 0 0 0 13px #050505, 0 30px 70px rgba(0,0,0,.22); }
.ci-logo--contact { width: 150px; height: 150px; font-size: 3.9rem; background: #fff; color: #090a0c; border-color: #fff; box-shadow: inset 0 0 0 6px #0b0c0e, inset 0 0 0 8px #fff; }
.ci-logo--footer { width: 42px; height: 42px; font-size: 1rem; background: #fff; color: #08090b; border-color: #fff; box-shadow: inset 0 0 0 4px #08090b, inset 0 0 0 6px #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 244, 238, .94);
  border-bottom: 1px solid rgba(16,17,20,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: .9rem; letter-spacing: .08em; }
.brand-text small { color: var(--muted); margin-top: 5px; font-size: .73rem; }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: .83rem; font-weight: 750; }
.main-nav a:not(.nav-whatsapp) { position: relative; padding: 10px 0; }
.main-nav a:not(.nav-whatsapp)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: var(--ink); transition: right .25s ease; }
.main-nav a:not(.nav-whatsapp):hover::after { right: 0; }
.nav-whatsapp { padding: 11px 18px; color: #fff; background: var(--ink); border-radius: 999px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); transition: .25s ease; }

.hero { position: relative; min-height: 720px; display: grid; align-items: center; padding: 110px 0 105px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -250px; top: -230px; border-radius: 50%; border: 1px solid rgba(16,17,20,.11); }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -280px; top: -280px; border-radius: 50%; border: 1px solid rgba(16,17,20,.06); }
.hero-lines { position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(16,17,20,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(16,17,20,.06) 1px, transparent 1px); background-size: 70px 70px; mask-image: linear-gradient(to bottom, #000, transparent 86%); pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr); align-items: center; gap: 80px; }
.eyebrow { margin: 0 0 16px; color: #806a39; font-size: .72rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow--light { color: var(--accent-soft); }
.hero h1, .section-heading h2, .contact h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.hero h1 { margin: 0; max-width: 800px; font-size: clamp(4rem, 8vw, 7.3rem); line-height: .83; }
.hero h1 span { display: block; color: transparent; -webkit-text-stroke: 1px var(--ink); text-stroke: 1px var(--ink); }
.hero-subtitle { margin: 27px 0 0; font-weight: 800; font-size: 1.02rem; letter-spacing: .02em; }
.hero-description { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 36px; }
.button { min-height: 53px; padding: 0 23px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid transparent; font-size: .86rem; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--dark { background: var(--ink); color: #fff; box-shadow: 0 12px 30px rgba(16,17,20,.17); }
.button--outline { border-color: #bdb5a7; background: rgba(255,255,255,.35); }
.button--light { background: #fff; color: #0a0b0d; }
.button--wide { width: 100%; }
.quick-data { display: flex; gap: 12px; flex-wrap: wrap; }
.quick-data__item { min-width: 190px; padding: 16px 18px; display: flex; flex-direction: column; border: 1px solid rgba(16,17,20,.1); border-radius: 17px; background: rgba(255,255,255,.55); }
.quick-data__item span { color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 850; }
.quick-data__item strong { margin-top: 2px; font-size: 1rem; }
.hero-identity { position: relative; min-height: 480px; padding: 48px 35px 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 31px; border-radius: 38px; overflow: hidden; background: linear-gradient(145deg, #090a0c 0%, #17191d 100%); color: #fff; box-shadow: var(--shadow); }
.hero-identity::before { content: ""; position: absolute; width: 260px; height: 260px; left: -120px; bottom: -120px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.identity-ring { position: absolute; width: 390px; height: 390px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.identity-copy { position: relative; z-index: 1; text-align: center; }
.identity-copy p { margin: 0; font-weight: 900; letter-spacing: .15em; font-size: .82rem; }
.identity-copy span { display: block; margin-top: 7px; color: #c7c8ca; font-size: .82rem; }

.focus-strip { background: #0b0c0e; color: #fff; border-block: 1px solid rgba(255,255,255,.08); }
.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.focus-item { min-height: 110px; padding: 25px 24px; display: flex; align-items: center; gap: 14px; border-right: 1px solid rgba(255,255,255,.1); }
.focus-item:last-child { border-right: 0; }
.focus-item span { color: var(--accent-soft); font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.focus-item strong { font-size: .9rem; }

.section { padding: 105px 0; }
.section--sand { background: var(--sand); border-block: 1px solid var(--line); }
.section-heading { max-width: 780px; margin-bottom: 46px; }
.section-heading h2 { margin: 0; font-size: clamp(2.7rem, 5vw, 4.8rem); line-height: .98; }
.section-heading > p:last-child { margin: 18px 0 0; color: var(--muted); max-width: 680px; }
.authority-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.authority-card { min-height: 245px; padding: 29px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.72); box-shadow: 0 14px 36px rgba(10,11,13,.045); transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.authority-card:hover { transform: translateY(-5px); background: #fff; box-shadow: var(--shadow); }
.authority-card--wide { grid-column: span 2; }
.card-number, .formation-card > span { color: #866e39; font-size: .69rem; font-weight: 900; letter-spacing: .18em; }
.authority-card h3, .formation-card h3 { margin: 55px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; }
.authority-card p, .formation-card p { margin: 0; color: var(--muted); }
.fiscal-credit { margin-top: 20px; padding: 38px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; background: linear-gradient(135deg, #08090b, #1a1c21); color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.fiscal-credit__mark { width: 78px; height: 78px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: var(--accent-soft); font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.fiscal-credit h3 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.fiscal-credit p { margin: 0; color: #c9c9cb; }

.repse-grid { display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: 70px; }
.repse-grid .section-heading { margin-bottom: 0; }
.repse-panel { min-height: 300px; padding: 42px; display: flex; align-items: center; gap: 27px; border: 1px solid #d0c7b7; border-radius: var(--radius-lg); background: rgba(255,255,255,.64); box-shadow: var(--shadow); }
.repse-symbol { width: 108px; height: 108px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 25px; background: var(--ink); color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 4rem; }
.repse-panel span { display: block; color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.repse-panel strong { display: block; margin-top: 3px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem,5vw,4.3rem); line-height: 1; }

.formation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.formation-card { min-height: 285px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; position: relative; overflow: hidden; }
.formation-card::after { content: ""; position: absolute; width: 160px; height: 160px; border: 1px solid rgba(16,17,20,.07); border-radius: 50%; right: -65px; bottom: -80px; }
.formation-card h3 { margin-top: 75px; }

.contact { position: relative; padding: 105px 0; overflow: hidden; background: #090a0c; color: #fff; }
.contact::before { content: ""; position: absolute; width: 650px; height: 650px; left: -330px; top: -300px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.contact::after { content: ""; position: absolute; width: 450px; height: 450px; right: -260px; bottom: -240px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.contact h2 { margin: 0; font-size: clamp(3rem, 6vw, 5.8rem); line-height: .9; }
.contact-subtitle { margin: 19px 0 32px; color: #c4c5c7; }
.contact-data { display: grid; gap: 0; max-width: 660px; }
.contact-data div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-data span { color: #aeb0b3; font-size: .82rem; }
.contact-data strong { text-align: right; }
.contact-card { padding: 42px; display: flex; flex-direction: column; align-items: center; gap: 33px; border: 1px solid rgba(255,255,255,.1); border-radius: 32px; background: #15171a; }

.site-footer { padding: 30px 0; background: #050607; color: #b4b6b9; border-top: 1px solid rgba(255,255,255,.07); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.footer-brand { display: flex; align-items: center; gap: 13px; color: #fff; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-size: .79rem; letter-spacing: .1em; }
.footer-brand div span { margin-top: 4px; color: #9b9da1; font-size: .69rem; }
.site-footer p { margin: 0; max-width: 650px; text-align: right; font-size: .75rem; }
.floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 1100; min-height: 52px; padding: 0 17px 0 10px; display: flex; align-items: center; gap: 9px; border-radius: 999px; background: #fff; color: #0a0b0d; box-shadow: 0 16px 45px rgba(0,0,0,.22); border: 1px solid #dedede; font-size: .78rem; }
.floating-whatsapp > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #141518; color: #fff; font-weight: 900; }

/* El contenido es visible por defecto. JS solo añade animación progresiva. */
.reveal { opacity: 1; transform: none; }
.reveal.reveal-ready { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.reveal-ready.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .hero-grid, .contact-grid, .repse-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .hero-identity { min-height: 430px; }
  .authority-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .formation-grid { grid-template-columns: repeat(2,1fr); }
  .focus-grid { grid-template-columns: repeat(2,1fr); }
  .focus-item:nth-child(2) { border-right: 0; }
  .focus-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }

  /* Sin JS el menú queda visible y utilizable. */
  .main-nav { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  html.js .menu-toggle { display: flex; }
  html.js .main-nav { display: none; position: fixed; top: 84px; left: 18px; right: 18px; padding: 12px; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  html.js .main-nav.is-open { display: flex; }
  html.js .main-nav a { padding: 13px 12px; border-bottom: 1px solid #ece8e0; }
  html.js .main-nav a:last-child { border-bottom: 0; text-align: center; margin-top: 6px; }
  html.js .menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  html.js .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
  html.js .menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 700px) {
  .container { width: min(100% - 24px, var(--container)); }
  .header-inner { min-height: 76px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: .78rem; }
  .ci-logo--small { width: 46px; height: 46px; font-size: 1.12rem; }
  html.js .main-nav { top: 76px; }
  .main-nav { font-size: .75rem; }
  body:not(:has(.menu-toggle)) .main-nav { display: flex; }
  .hero { min-height: auto; padding: 82px 0 76px; }
  .hero h1 { font-size: clamp(3.6rem, 18vw, 5.2rem); }
  .hero-description { font-size: .97rem; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .quick-data { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .quick-data__item { min-width: 0; padding: 14px; }
  .hero-identity { min-height: 390px; border-radius: 28px; padding: 38px 22px 30px; }
  .focus-grid, .authority-grid, .formation-grid { grid-template-columns: 1fr; }
  .focus-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .focus-item:last-child { border-bottom: 0; }
  .section { padding: 78px 0; }
  .authority-card--wide { grid-column: auto; }
  .authority-card { min-height: 220px; }
  .fiscal-credit { grid-template-columns: 1fr; padding: 30px; }
  .fiscal-credit .button { width: auto; justify-self: start; }
  .repse-panel { min-height: 240px; padding: 28px; }
  .repse-symbol { width: 82px; height: 82px; font-size: 3rem; }
  .formation-card { min-height: 245px; }
  .contact { padding: 78px 0; }
  .contact-grid { gap: 44px; }
  .contact-card { padding: 30px 20px; }
  .contact-data div { flex-direction: column; gap: 5px; }
  .contact-data strong { text-align: left; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .site-footer p { text-align: left; }
  .floating-whatsapp { width: 54px; height: 54px; padding: 0; justify-content: center; }
  .floating-whatsapp > strong { display: none; }
  .floating-whatsapp > span { width: 34px; height: 34px; }
}

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