/* ===== Centro de Padres Colegio Huelén — Estilos ===== */

:root {
  --ink: #20272f;
  --ink-soft: #5c6773;
  --paper: #f9f8f5;
  --paper-raised: #ffffff;
  --navy: #003870;
  --navy-deep: #00294f;
  --green: #54a154;
  --green-soft: #e2eed9;
  --sand: #8dabc9;
  --line: #e5e2d8;
  --shadow: 0 18px 40px rgba(0, 40, 80, 0.10);
  --radius: 20px;
}
/* Marca fija en claro, igual que huelen.cl (sin modo oscuro) */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', system-ui, sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Poppins', system-ui, sans-serif; text-wrap: balance; color: var(--navy-deep); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
section { padding: 88px 0; }

/* header */
header.top {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(249, 248, 245, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
header.top.con-scroll { border-color: var(--line); box-shadow: 0 6px 20px rgba(0, 40, 80, .06); }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; max-width: 1120px; margin: 0 auto; }
.marca { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy-deep); font-size: 1.02rem; }
.marca img { height: 44px; width: 44px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a { padding: 9px 15px; border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--ink-soft); transition: .2s; }
.nav-links a:hover { background: var(--green-soft); color: var(--green); }
.nav-cta { background: var(--navy); color: #fff !important; padding: 10px 20px !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy-deep); border-radius: 2px; transition: .25s; }

/* skyline divider motif, echoes the logo's stepped mountains */
.skyline { width: 100%; height: 34px; display: block; }
.skyline path { fill: var(--green); }

/* hero */
.hero { padding: 76px 0 60px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); background: var(--green-soft); padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 600; line-height: 1.08; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero p.lead { color: var(--ink-soft); font-size: 1.12rem; max-width: 480px; margin-bottom: 34px; }
.botones { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .94rem;
  border: none; cursor: pointer; transition: .25s;
}
.btn-primario { background: var(--navy); color: #fff; box-shadow: 0 14px 26px rgba(0, 56, 112, .28); }
.btn-primario:hover { transform: translateY(-3px); }
.btn-secundario { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-secundario:hover { border-color: var(--navy); }

.hero-cifras { display: flex; gap: 34px; margin-top: 52px; flex-wrap: wrap; }
.hero-cifras div strong { display: block; font-family: 'Poppins'; font-size: 1.8rem; color: var(--navy-deep); }
.hero-cifras div span { font-size: .85rem; color: var(--ink-soft); }

.hero-arte { position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.hero-arte .anillo { position: absolute; inset: 6%; border-radius: 50%; border: 1.5px dashed var(--line); }
.hero-arte img { width: 72%; border-radius: 50%; filter: drop-shadow(0 20px 34px rgba(0, 40, 80, .2)); }

/* section heads */
.cabecera { max-width: 640px; margin-bottom: 52px; }
.cabecera .eyebrow { margin-bottom: 16px; }
.cabecera h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 600; margin-bottom: 14px; }
.cabecera p { color: var(--ink-soft); font-size: 1.02rem; }

/* quiénes somos */
.directiva-foto { border-radius: var(--radius); overflow: hidden; margin: 0 auto 40px; position: relative; box-shadow: var(--shadow); max-width: 820px; }
.directiva-foto img { width: 100%; height: auto; display: block; }
.directiva-foto figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 22px;
  background: linear-gradient(to top, rgba(0, 20, 45, .72), transparent);
  color: #fff; font-family: 'Poppins'; font-size: .85rem; font-weight: 600; letter-spacing: .02em;
}
.directiva { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 54px; }
.persona { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center; transition: transform .25s ease, box-shadow .25s ease; }
.persona:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.persona .avatar {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--navy), var(--green));
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: 'Poppins'; font-weight: 600; font-size: 1.1rem;
}
.persona h4 { font-family: 'Work Sans'; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; margin-bottom: 6px; }
.persona p { font-weight: 700; color: var(--ink); }

.comisiones { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.comision { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .25s ease, box-shadow .25s ease; }
.comision:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.comision .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 14px; }
.comision h4 { font-family: 'Work Sans'; font-size: 1rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 4px; }
.comision p { font-size: .88rem; color: var(--ink-soft); }

/* grupos y equipos */
.grupos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grupo-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.grupo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.grupo-img { width: 100%; height: 170px; object-fit: cover; object-position: center 20%; background: var(--green-soft); }
.grupo-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.grupo-body h4 { font-family: 'Poppins'; font-size: 1.05rem; color: var(--navy-deep); }
.grupo-body p { font-size: .9rem; color: var(--ink-soft); }
.ig-row { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--navy); }

