/* ============================================================
   Educative Corporation — Rediseño moderno
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy:        #00394f;
  --navy-700:    #002f42;
  --teal:        #17a2b8;
  --teal-600:    #1392a6;
  --teal-300:    #5cc6d6;
  --teal-050:    #e9f8fb;
  --accent:      #ffc24b;

  --ink:         #0d2530;
  --body:        #4a5b63;
  --muted:       #7b8a91;
  --line:        #e6ecee;
  --bg:          #ffffff;
  --bg-soft:     #f5f9fa;

  --radius:      18px;
  --radius-lg:   28px;
  --shadow-sm:   0 2px 10px rgba(0, 57, 79, .06);
  --shadow:      0 14px 40px rgba(0, 57, 79, .10);
  --shadow-lg:   0 30px 70px rgba(0, 57, 79, .18);

  --grad:        linear-gradient(135deg, var(--navy) 0%, #015067 55%, var(--teal) 130%);
  --grad-teal:   linear-gradient(135deg, var(--teal) 0%, var(--teal-600) 100%);

  --maxw:        1180px;
  --font-head:   "Poppins", system-ui, sans-serif;
  --font-body:   "Inter", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 700; }
ul { list-style: none; padding: 0; }
section { scroll-margin-top: 90px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: var(--teal-050);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-teal); color: #fff; box-shadow: 0 10px 26px rgba(23,162,184,.38); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(23,162,184,.5); color:#fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--teal-600); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; transform: translateY(-3px); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(255,255,255,.9); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.nav__brand img { width: 40px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  font-family: var(--font-head); font-weight: 500; font-size: .96rem; color: var(--ink);
  padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav__links a:hover { background: var(--teal-050); color: var(--teal-600); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 3px; transition: .3s; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad); color: #fff; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(10px); opacity: .5; z-index: 0;
}
.hero::before { width: 520px; height: 520px; background: radial-gradient(circle, rgba(92,198,214,.55), transparent 65%); top: -180px; right: -120px; }
.hero::after  { width: 460px; height: 460px; background: radial-gradient(circle, rgba(255,194,75,.22), transparent 65%); bottom: -200px; left: -120px; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 96px 0 104px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; font-family: var(--font-head);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,194,75,.25); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.7rem); letter-spacing: -.5px; margin-bottom: 20px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--teal-300), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.12rem; max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero__stats .num { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: #fff; }
.hero__stats .lbl { font-size: .86rem; color: rgba(255,255,255,.7); }
.hero__visual { position: relative; }
.hero__visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__card {
  position: absolute; left: -26px; bottom: 30px; background: #fff; color: var(--ink);
  border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
}
.hero__card .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-050); color: var(--teal-600); display: grid; place-items: center; }
.hero__card .ic svg { width: 22px; height: 22px; }
.hero__card b { font-family: var(--font-head); font-size: .95rem; display: block; }
.hero__card span { font-size: .8rem; color: var(--muted); }
.hero__wave { position: relative; z-index: 1; display: block; width: 100%; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--bg-soft); padding: 30px; }
.about__media .glow { position: absolute; inset: -10% -6% auto auto; width: 60%; height: 70%; background: radial-gradient(circle, rgba(23,162,184,.18), transparent 70%); z-index: -1; }
.mv-grid { display: grid; gap: 22px; margin-top: 28px; }
.mv-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.mv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.mv-card .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--grad-teal); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.mv-card .ic svg { width: 24px; height: 24px; }
.mv-card h3 { font-size: 1.25rem; margin-bottom: 8px; }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-teal); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card .ic {
  width: 60px; height: 60px; border-radius: 18px; background: var(--teal-050); color: var(--teal-600);
  display: grid; place-items: center; margin-bottom: 22px; transition: background .3s, color .3s;
}
.card:hover .ic { background: var(--grad-teal); color: #fff; }
.card .ic svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.18rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- President message ---------- */
.president { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.president__media { position: relative; }
.president__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.president__badge {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-radius: 14px; padding: 12px 22px;
  text-align: center; box-shadow: var(--shadow); white-space: nowrap;
}
.president__badge b { font-family: var(--font-head); color: var(--ink); display: block; }
.president__badge span { font-size: .85rem; color: var(--teal-600); font-weight: 600; }
.president__body h2 { margin-bottom: 20px; }
.president__body p { margin-bottom: 18px; }
.president__sign { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.president__sign span { display: block; font-weight: 500; color: var(--teal-600); font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad); color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 380px; height: 380px; background: radial-gradient(circle, rgba(92,198,214,.4), transparent 65%); top: -160px; right: -60px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Contact (solo información, centrado) ---------- */
.contact-info { max-width: 940px; margin: 0 auto; }
.contact__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact__item {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contact__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--teal-300); }
.contact__item .ic { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--teal-050); color: var(--teal-600); display: grid; place-items: center; }
.contact__item .ic svg { width: 22px; height: 22px; }
.contact__item .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact__item a, .contact__item b { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .94rem; word-break: break-word; }
.contact__item a:hover { color: var(--teal-600); }
.contact__follow { text-align: center; margin-top: 40px; }
.contact__follow h3 { margin-bottom: 16px; }
.contact__socials { display: flex; justify-content: center; gap: 12px; }
.contact__socials a { width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; transition: transform .2s, background .2s; }
.contact__socials a:hover { transform: translateY(-3px); background: var(--teal); color: #fff; }
.contact__socials svg { width: 20px; height: 20px; }

/* ---------- Redes sociales (feeds) ---------- */
.social-embeds { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1060px; margin: 0 auto; align-items: start; }
.social-embeds--single { grid-template-columns: minmax(0, 540px); justify-content: center; }
.social-embeds__col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.social-embeds__title { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.15rem; margin-bottom: 18px; }
.social-embeds__title svg { width: 22px; height: 22px; color: var(--teal-600); }
.social-embeds__frame { height: 560px; overflow: hidden; border-radius: 14px; background: var(--bg-soft); }
.social-embeds__frame iframe { width: 100% !important; height: 100% !important; border: 0; border-radius: 14px; }
/* Posts oficiales de Instagram apilados con scroll dentro del marco */
.social-embeds__frame.is-posts { overflow-y: auto; background: #fff; }
.social-embeds__frame.is-posts iframe { height: auto !important; min-height: 0; border-radius: 0; margin: 0 auto 8px; display: block; }
.social-embeds__frame .fb-page,
.social-embeds__frame .fb-page span,
.social-embeds__frame .fb-page iframe { width: 100% !important; }
/* Recorta el encabezado del plugin de Facebook: el iframe se hace más alto y se empuja
   hacia arriba; el marco con overflow:hidden esconde la barra superior y deja solo los posts. */
.social-embeds__col[data-social="facebook"] .social-embeds__frame iframe {
  height: 620px !important;   /* = data-height del plugin (≈60px de encabezado + 560px de posts) */
  margin-top: -60px;          /* empuja el encabezado fuera del marco visible */
}
.social-embeds__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; width: 100%; padding: 12px 18px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  color: var(--teal-600); background: var(--teal-050); transition: background .2s, color .2s;
}
.social-embeds__cta:hover { background: var(--grad-teal); color: #fff; }
.social-embeds__cta svg { width: 16px; height: 16px; }
.social-other { text-align: center; margin-top: 44px; }
.social-other h3 { margin-bottom: 18px; font-size: 1.2rem; }
.social-other .contact__socials { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-700); color: rgba(255,255,255,.7); padding: 56px 0 28px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: center; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.footer__brand img { width: 38px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__nav a { color: rgba(255,255,255,.75); font-size: .95rem; }
.footer__nav a:hover { color: #fff; }
.footer__bottom { text-align: center; padding-top: 24px; font-size: .9rem; }
.footer__bottom a { color: var(--teal-300); font-weight: 600; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-teal); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(23,162,184,.45); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s; z-index: 99;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Reveal animation (solo si JS está activo) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 72px 0 90px; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__visual { max-width: 480px; margin: 0 auto; }
  .about, .president { grid-template-columns: 1fr; gap: 40px; }
  .about__media, .president__media { max-width: 460px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact__list { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: flex; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 74px; left: 0; right: 0; background: #fff; padding: 16px 22px 22px;
    box-shadow: var(--shadow); border-top: 1px solid var(--line);
  }
  .nav.open .nav__links a { padding: 12px 14px; }
  .cards { grid-template-columns: 1fr; }
  .social-embeds { grid-template-columns: 1fr; max-width: 480px; }
  .cta-band { padding: 40px 26px; }
  .hero__card { left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
