:root{
  --navy-900:#07162b;
  --navy-800:#0b1f3a;
  --navy-700:#12305a;
  --navy-500:#2a5298;
  --accent:#f2a541;
  --accent-dark:#d98a1f;
  --ink:#16233a;
  --muted:#5b6b82;
  --paper:#f6f8fb;
  --line:#e2e8f0;
  --theme:#12305a;
  --theme-dark:#0b1f3a;
  --theme-soft:#e8eef8;
  --theme-text:#2a5298;
}

/* Tema por colegio */
body[data-inst="carmelitas"]{--theme:#9f7048;--theme-dark:#7d5535;--theme-soft:#f3e8dc;--theme-text:#8a5d38}
body[data-inst="libertad"]{--theme:#3e8e2b;--theme-dark:#2d6e1e;--theme-soft:#e3f1dc;--theme-text:#2f7a1f}
html{scroll-behavior:smooth}
body{font-family:'DM Sans',system-ui,sans-serif;color:var(--ink);background:#fff;line-height:1.65}
h1,h2,h3,h4,.brand{font-family:'Sora','DM Sans',sans-serif;letter-spacing:-.02em}

/* Navbar */
.navbar-site{background:var(--navy-900);padding:.85rem 0}
.navbar-site .brand{color:#fff;font-weight:700;font-size:1.15rem;text-decoration:none}
.navbar-site .brand span{color:var(--accent)}
.navbar-site .nav-link{color:#c5d2e6;font-weight:500;font-size:.95rem}
.navbar-site .nav-link:hover,.navbar-site .nav-link.active{color:#fff}
.navbar-site .navbar-toggler{border-color:rgba(255,255,255,.3)}
.navbar-site .navbar-toggler-icon{filter:invert(1)}

/* Botones */
.btn-accent{background:var(--accent);color:var(--navy-900);font-weight:600;border:0;border-radius:.6rem;padding:.7rem 1.4rem}
.btn-accent:hover{background:var(--accent-dark);color:var(--navy-900)}
.btn-line{border:1.5px solid rgba(255,255,255,.4);color:#fff;border-radius:.6rem;padding:.7rem 1.4rem;font-weight:500}
.btn-line:hover{background:rgba(255,255,255,.1);color:#fff}

/* Hero */
.hero{background:var(--navy-800);color:#fff;position:relative;overflow:hidden;padding:6rem 0 5rem}
.hero::before{content:"";position:absolute;inset:0;
  background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:48px 48px;mask-image:linear-gradient(to bottom,#000 30%,transparent 100%)}
.hero .container{position:relative}
.eyebrow{display:inline-block;font-size:.8rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}
.hero h1{font-size:clamp(2.1rem,5vw,3.6rem);font-weight:700;line-height:1.12;margin:.8rem 0 1.2rem}
.hero p.lead{color:#b9c8e0;max-width:34rem}
.hero-stats{display:flex;gap:2.5rem;margin-top:2.5rem;flex-wrap:wrap}
.hero-stats strong{display:block;font-family:'Sora';font-size:1.8rem;color:#fff}
.hero-stats small{color:#9fb2d0}
.hero-panel{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:1.1rem;padding:1.6rem}
.hero-panel .item{display:flex;gap:.9rem;padding:.8rem 0;border-bottom:1px solid rgba(255,255,255,.1)}
.hero-panel .item:last-child{border:0}
.hero-panel i{color:var(--accent);font-size:1.3rem}
.hero-panel h6{margin:0;color:#fff;font-size:.98rem}
.hero-panel p{margin:0;color:#9fb2d0;font-size:.88rem}

/* Secciones */
section{padding:5rem 0}
.section-alt{background:var(--paper)}
.section-title{font-size:clamp(1.6rem,3vw,2.3rem);font-weight:700;color:var(--navy-800)}
.section-sub{color:var(--muted);max-width:38rem}

/* Tarjetas de proyecto */
.card-proj{border:1px solid var(--line);border-radius:1rem;background:#fff;height:100%;transition:.2s;overflow:hidden}
.card-proj:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(11,31,58,.1);border-color:#cbd6e6}
.card-proj .top{height:6px;background:var(--theme)}
.card-proj .icon{width:46px;height:46px;border-radius:.8rem;background:var(--theme-soft);color:var(--theme);display:grid;place-items:center;font-size:1.3rem}
.tag{font-size:.72rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--theme-text);background:var(--theme-soft);padding:.25rem .6rem;border-radius:2rem}
.card-proj h5{font-size:1.1rem;font-weight:600;color:var(--theme-dark)}
.card-proj p{color:var(--muted);font-size:.93rem}

/* Instituciones */
.inst-card{border-radius:1.2rem;padding:2.2rem;color:#fff;height:100%;display:flex;flex-direction:column;text-decoration:none;transition:.2s}
.inst-card:hover{transform:translateY(-4px);color:#fff}
.inst-card.carm{background:#9f7048}
.inst-card.lib{background:#3e8e2b}
.inst-card h3{font-size:1.6rem;font-weight:700}
.inst-card p{color:rgba(255,255,255,.78)}
.inst-card .go{margin-top:auto;font-weight:600;color:var(--accent)}

/* Pasos */
.step-num{width:42px;height:42px;border-radius:50%;background:var(--navy-800);color:#fff;display:grid;place-items:center;font-family:'Sora';font-weight:700}

/* Contacto / Footer */
.cta-band{background:var(--navy-800);color:#fff;border-radius:1.2rem;padding:3rem}
footer{background:var(--navy-900);color:#9fb2d0;padding:2.5rem 0;font-size:.92rem}
footer a{color:#c5d2e6;text-decoration:none}
footer a:hover{color:#fff}

/* Páginas de institución */
.inst-hero{color:#fff;padding:4.5rem 0 3.5rem}
.inst-hero.carm{background:#9f7048}
.inst-hero.lib{background:#3e8e2b}
.inst-hero h1{font-size:clamp(1.9rem,4vw,3rem);font-weight:700}
.inst-hero p{color:rgba(255,255,255,.8);max-width:36rem}
.breadcrumb-site a{color:rgba(255,255,255,.75);text-decoration:none;font-size:.9rem}
.breadcrumb-site a:hover{color:#fff}
.toolbar{background:#fff;border:1px solid var(--line);border-radius:1rem;padding:1rem 1.2rem;margin-top:-2rem;position:relative;box-shadow:0 8px 24px rgba(11,31,58,.07)}
.chip{border:1px solid var(--line);background:#fff;border-radius:2rem;padding:.3rem .9rem;font-size:.85rem;color:var(--muted);cursor:pointer}
.chip.active{background:var(--theme);border-color:var(--theme);color:#fff}
.site-card .btn-visit{border:1.5px solid var(--theme);color:var(--theme-dark);border-radius:.6rem;font-weight:600;font-size:.9rem}
.site-card .btn-visit:hover{background:var(--theme);color:#fff}
.pending{font-size:.75rem;color:#a76d0c;background:#fff4e0;border-radius:2rem;padding:.2rem .6rem}
.empty{display:none;text-align:center;color:var(--muted);padding:3rem 0}

/* Imágenes y logos */
.proj-img{display:block;width:100%;height:190px;object-fit:cover;background:#e8eef8}
.inst-logo{width:84px;height:84px;object-fit:contain;border-radius:50%;background:#fff;padding:2px}
.inst-logo-hero{width:96px;height:96px;flex:none}
@media (max-width:575px){.inst-logo-hero{width:72px;height:72px}}

/* Foco del buscador con el color del colegio */
body[data-inst] .form-control:focus{border-color:var(--theme);box-shadow:0 0 0 .2rem var(--theme-soft)}
.site-card{display:flex;flex-direction:column}
.site-card > .p-4{flex:1}

/* Logo en la barra superior */
.navbar-site .brand{display:inline-flex;align-items:center;gap:.6rem}
.brand-logo{height:38px;width:auto}
