/* secundaria — page-specific styles
   (Global chrome lives in css/global.css)
   The Secundaria page originally shipped its components in a custom
   components.css. The page-specific portion is preserved verbatim here.
*/

/* ============================================================
   COLEGIO MARCELINA — COMPONENTES
   Sistema de componentes para Secundaria
   ============================================================ */


/* ──────────────────────────────────────────
   BOTONES
────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.005em;
  transition: transform 0.22s var(--ease-smooth),
              box-shadow 0.22s var(--ease-smooth),
              background-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.btn:active { transform: scale(0.97); }

.btn svg,
.btn .btn-arrow {
  transition: transform 0.22s var(--ease-smooth);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Lima — CTA principal */
.btn-lima {
  background: var(--color-lima);
  color: var(--color-indigo-deeper);
  font-size: 14px;
  padding: 13px 26px;
  box-shadow: var(--shadow-lima);
}
.btn-lima:hover {
  background: var(--color-lima-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lima-hover);
}

.btn-lima.lg {
  font-size: 15px;
  padding: 16px 32px;
}

/* Rojo — admisiones */
.btn-red {
  background: var(--color-red);
  color: white;
  font-size: 13.5px;
  padding: 11px 22px;
  box-shadow: var(--shadow-red);
}
.btn-red:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red-hover);
}

/* Índigo — acciones secundarias */
.btn-indigo {
  background: var(--color-indigo);
  color: white;
  font-size: 14px;
  padding: 13px 26px;
  box-shadow: var(--shadow-indigo);
}
.btn-indigo:hover {
  background: var(--color-indigo-vivid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-indigo-hover);
}

.btn-indigo.lg {
  font-size: 15px;
  padding: 15px 32px;
}

/* Ghost — sobre fondos oscuros */
.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  padding: 12px 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}
.btn-ghost:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}


/* ──────────────────────────────────────────
   EYEBROW — etiqueta de sección
────────────────────────────────────────── */

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-indigo);
  margin-bottom: 14px;
}

.eyebrow-lima { color: var(--color-lima); }
.eyebrow-center { display: block; text-align: center; }


/* ──────────────────────────────────────────
   HERO
────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0F1E48 0%, #1E1B6A 55%, #2D2DB1 100%);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/secundaria/hero-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 90% 30%, rgba(76, 72, 200, 0.35), transparent 60%),
    radial-gradient(ellipse at 5% 90%, rgba(26, 114, 255, 0.18), transparent 50%);
}

.hero-inner {
  position: relative;
  padding: clamp(60px, 9vw, 116px) clamp(20px, 5vw, 72px) clamp(72px, 10vw, 128px);
  max-width: var(--container-full);
  margin: 0 auto;
  z-index: 1;
}

.hero-bc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.hero-bc a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}
.hero-bc a:hover { color: rgba(255, 255, 255, 0.85); }
.hero-bc-sep { opacity: 0.4; }
.hero-bc-current { color: rgba(255, 255, 255, 0.9); font-weight: 500; }

.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: white;
  max-width: 1100px;
  margin: 0 0 22px;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 0;
  /* italic is naturally slightly narrower — small visual lift */
  padding-left: 0.06em;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}


/* ──────────────────────────────────────────
   NIVEL TABS — sub-navigation
────────────────────────────────────────── */

.nivel-tabs-wrap {
  position: sticky;
  top: var(--navbar-height);
  background: white;
  border-bottom: 1px solid rgba(76, 72, 200, 0.08);
  z-index: 40;
}

.nivel-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
  padding: 0 clamp(20px, 5vw, 72px);
  max-width: var(--container-full);
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nivel-tabs::-webkit-scrollbar { display: none; }

.nivel-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 16px 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease,
              border-color 0.18s ease;
  position: relative;
}

.nivel-tab .nivel-tab-ico {
  display: inline-flex;
  font-size: 16px;
  line-height: 1;
}

.nivel-tab:hover {
  color: var(--color-indigo-deeper);
}

.nivel-tab.active {
  color: var(--color-indigo);
  font-weight: 600;
  border-bottom-color: var(--color-indigo);
}


/* ──────────────────────────────────────────
   CAROUSEL — Biblioteca / proyectos
────────────────────────────────────────── */

.carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-darker);
  aspect-ratio: 4 / 3.1;
  box-shadow:
    0 1px 3px rgba(15, 14, 36, 0.06),
    0 18px 50px rgba(15, 14, 36, 0.14);
}

.carr-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s var(--ease-smooth);
  will-change: transform;
}

.carr-slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}

.carr-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carr-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(13, 11, 43, 0.78) 100%);
  pointer-events: none;
}

/* Caption */
.carr-caption {
  position: absolute;
  left: clamp(18px, 3vw, 26px);
  bottom: clamp(18px, 3vw, 26px);
  right: 80px;
  color: white;
  z-index: 2;
}

.carr-caption-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.carr-caption-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-lima);
  color: var(--color-indigo-deeper);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow: var(--shadow-lima);
  animation: badgeFloat 4s ease-in-out infinite;
}

.carr-caption-badge::before {
  content: '+';
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

/* Arrows */
.carr-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: background 0.22s ease,
              border-color 0.22s ease,
              transform 0.22s var(--ease-smooth);
  z-index: 3;
}
.carr-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.38);
}
.carr-arrow.prev { left: 14px; }
.carr-arrow.next { right: 14px; }

.carr-arrow svg { width: 16px; height: 16px; }

