/* =========================================================
   CIF · Corporación Integral de Fomento — Hoja de estilos
   Identidad: Montserrat, azul CIF + dorado CIF
   ========================================================= */

:root {
  /* Identidad CIF */
  --navy: #0B2A5B;          /* Azul CIF (primario) */
  --navy2: #051836;         /* Azul profundo */
  --gold: #C9A24B;          /* Dorado CIF (acento) */
  --gold2: #F0D187;         /* Dorado claro */
  --gold-dark: #8A6420;     /* Dorado oscuro (degradados) */
  --silver: #B1B4B4;        /* Plata del logo */

  /* Superficies y texto */
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --text: #12203D;
  --muted: #51607A;
  --line: #DFE4EE;
  --heading: var(--navy);
  --logo-plate: #F7F7F7;
  --header-bg: rgba(255, 255, 255, .86);

  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 42, 91, .08);
  --shadow-lg: 0 24px 60px rgba(11, 42, 91, .16);
  --grad-gold: linear-gradient(90deg, var(--gold2), var(--gold));
  --grad-navy: linear-gradient(150deg, #0F3677 0%, var(--navy) 48%, var(--navy2) 100%);
  --font: 'Montserrat', Arial, sans-serif;

  /* Integración con Bootstrap */
  --bs-body-font-family: var(--font);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--line);
  --bs-link-color-rgb: 11, 42, 91;
}

[data-bs-theme="dark"] {
  --bg: #07142B;
  --card: #0D1F3D;
  --text: #EAF0FA;
  --muted: #AAB7CC;
  --line: #1F3560;
  --heading: var(--gold2);
  --header-bg: rgba(5, 24, 54, .88);
  --shadow: 0 10px 30px rgba(0, 0, 0, .3);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--line);
  --bs-link-color-rgb: 240, 209, 135;
  --bs-secondary-color: var(--muted);
}

/* ---------- Base ---------- */
html { scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, .h4, .h5 { font-weight: 800; color: var(--heading); }
.h5 { font-size: 1.2rem; }
a { text-underline-offset: 3px; }
::selection { background: var(--gold2); color: var(--navy2); }
.text-muted-cif { color: var(--muted); }
.link-gold { color: var(--gold-dark); font-weight: 600; }
[data-bs-theme="dark"] .link-gold { color: var(--gold2); }

.skip-link {
  position: absolute; left: 16px; top: 8px; z-index: 2000;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px;
}

/* ---------- Encabezado ---------- */
.site-header {
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 3px solid var(--gold);
  transition: box-shadow .3s, background-color .3s;
}
.site-header.scrolled { box-shadow: 0 8px 28px rgba(11, 42, 91, .12); }
.site-header .navbar { --bs-navbar-padding-y: .4rem; }
.site-header .navbar-brand { padding: 0; margin-right: 1.5rem; }
.brand-logo { height: 74px; width: auto; display: block; transition: height .3s; }
.site-header.scrolled .brand-logo { height: 60px; }
[data-bs-theme="dark"] .brand-logo { background: var(--logo-plate); border-radius: 10px; padding: 3px 8px; }

.site-header .nav-link {
  position: relative; color: var(--text); font-weight: 700; font-size: 14px; letter-spacing: .5px; text-transform: uppercase;
  padding: .6rem .8rem !important; border-radius: 8px; white-space: nowrap;
}
.site-header .nav-link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-header .nav-link.dropdown-toggle::after { border: 0; margin: 0; vertical-align: 0; }
.site-header .nav-link:hover, .site-header .nav-link.active, .site-header .nav-link.show { color: var(--navy); }
[data-bs-theme="dark"] .site-header .nav-link:hover,
[data-bs-theme="dark"] .site-header .nav-link.active { color: var(--gold2); }
.site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }
.site-header .navbar-toggler { border: 1.5px solid var(--line); padding: .35rem .55rem; }
.site-header .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(201, 162, 75, .35); }

