/* Vikingos Work — identidad Colegio Cumbres */
:root {
  --navy: #002E5D;
  --navy-2: #183256;
  --yellow: #FFCD00;
  --gold: #F4B122;
  --ink: #222222;
  --grey: #5b5f66;
  --band: #E9EBF0;
  --c1: #30365A;
  --c2: #2C5E8F;
  --c3: #69A2B4;
  --c4: #D9902F;

  --head: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.65 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 80px 0; }
.band { background: var(--band); }
.navy { background: var(--navy); color: #fff; }
.center { text-align: center; }

.title { font: 400 clamp(40px, 5vw, 56px)/1 var(--head); color: var(--navy); letter-spacing: .01em; }
.subtitle { color: var(--gold); font-size: 19px; margin: 6px 0 40px; }
.navy .title { color: #fff; }
.navy .subtitle { color: var(--yellow); }

/* Botones */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 6px; border: 2px solid transparent;
  font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--gold); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }

/* Barra superior */
.topbar { background: var(--navy); color: #fff; font-size: 14px; }
.topbar-row { display: flex; justify-content: center; align-items: center; gap: 18px; min-height: 40px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.topbar p { margin: 0; }
.topbar strong { color: var(--yellow); }
.topbar a { background: var(--yellow); color: var(--navy); font-weight: 600; text-decoration: none; padding: 4px 12px; border-radius: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 #e4e6eb; }
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(0,46,93,.12); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 104px; transition: height .25s; }
.is-scrolled .header-row { height: 80px; }
.ag-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; color: #7b818b; text-decoration: none; flex: none; padding-left: 20px; border-left: 1px solid #e4e6eb; }
.ag-logo:hover { color: var(--navy); }
.ag-logo small { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.ag-mark { display: flex; align-items: center; gap: 6px; }
.ag-mark svg { width: 20px; height: 19px; fill: currentColor; }
.ag-mark span { font: 600 9.5px/1.05 var(--body); letter-spacing: .05em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 16px; color: var(--navy-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.is-active { border-bottom-color: var(--yellow); }
.cumbres-logo { flex: none; display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.cumbres-logo img { width: 92px; height: 92px; object-fit: contain; transition: width .25s, height .25s; }
.is-scrolled .cumbres-logo img { width: 70px; height: 70px; }
.cumbres-text b { display: block; font: 400 30px/1 var(--head); letter-spacing: .03em; }
.cumbres-text small { display: inline-block; margin-top: 4px; background: var(--yellow); color: var(--navy); font: 700 11.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; }
.nav { margin-left: auto; }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; min-height: clamp(520px, 76vh, 760px); display: flex; align-items: center; overflow: hidden; isolation: isolate; color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 65%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0,46,93,.92) 0%, rgba(0,46,93,.72) 42%, rgba(0,46,93,.08) 78%);
}
.hero-inner { padding-top: 70px; padding-bottom: 70px; }
.hero-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.hero-brand img { width: 96px; height: 96px; object-fit: contain; flex: none; }
.hero-brand .hero-kicker { margin-bottom: 0; }
.hero-kicker { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 4px; margin-bottom: 18px; }
.hero h1 { font: 400 clamp(64px, 10vw, 128px)/.9 var(--head); letter-spacing: .01em; }
.hero-claim { font: 400 clamp(28px, 3.4vw, 40px)/1.1 var(--head); color: var(--yellow); margin: 10px 0 20px; letter-spacing: .02em; }
.hero-lead { font-size: 18px; max-width: 34em; color: #eef2f7; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Concepto (estilo "Nuestros atributos") */
.attrs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.attr-ico { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 18px; }
.attr-ico svg { width: 66px; height: 66px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.attr-ico .fill { fill: #fff; stroke: none; }
.c1 { background: var(--c1); } .c2 { background: var(--c2); } .c3 { background: var(--c3); } .c4 { background: var(--c4); }
.attrs h3 { font: 700 17px/1.3 var(--body); color: var(--navy-2); margin-bottom: 8px; }
.attrs p { font-size: 15px; color: var(--grey); margin: 0; }

/* Espacios */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { margin: 0; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,46,93,.08); border-bottom: 4px solid var(--yellow); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card figcaption { padding: 18px 20px 20px; }
.card h3 { font: 400 28px/1 var(--head); color: var(--navy); margin-bottom: 6px; letter-spacing: .02em; }
.card p { margin: 0; font-size: 15px; color: var(--grey); }

/* Servicios */
.serv-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.serv-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.services li { display: flex; align-items: center; gap: 14px; background: var(--band); border-radius: 6px; padding: 16px; font-weight: 600; color: var(--navy-2); }
.services svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--navy); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.services .fill { fill: #fff; stroke: none; }

/* Planes */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 0 auto; }
.plan { position: relative; background: #fff; border-radius: 6px; padding: 34px 30px; text-align: center; box-shadow: 0 6px 18px rgba(0,46,93,.08); }
.plan h3 { font: 400 32px/1 var(--head); color: var(--navy); letter-spacing: .02em; }
.price { font: 700 44px/1.1 var(--body); color: var(--navy); margin: 14px 0; }
.price small { display: block; font-size: 15px; font-weight: 600; color: var(--gold); }
.plan > p:not(.price) { color: var(--grey); font-size: 15px; margin-bottom: 24px; }
.plan-main { background: var(--navy); color: #fff; }
.plan-main h3, .plan-main .price { color: #fff; }
.plan-main .price small { color: var(--yellow); }
.plan-main > p:not(.price) { color: #d8e0ea; }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--yellow); color: var(--navy); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 12px; border-radius: 4px; white-space: nowrap; }
.plans-note { text-align: center; color: var(--grey); font-size: 15px; margin: 28px 0 0; }

/* Ubicación */
.loc-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.loc-card { display: flex; align-items: center; gap: 16px; background: var(--band); border-left: 4px solid var(--yellow); border-radius: 6px; padding: 16px 18px; margin-bottom: 20px; }
.loc-card img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.loc-card strong { display: block; color: var(--navy); font-size: 18px; }
.loc-card span { color: var(--grey); }
.parking { display: flex; align-items: center; gap: 12px; color: var(--navy-2); margin-bottom: 26px; }
.parking svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--band); box-shadow: 0 6px 18px rgba(0,46,93,.1); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Contacto */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 0 auto; }
.person { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: rgba(255,255,255,.07); border-top: 4px solid var(--yellow); border-radius: 6px; padding: 26px 20px; }
.person strong { font: 400 28px/1 var(--head); letter-spacing: .03em; margin-bottom: 8px; }
.person a { color: #dfe7f1; text-decoration: none; }
.person a:hover { text-decoration: underline; }
.person .wa { margin-top: 10px; background: var(--yellow); color: var(--navy); font-weight: 700; padding: 6px 16px; border-radius: 4px; }
.person .wa:hover { text-decoration: none; background: var(--gold); }
.contact-meta { text-align: center; color: #c9d6e6; margin: 30px 0 0; font-size: 15px; }

/* Links Colegio / Avanza */
.links { padding: 44px 0; background: #fff; }
.links-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.link-card { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 6px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.link-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,46,93,.12); }
.link-card span { flex: 1; font: 400 30px/1 var(--head); letter-spacing: .02em; }
.link-card small { display: block; font: 600 13px/1.4 var(--body); letter-spacing: 0; margin-bottom: 2px; }
.link-card b { font-size: 22px; }
.link-cumbres { background: var(--yellow); color: var(--navy); }
.link-cumbres img { width: 64px; height: 64px; object-fit: contain; }
.link-ag { background: var(--band); color: var(--navy-2); }
.link-ag svg { width: 38px; height: 37px; fill: var(--navy-2); flex: none; }
.link-ag span { font-size: 24px; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d6e6; border-top: 5px solid var(--yellow); padding: 34px 0; font-size: 14px; }
.footer-row { display: flex; align-items: center; gap: 22px; }
.footer-row p { margin: 0 0 4px; }
.footer-logo img { width: 80px; height: 80px; object-fit: contain; }
.footer-brand { font: 400 28px/1 var(--head); color: #fff; letter-spacing: .03em; }
.site-footer a { color: #fff; }
.site-footer .small { font-size: 13px; }

/* Responsive */
@media (max-width: 1180px) {
  .ag-logo small { display: none; }
}
@media (max-width: 1000px) {
  .nav { gap: 18px; }
  .nav a { font-size: 15px; }
  .attrs { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
}
@media (max-width: 880px) {
  .header-row { height: 84px; }
  .is-scrolled .header-row { height: 72px; }
  .cumbres-logo { order: 1; gap: 10px; }
  .cumbres-logo img, .is-scrolled .cumbres-logo img { width: 60px; height: 60px; }
  .cumbres-text b { font-size: 24px; }
  .cumbres-text small { font-size: 10px; }
  .ag-logo { order: 3; margin-left: auto; padding-left: 12px; }
  .nav-toggle {
    order: 4; display: grid; place-content: center; gap: 5px; width: 46px; height: 46px;
    border: 0; border-radius: 6px; background: var(--navy); cursor: pointer; margin-left: 4px;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-row { gap: 12px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; box-shadow: 0 10px 20px rgba(0,46,93,.12); padding: 6px var(--gutter) 14px;
  }
  .nav-open .nav { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid #eef0f4; font-size: 17px; }
  .nav a:hover, .nav a.is-active { border-bottom-color: #eef0f4; color: var(--c2); }
  .serv-grid, .loc-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .links-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(0,46,93,.35) 0%, rgba(0,46,93,.62) 50%, rgba(0,46,93,.85) 100%); }
  .hero-inner { padding-top: 150px; text-shadow: 0 1px 10px rgba(0,30,60,.5); }
  .hero-bg { object-position: 60% 30%; }
  .hero-inner { padding-bottom: 48px; }
  .hero-lead { font-size: 16.5px; }
  .hero-brand img { width: 68px; height: 68px; }
  .hero-kicker { font-size: 12.5px; }
  .attrs { grid-template-columns: 1fr 1fr; gap: 34px 16px; }
  .attr-ico { width: 96px; height: 96px; }
  .attr-ico svg { width: 48px; height: 48px; }
  .attrs h3 { font-size: 15.5px; }
  .attrs p { font-size: 14px; }
  .services { grid-template-columns: 1fr; }
  .plans, .people { grid-template-columns: 1fr; }
  .plans { gap: 34px; }
  .topbar { font-size: 13px; }
  .footer-row { flex-direction: column; text-align: center; }
  .ag-logo { display: none; }
  .link-card span { font-size: 26px; }
}