/* Dots */
.carr-dots {
  position: absolute;
  bottom: clamp(18px, 3vw, 26px);
  right: clamp(18px, 3vw, 26px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.carr-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  padding: 0;
  transition: all 0.32s var(--ease-smooth);
}

.carr-dot:hover { background: rgba(255, 255, 255, 0.65); }

.carr-dot.active {
  width: 20px;
  border-radius: 4px;
  background: white;
}


/* ──────────────────────────────────────────
   SECTION — fortaleciendo
────────────────────────────────────────── */

.sec-fortaleciendo {
  background: white;
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.fort-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  max-width: var(--container-full);
  margin: 0 auto;
}

.fort-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: 0 0 22px;
}

.fort-title em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--color-indigo);
}

.fort-body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.62;
  color: var(--color-text-muted);
  margin: 0 0 28px;
  max-width: 480px;
}


/* ──────────────────────────────────────────
   MODELO EDUCATIVO
────────────────────────────────────────── */

.sec-modelo {
  background: var(--bg-indigo-pale);
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}

.modelo-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}

.modelo-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(1.7rem, 1.8vw + 1rem, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-indigo-deeper);
  margin: 0;
}

.modelo-title em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--color-indigo);
}

.modelo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: var(--container-xl);
  margin: 0 auto;
}

.modelo-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 24px 30px;
  text-align: center;
  border: 1px solid rgba(76, 72, 200, 0.06);
  box-shadow:
    0 1px 2px rgba(15, 14, 36, 0.03),
    0 1px 6px rgba(15, 14, 36, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.32s var(--ease-smooth),
              box-shadow 0.32s var(--ease-smooth),
              border-color 0.32s ease;
}

.modelo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15, 14, 36, 0.10);
  border-color: rgba(76, 72, 200, 0.18);
}

.modelo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-indigo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-smooth);
}

.modelo-card:hover::before {
  transform: scaleX(1);
}

.modelo-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-indigo-pale);
  border-radius: 12px;
  font-size: 22px;
  transition: transform 0.32s var(--ease-smooth);
}

.modelo-card:hover .modelo-icon {
  transform: scale(1.08) translateY(-3px);
}

.modelo-card-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-indigo-deeper);
  margin: 0 0 10px;
}

.modelo-card-body {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
}


/* ──────────────────────────────────────────
   GALERÍA
────────────────────────────────────────── */

.sec-galeria {
  background: var(--bg-darker);
  background-image:
    linear-gradient(180deg, rgba(20, 18, 58, 0.92), rgba(20, 18, 58, 0.95)),
    url('../assets/secundaria/galeria-bg.webp');
  background-size: cover;
  background-position: center;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 72px) clamp(72px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}

.galeria-head {
  max-width: var(--container-full);
  margin: 0 auto clamp(28px, 4vw, 48px);
}

.galeria-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: white;
  margin: 0;
}

.galeria-title em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: rgba(255, 255, 255, 0.82);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 18px);
  max-width: var(--container-full);
  margin: 0 auto;
}

.galeria-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-darker);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s var(--ease-smooth);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-smooth);
}

.galeria-item:hover img {
  transform: scale(1.05);
}

.galeria-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 11, 43, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}

.galeria-item:hover::after {
  opacity: 1;
}


/* ──────────────────────────────────────────
   CTA — potencia el talento
────────────────────────────────────────── */

.sec-cta {
  position: relative;
  background: var(--color-indigo);
  padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 72px);
  text-align: center;
  overflow: hidden;
}

.cta-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
}

/* Right-side single decorative arc — matches PDF */
.cta-orb-1 {
  width: 720px;
  height: 720px;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
}

.cta-orb-2 {
  width: 480px;
  height: 480px;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  border-color: rgba(255, 255, 255, 0.10);
}

.cta-orb-3 {
  display: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(1.85rem, 2.2vw + 1rem, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: white;
  margin: 0 0 14px;
}

.cta-title em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--color-lima);
  display: block;
}

.cta-body {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 30px;
}


/* secundaria — page-specific styles
   (Global chrome lives in css/global.css)
*/

/* ============================================================
   COLEGIO MARCELINA — MAIN
   Estilos globales y base — Secundaria
   ============================================================ */

img,
picture,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

::selection {
  background: rgba(76, 72, 200, 0.18);
  color: var(--color-indigo-deeper);
}


/* ──────────────────────────────────────────
   TYPOGRAPHY — google fonts variables
────────────────────────────────────────── */

/* Fraunces — display serif (Google Fonts variable) */
/* Inter — sans body (Google Fonts variable) */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.12;
  color: var(--color-indigo-deeper);
  margin: 0;
}


/* ──────────────────────────────────────────
   CONTAINER
────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container-full);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 72px);
}


/* ──────────────────────────────────────────
   UTILS
────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }


/* ──────────────────────────────────────────
   PRINT
────────────────────────────────────────── */

@media print {
  .nav,
  .wa-float,
  .nivel-tabs-wrap,
  .sec-cta {
    display: none !important;
  }
}


/* ──────────────────────────────────────────
   HERO / GALERÍA / CTA BACKGROUNDS — Secundaria
   (originalmente en components.css de Secundaria)
────────────────────────────────────────── */

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/secundaria/hero-bg.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(13, 11, 43, 0.55) 0%,
              rgba(13, 11, 43, 0.72) 100%);
}

.galeria-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 11, 43, 0.30) 0%, rgba(13, 11, 43, 0.50) 100%),
    url('../assets/secundaria/galeria-bg.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 11, 43, 0.55) 0%, rgba(13, 11, 43, 0.70) 100%),
    url('../assets/secundaria/cta-bg.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