.dropdown-cif {
  border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 0 0 14px 14px;
  padding: 8px; min-width: 300px; background: var(--card); box-shadow: var(--shadow-lg);
}
.dropdown-cif .dropdown-item {
  display: flex; gap: 12px; align-items: center; border-radius: 10px; padding: 10px 12px;
  font-weight: 700; font-size: .95rem; color: var(--text); white-space: normal;
}
.dropdown-cif .dropdown-item img { flex: 0 0 auto; }
.dropdown-cif .dropdown-item small { display: block; font-weight: 500; font-size: .82rem; color: var(--muted); }
.dropdown-cif .dropdown-item:hover, .dropdown-cif .dropdown-item:focus { background: rgba(201, 162, 75, .12); color: var(--heading); }
@media (min-width: 1200px) {
  .site-header .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}
/* Pantallas de 1200–1399px: menú un poco más compacto para que quepa en una línea */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-header .nav-link { font-size: 13px; letter-spacing: .2px; padding: .6rem .5rem !important; }
  .site-header .nav-link::after { left: .5rem; right: .5rem; }
  .site-header .navbar-brand { margin-right: .75rem; }
  .social-header { gap: 6px; }
  .social-header a, .theme-toggle { width: 40px; height: 40px; }
}
@media (max-width: 1199.98px) {
  .site-header .navbar-collapse { padding: 8px 0 14px; }
  .site-header .nav-link::after { display: none; }
  .dropdown-cif { box-shadow: none; border-radius: 12px; min-width: 0; }
}

/* Redes sociales en el encabezado */
.social-header { gap: 8px; margin-right: 4px; }
.social-header a {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--navy); font-size: 1.2rem; text-decoration: none;
  border: 2px solid var(--gold); transition: background .2s, color .2s, transform .2s;
}
.social-header a:hover, .social-header a:focus-visible { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
[data-bs-theme="dark"] .social-header a { background: var(--navy); color: var(--gold2); }
[data-bs-theme="dark"] .social-header a:hover, [data-bs-theme="dark"] .social-header a:focus-visible { background: var(--gold); color: var(--navy); }

.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  background: transparent; color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; transition: .2s;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold-dark); }
[data-bs-theme="dark"] .theme-toggle { color: var(--gold2); }

/* ---------- Botones ---------- */
.btn { font-weight: 800; font-size: 14px; letter-spacing: .8px; text-transform: uppercase; border-radius: 40px; padding: .8rem 1.6rem; transition: all .2s; }
.btn-sm { padding: .5rem 1.1rem; font-size: 12.5px; }
.btn-lg { padding: .95rem 1.9rem; font-size: 15px; }