/* próximas actividades */
.agenda-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.agenda-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.agenda-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--navy); }
.agenda-img-wrap { position: relative; }
.agenda-img-wrap img { width: 100%; height: 150px; object-fit: cover; }
.agenda-fecha {
  position: absolute; top: 12px; left: 12px; width: 52px; height: 52px; border-radius: 12px;
  background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.1; box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
}
.agenda-fecha strong { font-family: 'Poppins'; font-size: 1.15rem; }
.agenda-fecha span { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.agenda-info { padding: 18px 20px 20px; }
.agenda-info h4 { font-family: 'Poppins'; font-size: .98rem; color: var(--navy-deep); margin-bottom: 5px; }
.agenda-info p { font-size: .87rem; color: var(--ink-soft); }
.agenda-vacio { text-align: center; color: var(--ink-soft); font-size: .95rem; padding: 20px 0; }

/* tarjeta estilo Instagram */
.ig-tarjeta { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.ig-cabecera { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ig-avatar { width: 56px; height: 56px; border-radius: 50%; padding: 3px; background: conic-gradient(from 220deg, #fdf497, #fd5949, #d6249f, #285AEB); flex-shrink: 0; }
.ig-avatar img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--paper); object-fit: cover; }
.ig-datos { flex: 1; min-width: 180px; }
.ig-datos h4 { font-family: 'Poppins'; font-size: 1rem; color: var(--navy-deep); display: flex; align-items: center; gap: 6px; }
.ig-verificado { background: #3897f0; color: #fff; font-size: .62rem; width: 15px; height: 15px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.ig-stats { font-size: .85rem; color: var(--ink-soft); margin: 3px 0; }
.ig-bio { font-size: .85rem; color: var(--ink-soft); }
.ig-seguir { padding: 10px 20px !important; font-size: .85rem !important; }

.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ig-post {
  display: flex; flex-direction: column; background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
.ig-post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ig-post img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ig-post p { font-size: .82rem; color: var(--ink); padding: 12px 14px 6px; flex: 1; line-height: 1.45; }
.ig-fecha { font-size: .75rem; color: var(--ink-soft); padding: 0 14px 12px; }
.ig-fijado {
  position: relative; margin: 10px 10px -8px; align-self: flex-start; font-size: .7rem; font-weight: 700;
  color: var(--navy); background: var(--green-soft); padding: 3px 9px; border-radius: 999px; z-index: 1;
}
.galeria-nota { text-align: center; color: var(--ink-soft); font-size: .88rem; margin-top: 22px; }
.galeria-nota a { color: var(--navy); font-weight: 600; }

/* newsletter */
.news-lista { display: flex; flex-direction: column; gap: 14px; }
.news-item { display: flex; align-items: center; gap: 18px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.news-item .ico { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-family: 'Poppins'; font-weight: 700; }
.news-item .info { flex: 1; min-width: 0; }
.news-item .info h4 { font-family: 'Work Sans'; font-size: 1rem; font-weight: 700; color: var(--navy-deep); }
.news-item .info span { font-size: .83rem; color: var(--ink-soft); }
.news-item .descarga { flex-shrink: 0; font-weight: 700; font-size: .85rem; color: var(--navy); border: 1.5px solid var(--line); padding: 9px 16px; border-radius: 999px; }

.news-item-destacado { display: flex; align-items: center; gap: 20px; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.news-item-destacado:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: var(--navy); }
.news-item-destacado .info { display: flex; flex-direction: column; gap: 4px; }
.news-preview { flex-shrink: 0; width: 104px; height: 80px; border-radius: 12px; object-fit: cover; }
.news-item-destacado .descarga { white-space: nowrap; }

.suscripcion {
  margin-top: 46px; background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-radius: var(--radius); padding: 36px 40px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.suscripcion h3 { color: #fff; font-size: 1.25rem; margin-bottom: 4px; }
.suscripcion p { color: rgba(255, 255, 255, .78); font-size: .9rem; }
.form-en-linea { display: flex; gap: 10px; flex-wrap: wrap; }
.form-en-linea input { padding: 12px 18px; border-radius: 999px; border: none; min-width: 230px; font-family: inherit; }
.form-confirmacion { color: #fff; font-weight: 600; }

/* contacto */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.info-contacto { display: flex; flex-direction: column; gap: 16px; }
.tarjeta { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; gap: 15px; }
.tarjeta .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tarjeta h4 { font-family: 'Work Sans'; font-size: .95rem; color: var(--navy-deep); margin-bottom: 3px; }
.tarjeta p { font-size: .88rem; color: var(--ink-soft); }
.form-contacto { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.campo { margin-bottom: 16px; }
.campo label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; }
.campo input, .campo textarea {
  width: 100%; padding: 11px 15px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink); font-family: inherit; font-size: .92rem;
}
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--navy); }
.campo textarea { min-height: 100px; resize: vertical; }
.form-mensaje { font-size: .88rem; font-weight: 600; margin-top: 10px; }
.form-mensaje.ok { color: var(--green); }
.form-mensaje.error { color: #b3261e; }

footer { background: var(--navy-deep); color: rgba(255, 255, 255, .82); padding: 48px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; margin-bottom: 34px; }
.footer-marca { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer-marca img { height: 34px; width: 34px; border-radius: 50%; }
footer p { font-size: .9rem; color: rgba(255, 255, 255, .65); }
footer h5 { color: #fff; font-size: .88rem; margin-bottom: 12px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
footer ul a { color: rgba(255, 255, 255, .68); font-size: .88rem; transition: color .2s ease; }
footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .8rem; color: rgba(255, 255, 255, .5);
}

/* animaciones al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* responsive */
@media (max-width: 640px) {
  .news-item-destacado { flex-wrap: wrap; }
  .news-preview { width: 100%; height: 150px; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-arte { order: -1; max-width: 240px; margin: 0 auto; }
  .directiva { grid-template-columns: repeat(2, 1fr); }
  .grupos-grid { grid-template-columns: 1fr; }
  .agenda-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 68px; left: 16px; right: 16px;
    background: var(--paper-raised); flex-direction: column; align-items: stretch;
    padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .25s ease;
  }
  .nav-links.abierto { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { text-align: center; }
  .nav-toggle { display: flex; }
  section { padding: 64px 0; }
}

@media (max-width: 520px) {
  .directiva { grid-template-columns: 1fr; }
  .hero-cifras { gap: 20px; }
  .ig-grid { grid-template-columns: 1fr; }
}