.btn-cif-gold { background: var(--grad-gold); color: var(--navy); border: 0; box-shadow: 0 6px 18px rgba(201, 162, 75, .3); }
.btn-cif-gold:hover, .btn-cif-gold:focus-visible {
  background: linear-gradient(90deg, var(--gold), var(--gold-dark)); color: #fff; transform: translateY(-1px);
}
.btn-cif-navy { background: var(--navy); color: #fff; border: 0; box-shadow: 0 8px 20px rgba(11, 42, 91, .25); }
.btn-cif-navy:hover, .btn-cif-navy:focus-visible { background: var(--navy2); color: var(--gold2); transform: translateY(-1px); }
[data-bs-theme="dark"] .btn-cif-navy { background: #1A3F7A; }
.btn-cif-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-cif-outline:hover, .btn-cif-outline:focus-visible { background: var(--navy); color: #fff; }
[data-bs-theme="dark"] .btn-cif-outline { color: var(--gold2); border-color: var(--gold); }
[data-bs-theme="dark"] .btn-cif-outline:hover { background: var(--gold); color: var(--navy2); }
.btn-cif-ghost { background: rgba(255, 255, 255, .06); color: #fff; border: 1.5px solid rgba(240, 209, 135, .55); }
.btn-cif-ghost:hover, .btn-cif-ghost:focus-visible { background: rgba(255, 255, 255, .12); color: var(--gold2); border-color: var(--gold2); }

/* ---------- Hero (fondo azul CIF) ---------- */
.hero {
  --mx: 72%; --my: 40%;                 /* posición del destello que sigue al cursor */
  --hero-curva: var(--card);            /* color de la sección que sigue */
  position: relative; overflow: hidden; isolation: isolate;
  padding: 72px 0 128px; color: #fff;
  background:
    radial-gradient(820px 560px at 76% 46%, #1A4A9A 0%, rgba(26, 74, 154, 0) 62%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy2) 100%);
}
[data-bs-theme="dark"] .hero {
  background:
    radial-gradient(820px 560px at 76% 46%, #123A7C 0%, rgba(18, 58, 124, 0) 62%),
    linear-gradient(180deg, #071F45 0%, #030E22 100%);
}
.hero .container { position: relative; z-index: 2; }

/* Capas decorativas */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-dots {                            /* textura de puntos */
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
  opacity: .55;
}
.hero-spot {
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(240, 209, 135, .12), transparent 65%);
}
.hero-routes {                          /* se desvanecen detrás del texto */
  position: absolute; inset: 0; width: 100%; height: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 55%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 55%);
}
.hero-routes .ruta { fill: none; stroke-width: 1.2; stroke-linecap: round; }
.hero-routes .ruta-base { stroke: rgba(240, 209, 135, .16); }
.hero-routes .ruta-flujo { stroke: rgba(240, 209, 135, .75); stroke-dasharray: 2 26; animation: flujo 6s linear infinite; }
.hero-routes .ruta-azul { stroke: rgba(120, 170, 255, .18); }
@keyframes flujo { to { stroke-dashoffset: -280; } }
.hero-routes .nodo { fill: var(--gold2); }
.hero-routes .nodo-halo { fill: none; stroke: var(--gold2); stroke-width: 1; opacity: 0; animation: halo 3s ease-out infinite; animation-delay: var(--d, 0s); transform-box: fill-box; transform-origin: center; }
@keyframes halo { from { opacity: .8; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 72px; display: block; }
.hero-curve .relleno { fill: var(--hero-curva); }
.hero-curve .filete { fill: none; stroke: url(#hcGold); stroke-width: 3; vector-effect: non-scaling-stroke; }

/* Texto */
.hero-kicker {                          /* etiqueta tipo cápsula */
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 40px;
  font-weight: 700; letter-spacing: 3px; font-size: 11.5px; color: var(--gold2); text-transform: uppercase; margin-bottom: 1.1rem;
  background: rgba(240, 209, 135, .08); border: 1px solid rgba(240, 209, 135, .35);
}
.hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold2); box-shadow: 0 0 0 4px rgba(240, 209, 135, .2); flex: 0 0 auto; }
.hero-title { font-size: clamp(1.9rem, 3.6vw, 2.85rem); line-height: 1.15; margin: 0 0 1.1rem; color: #fff; }
.hero-title .hl {                       /* marcador dorado suave en lugar de texto degradado */
  color: var(--gold2);
  background: linear-gradient(transparent 68%, rgba(201, 162, 75, .26) 68%, rgba(201, 162, 75, .26) 94%, transparent 94%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-lead { font-size: 1.05rem; color: #D6DEE9; max-width: 540px; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2rem; }
.hero-actions .btn-cif-gold { box-shadow: 0 10px 28px rgba(201, 162, 75, .35); }
.hero-actions .btn-cif-ghost { border-color: var(--gold); }

.hero-brands {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 10px 8px 18px; border-radius: 60px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(240, 209, 135, .22);
}
.hero-brands span { font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #AEBBD0; margin-right: 4px; }
.hero-brands img { width: 44px; height: 44px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35)); transition: transform .25s; }
.hero-brands a:hover img { transform: translateY(-3px) scale(1.06); }

/* Ilustración */
.hero-visual { position: relative; aspect-ratio: 5 / 4; margin: 0 0 120px 48px; }
.hero-visual::before {                  /* halo detrás de las barras */
  content: ""; position: absolute; inset: 8% 4% 6% 12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(46, 111, 208, .35), transparent);
  filter: blur(10px);
}
.hero-svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .4s ease-out; }
.hv-bar { transform-box: fill-box; transform-origin: bottom; animation: barUp 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d); }
@keyframes barUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hv-c { stroke-dasharray: 760; stroke-dashoffset: 760; animation: draw 1.6s .1s cubic-bezier(.4, 0, .2, 1) forwards; }
.hv-arc { stroke-dasharray: 560; stroke-dashoffset: 560; animation: draw 1.3s .8s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hv-glow { opacity: 0; animation: glow 2.4s 2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.hv-spark { opacity: 0; animation: twinkle 3.2s ease-in-out infinite; animation-delay: var(--d); }
@keyframes twinkle { 0%, 100% { opacity: 0; } 50% { opacity: .9; } }

/* Distintivo "Convocatoria publicada" sobre la ilustración */
.hero-chip {
  position: absolute; top: 6px; left: 0; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 12px 7px 7px; border-radius: 14px; text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(240, 209, 135, .4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25); transition: background .2s, border-color .2s, transform .2s;
}
.hero-chip:hover { color: #fff; background: rgba(255, 255, 255, .16); border-color: var(--gold2); transform: translateY(-2px); }
.hero-chip-icon {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-gold); color: var(--navy); font-size: 1.05rem;
}
.hero-chip strong { display: block; font-size: .9rem; line-height: 1.2; }
.hero-chip small { display: block; font-size: .8rem; color: var(--gold2); font-weight: 600; }
.hero-chip-arrow { font-size: 1.3rem; color: var(--gold2); transition: transform .2s; }
.hero-chip:hover .hero-chip-arrow { transform: translateX(3px); }

/* Tarjeta de la asamblea (cristal sobre azul) */
.hero-float {
  position: absolute; left: -48px; bottom: -124px; z-index: 2; width: min(400px, 86%);
  background: rgba(5, 24, 54, .55); color: #fff; border-radius: 20px; padding: 20px;
  border: 1px solid rgba(240, 209, 135, .28); border-top: 4px solid var(--gold);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.hero-float-kicker { font-size: .75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold2); margin: 0 0 4px; }
.hero-float-title { font-size: 1.05rem; line-height: 1.3; margin: 0 0 6px; color: #fff; }
.hero-float-meta { font-size: .82rem; color: #D6DEE9; margin: 0 0 14px; display: flex; gap: 6px; align-items: center; }
.hero-float-meta i { color: var(--gold2); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown > div {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px; text-align: center; padding: 8px 2px;
}
.countdown span {
  display: block; font-size: 1.45rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #F7E3AE, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.countdown small { font-size: .68rem; letter-spacing: 1px; text-transform: uppercase; color: #AEBBD0; }

/* Indicador para bajar */
.hero-scroll {
  position: absolute; left: 50%; bottom: 52px; z-index: 2; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gold2); border: 1.5px solid rgba(240, 209, 135, .45); text-decoration: none; font-size: 1.3rem;
  transition: background .2s, color .2s;
}
.hero-scroll i { animation: bob 1.8s ease-in-out infinite; }
.hero-scroll:hover { background: var(--gold); color: var(--navy); }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* ---------- Secciones y jerarquía de títulos ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--card); }

.sec-head { margin-bottom: 32px; }
.sec-title {                      /* Título grande en azul */
  font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.1;
  text-transform: uppercase; color: var(--heading); margin: 0 0 8px;
}
.sec-sub {                        /* Subtítulo dorado espaciado */
  font-weight: 700; letter-spacing: 5px; font-size: 14px; color: var(--gold); text-transform: uppercase; margin: 0;
}
.sec-bar {                        /* Barra decorativa */
  width: 70px; height: 4px; background: var(--gold); margin: 14px 0 0; position: relative;
}
.sec-bar::after {
  content: ""; position: absolute; left: 84px; top: -3px; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg);
}

/* ---------- Quiénes somos ---------- */
.about-name { font-size: 1.3rem; margin-bottom: .75rem; }
.about-lead { font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 600; line-height: 1.5; color: var(--heading); margin-bottom: 1rem; }
[data-bs-theme="dark"] .about-lead { color: #fff; }
.about-lead span { color: var(--gold); }
.about-text { color: var(--muted); max-width: 600px; font-size: 1.05rem; }

.about-brands { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-brands a {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 16px; text-decoration: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .25s, border-color .25s;
}
.about-brands a:hover { box-shadow: var(--shadow); border-color: rgba(201, 162, 75, .6); }
.about-brands img { width: 120px; height: 120px; filter: drop-shadow(0 8px 16px rgba(11, 42, 91, .18)); transition: transform .3s; }
.about-brands a:hover img { transform: scale(1.06); }
.about-brands span { font-weight: 800; letter-spacing: 1.5px; font-size: 1rem; color: var(--heading); }

/* ---------- Empresas ---------- */
.biz-card {
  display: flex; height: 100%; overflow: hidden; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.biz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.biz-media {
  position: relative; flex: 0 0 200px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-navy); overflow: hidden;
}
.biz-media::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(240, 209, 135, .35); box-shadow: 0 0 0 26px rgba(240, 209, 135, .06), 0 0 0 52px rgba(240, 209, 135, .04);
}
.company-logo {
  position: relative; width: 136px; height: auto; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .35)); transition: transform .4s ease;
}
.biz-card:hover .company-logo { transform: scale(1.06); }
.biz-body { padding: 26px 28px; }
.biz-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: .95rem; font-weight: 700; color: var(--navy); text-decoration: none;
  border-bottom: 2px solid var(--gold); padding-bottom: 2px; transition: color .2s, gap .2s;
}
.biz-link:hover { color: var(--gold-dark); gap: 11px; }
[data-bs-theme="dark"] .biz-link { color: var(--gold2); }
[data-bs-theme="dark"] .biz-link:hover { color: #fff; }
.biz-body h3 { font-size: 1.6rem; letter-spacing: 1px; margin: 0; }
.company-sub { font-weight: 700; font-size: 1rem; color: var(--gold); margin-bottom: 14px; }
@media (max-width: 575.98px) {
  .biz-card { flex-direction: column; }
  .biz-media { flex-basis: auto; padding: 28px 0; }
}

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 8px; color: var(--muted); font-size: 15px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23C9A24B'/%3E%3Cpath d='M5.5 10.3l3 3 6-6.3' fill='none' stroke='%230B2A5B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Asamblea: línea de tiempo ---------- */
.timeline { position: relative; padding-top: 6px; }
/* Los nodos están centrados en columnas iguales: los puntos caen en 1/6, 1/2 y 5/6 del ancho */
.tl-track { position: absolute; left: calc(100% / 6); right: calc(100% / 6); top: 28px; height: 3px; background: var(--line); border-radius: 3px; }
.tl-progress { height: 100%; width: 50%; background: var(--grad-gold); border-radius: 3px; transition: width 1.2s ease; }
.tl-list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); }
.tl-node { text-align: center; padding: 0 14px; }
.tl-dot {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 3px solid var(--line); color: var(--muted); font-size: 1.1rem; margin: 0 auto 14px;
}
.tl-node.is-done .tl-dot { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.tl-node.is-current .tl-dot { border-color: var(--gold); color: var(--gold-dark); box-shadow: 0 0 0 6px rgba(201, 162, 75, .18); }
[data-bs-theme="dark"] .tl-node.is-current .tl-dot { color: var(--gold2); }
.tl-date { font-size: .8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin: 0 0 2px; }
.tl-node h3 { font-size: 1.15rem; margin: 0 0 4px; }
.tl-node p:last-child { font-size: .95rem; color: var(--muted); margin: 0 auto; max-width: 320px; }
@media (max-width: 767.98px) {
  .tl-track { left: 21px; right: auto; top: 20px; bottom: 40px; width: 3px; height: auto; }
  .tl-progress { width: 100%; height: 50%; transition: height 1.2s ease; }
  .tl-list { grid-template-columns: 1fr; gap: 18px; }
  .tl-node { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; text-align: left; padding: 0; }
  .tl-node p:last-child { margin: 0; }
  .tl-dot { grid-row: span 3; margin: 0; }
}

/* ---------- Asamblea: tarjeta de evento ---------- */
.agenda-card {
  position: sticky; top: 100px; overflow: hidden; color: #D6DEE9; background: var(--grad-navy);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg);
}
.agenda-card::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 240px; height: 240px; border-radius: 50%;
  border: 1px solid rgba(240, 209, 135, .35); box-shadow: 0 0 0 36px rgba(240, 209, 135, .05); pointer-events: none;
}
.agenda-card > * { position: relative; z-index: 1; }
.agenda-date { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.agenda-day {
  font-size: 3.6rem; font-weight: 800; line-height: .9;
  background: linear-gradient(180deg, #F0D187, #C9A24B); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.agenda-month { font-size: .9rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #fff; line-height: 1.35; }
.agenda-meta li { display: flex; gap: 10px; font-size: 1rem; margin-bottom: 8px; }
.agenda-meta i { color: var(--gold2); }
.agenda-meta { margin-bottom: 20px; }
.agenda-cal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
.agenda-cal span { color: #AEBBD0; }
.agenda-cal a { color: var(--gold2); text-decoration: none; font-weight: 600; }
.agenda-cal a:hover { color: #fff; }

/* ---------- Asamblea: pestañas ---------- */
.tabs-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 24px 24px; }
.nav-tabs-cif { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; flex-wrap: nowrap; }
.nav-tabs-cif .nav-link {
  position: relative; white-space: nowrap; border: 0; background: none; color: var(--muted);
  font-weight: 700; font-size: 1rem; padding: 14px 16px;
}
.nav-tabs-cif .nav-link::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.nav-tabs-cif .nav-link:hover { color: var(--heading); }
.nav-tabs-cif .nav-link.active { color: var(--heading); }
.nav-tabs-cif .nav-link.active::after { transform: scaleX(1); }

/* Botón a Publicaciones de Sociedades Mercantiles (sustituye al Orden del día) */
.psm-btn {
  display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 12px 14px 12px 12px;
  border-radius: 60px; text-decoration: none; color: #fff; background: var(--grad-navy);
  border: 2px solid var(--gold); box-shadow: 0 10px 26px rgba(11, 42, 91, .25);
  transition: transform .2s, box-shadow .2s;
}
.psm-btn:hover, .psm-btn:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(11, 42, 91, .35), 0 0 0 4px rgba(201, 162, 75, .25); }
.psm-icon {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-gold); color: var(--navy); font-size: 1.55rem;
  box-shadow: 0 0 0 5px rgba(240, 209, 135, .2);
}
.psm-label { flex: 1 1 auto; min-width: 0; font-weight: 800; font-size: 15px; letter-spacing: .8px; text-transform: uppercase; line-height: 1.3; }
.psm-go {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(240, 209, 135, .6); color: var(--gold2); transition: background .2s, color .2s;
}
.psm-btn:hover .psm-go { background: var(--gold); color: var(--navy); }
[data-bs-theme="dark"] .psm-btn { background: linear-gradient(150deg, #1A4A9A, #0F3677); }

.file-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
}
.file-strip h3 { font-size: 1.2rem; margin: 0 0 2px; }
.file-strip p { margin: 0; font-size: 1rem; color: var(--muted); }
.file-meta { font-weight: 700; color: var(--gold); white-space: nowrap; }
.file-icon {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff;
}
.file-icon.sm { width: 44px; height: 44px; font-size: 21px; border-radius: 12px; }
.file-pdf { background: linear-gradient(160deg, #C0392B, #8E1F14); }
.file-doc { background: linear-gradient(160deg, #2B579A, #163A72); }

.map-wrap { position: relative; aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Documentos ---------- */
.doc-list { display: grid; gap: 12px; margin: 0; }
.doc-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; transition: box-shadow .2s, border-color .2s;
}
.doc-row:hover { box-shadow: var(--shadow); border-color: rgba(201, 162, 75, .6); }
.doc-info { flex: 1 1 260px; min-width: 0; }
.doc-info h3 { font-size: 1.05rem; margin: 0 0 2px; color: var(--text); }
.doc-info p { margin: 0; font-size: .92rem; color: var(--muted); }
.doc-tag {
  font-size: 12.5px; font-weight: 700; letter-spacing: .5px; color: var(--muted); background: var(--bg);
  border: 1px solid var(--line); border-radius: 30px; padding: 4px 12px; white-space: nowrap;
}
.doc-actions { display: flex; gap: 8px; }

/* ---------- Estados financieros ---------- */
.ef-mail {
  display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px;
  background: var(--bg); border: 1px solid var(--line); border-left: 5px solid var(--gold);
  border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow);
}
.ef-mail-icon {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-navy); color: var(--gold2); font-size: 1.7rem; box-shadow: 0 0 0 5px rgba(201, 162, 75, .18);
}
.ef-mail-text { flex: 1 1 320px; min-width: 0; }
.ef-mail-text h3 { margin: 0 0 4px; }
.ef-mail-text p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* ---------- Contacto ---------- */
.contact-split { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-aside { position: relative; overflow: hidden; background: var(--grad-navy); color: #D6DEE9; padding: 34px 30px; }
.contact-aside::after {
  content: ""; position: absolute; left: -70px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(240, 209, 135, .35); box-shadow: 0 0 0 30px rgba(240, 209, 135, .05); pointer-events: none;
}
.contact-aside h3 { color: #fff; font-size: 1.35rem; }
.contact-aside p { font-size: .88rem; }
.contact-aside li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 1rem; }
.contact-aside li i { color: var(--gold2); font-size: 1.05rem; }
.contact-aside a { color: var(--gold2); }

.social { display: flex; gap: 10px; position: relative; z-index: 1; }
.social { gap: 12px; }
.social a {
  width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); color: var(--gold2); border: 1px solid rgba(240, 209, 135, .45);
  font-size: 20px; text-decoration: none; transition: background .2s, color .2s, transform .2s;
}
.social a:hover, .social a:focus-visible { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

.form-cif { padding: 34px 32px; }
.form-cif .form-label { font-weight: 700; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
.form-cif .form-control {
  font-weight: 500; font-size: 15px; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--text);
}
.form-cif .form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(201, 162, 75, .25); background: var(--card); }
.form-cif .form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.form-cif .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(201, 162, 75, .3); border-color: var(--gold); }
.form-cif .form-check-label { font-size: 1rem; }
.form-cif .form-text { color: var(--muted); }
.was-validated #asunto:invalid ~ div .invalid-feedback { display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* reCAPTCHA v3: se oculta la insignia flotante (choca con "volver arriba") y se muestra el aviso de Google */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-nota { flex: 1 1 260px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.recaptcha-nota a { color: inherit; text-decoration: underline; }
@media (max-width: 575.98px) { .form-cif { padding: 26px 20px; } .contact-aside { padding: 28px 22px; } }

/* ---------- Pie ---------- */
.footer-cif { background: var(--navy2); color: #D6DEE9; border-top: 4px solid var(--gold); padding: 52px 0 24px; font-size: 1rem; }
.footer-cif a { color: #D6DEE9; text-decoration: none; }
.footer-cif a:hover { color: var(--gold2); }
.footer-logo { height: 70px; width: auto; background: var(--logo-plate); border-radius: 12px; padding: 6px 12px; margin-bottom: 14px; }
.footer-title { font-weight: 700; letter-spacing: 3px; font-size: 13px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .88rem; color: #9FB0C8;
}

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 1030; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--gold2); display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top:hover { background: var(--gold); color: var(--navy); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Modal ---------- */
.modal-content { border-top: 4px solid var(--gold); border-radius: var(--radius); background: var(--card); }
.modal-body p { color: var(--muted); font-size: 1rem; }

/* ---------- Animación de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hv-bar, .hv-arc, .hv-c, .hv-glow, .hv-spark { animation: none; }
  .hv-arc, .hv-c { stroke-dashoffset: 0; }
  .hv-spark { opacity: .6; }
  .hv-glow { opacity: .8; }
  .hero-scroll i, .hero-routes .ruta-flujo, .hero-routes .nodo-halo { animation: none; }
  .biz-card, .doc-row, .btn, .company-logo { transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 991.98px) {
  /* En pantallas angostas la tarjeta va debajo de la ilustración, sin taparla */
  .hero-visual { aspect-ratio: auto; margin: 0 auto; max-width: 560px; }
  .hero-svg { position: relative; display: block; height: auto; aspect-ratio: 5 / 4; }
  .hero-float { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -12px; }
}
@media (max-width: 575.98px) {
  .container { --bs-gutter-x: 2rem; }   /* 16px de margen lateral en celular */
}
@media (max-width: 767.98px) {
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 96px; }
  .hero-curve { height: 40px; }
  .hero-routes { display: none; }
  .hero-kicker { letter-spacing: 1.5px; font-size: 10.5px; }
  .hero-scroll { display: none; }
  .hero-brands { padding-left: 14px; }
  .hero-brands span { letter-spacing: 1px; }
  .brand-logo { height: 60px; }
  .site-header.scrolled .brand-logo { height: 52px; }
  .doc-actions { width: 100%; }
  .doc-actions .btn-cif-gold { flex: 1; }
  .tabs-card { padding: 6px 16px 18px; }
  .agenda-day { font-size: 3rem; }
}
