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

/* ============================================================
   COLEGIO MARCELINA — MAIN CSS
   Página: Conócenos
   Imports + typography + global resets + page-specific styles
   ============================================================
   Orden de imports (NO cambiar):
   1) variables.css   → tokens del sistema
   2) animations.css  → keyframes + reveal classes
   3) components.css  → cards, botones, pills, forms
   4) responsive.css  → grids + breakpoints
   ============================================================ */

@import url('variables.css');
@import url('animations.css');
@import url('components.css');
@import url('responsive.css');

/* Tipografía web — Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');


/* ──────────────────────────────────────────
   TYPOGRAPHY TOKENS
────────────────────────────────────────── */
:root {
  --serif: 'DM Serif Display', 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* Selección de texto */
::selection {
  background: var(--color-indigo);
  color: white;
}

/* Scrollbar más sutil en webkit */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-off); }
::-webkit-scrollbar-thumb {
  background: rgba(76, 72, 200, 0.30);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(76, 72, 200, 0.55); }


/* ──────────────────────────────────────────
   HERO — "Una institución con historia y propósito"
────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 340px;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 72px) clamp(56px, 8vw, 100px);
  background-color: #1E1B4B;
  background-image: url('../assets/conocenos/bg/hero.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: white;
  overflow: hidden;
  isolation: isolate;
}

/* Sutil glow para dar profundidad sin alterar el bg */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 50%, rgba(61, 56, 232, 0.30) 0%, transparent 60%),
    radial-gradient(ellipse at 8% 12%, rgba(15, 14, 36, 0.55) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  margin-inline: auto;
}

/* Breadcrumb */
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
}
.crumb a {
  transition: color 0.15s ease;
}
.crumb a:hover { color: white; }
.crumb-sep { opacity: 0.4; }
.crumb .current { color: white; }

/* Eyebrow del hero — lima */
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-lima);
  margin-bottom: 18px;
}

/* Título hero */
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: white;
  margin: 0 0 18px;
  max-width: 900px;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

.hero-sub {
  font-size: clamp(14px, 1.2vw, 15.5px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  max-width: 560px;
  margin: 0;
}


/* ──────────────────────────────────────────
   IDENTIDAD — Misión · Visión · Valores (dark section)
────────────────────────────────────────── */

.identity {
  position: relative;
  background-color: var(--color-indigo-deeper);
  background-image: url('../assets/conocenos/bg/identity.png');
  background-size: cover;
  background-position: center;
  padding: clamp(56px, 7vw, 92px) clamp(20px, 5vw, 72px);
  color: white;
  overflow: hidden;
}

/* Capa de refuerzo del patrón diagonal sin sobrescribir el png */
.identity::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.015) 0,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 38px
  );
  pointer-events: none;
}

.identity-inner {
  position: relative;
  max-width: 1180px;
  margin-inline: auto;
}

.identity-hdr {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.identity-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--color-lima);
  margin-bottom: 14px;
}

.identity-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 400;
  line-height: 1.1;
  color: white;
  margin: 0;
  letter-spacing: -0.01em;
}
.identity-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-lima);
}
.identity-title .dot {
  color: rgba(255, 255, 255, 0.55);
  font-style: normal;
  margin-inline: 6px;
}

/* Grid de cards */
.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

/* Card de misión / visión / valores */
.mv-card {
  position: relative;
  padding: clamp(26px, 2.8vw, 38px) clamp(20px, 2.4vw, 32px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition:
    background 0.32s var(--ease-smooth),
    border-color 0.32s var(--ease-smooth),
    transform 0.32s var(--ease-smooth),
    box-shadow 0.32s var(--ease-smooth);
}

.mv-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 194, 240, 0.30);
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.30);
}

.mv-ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 194, 240, 0.10);
  border: 1px solid rgba(0, 194, 240, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 18px;
  position: relative;
  transition: transform 0.32s var(--ease-smooth),
              background 0.32s var(--ease-smooth);
}
.mv-card:hover .mv-ico {
  transform: scale(1.08) rotate(-3deg);
  background: rgba(0, 194, 240, 0.16);
}

.mv-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: white;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.mv-card p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
  font-weight: 400;
}


/* ──────────────────────────────────────────
   INSTALACIONES — Bento de imágenes
────────────────────────────────────────── */

.facilities {
  padding: clamp(56px, 7vw, 92px) clamp(20px, 5vw, 72px);
  background: var(--bg-off);
}

.facilities-inner {
  max-width: 1180px;
  margin-inline: auto;
}

.facilities-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 400;
  color: var(--color-indigo-deeper);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 clamp(28px, 3vw, 40px);
}
.facilities-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-indigo);
}

/* Bento grid — réplica fiel del PDF
   Desktop: 1 grande izquierda spaning 2 rows, 2x2 derecha */
.bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 12px;
}

.bento-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  background: #0F0E24;
  transition: transform 0.45s var(--ease-smooth),
              box-shadow 0.45s var(--ease-smooth);
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.95s var(--ease-smooth),
              filter 0.45s ease;
  display: block;
}

.bento-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 14, 36, 0) 40%,
    rgba(15, 14, 36, 0.65) 100%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease-smooth);
  pointer-events: none;
  z-index: 1;
}

.bento-item:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(15, 14, 36, 0.18); }
.bento-item:hover img { transform: scale(1.06); }
.bento-item:hover::after { opacity: 1; }

.bento-label {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  z-index: 2;
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.30s var(--ease-smooth),
              transform 0.30s var(--ease-smooth);
}
.bento-item:hover .bento-label {
  opacity: 1;
  transform: translateY(0);
}

/* Posiciones específicas */
.bento-1 { grid-column: 1; grid-row: 1 / span 2; }
.bento-2 { grid-column: 2; grid-row: 1; }
.bento-3 { grid-column: 3; grid-row: 1; }
.bento-4 { grid-column: 2; grid-row: 2; }
.bento-5 { grid-column: 3; grid-row: 2; }


/* ──────────────────────────────────────────
   CTA — "¿Listo para conocernos en persona?"
────────────────────────────────────────── */

.cta {
  position: relative;
  background-color: var(--color-indigo);
  background-image: url('../assets/conocenos/bg/cta.png');
  background-size: cover;
  background-position: center;
  padding: clamp(56px, 7vw, 88px) clamp(20px, 5vw, 72px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Patrón de líneas sutil que potencia el png sin sobrescribirlo */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.012) 0,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 26px
  );
  z-index: -1;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 400;
  color: white;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.cta-title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--color-lima);
  margin-top: 2px;
}

.cta-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 28px;
  font-weight: 400;
  line-height: 1.55;
}

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-lima);
  color: var(--color-indigo-deeper);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 4px 18px rgba(132, 204, 22, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
  transition: transform 0.25s var(--ease-smooth),
              box-shadow 0.25s var(--ease-smooth),
              background 0.18s ease;
}
.cta-btn:hover {
  transform: translateY(-3px);
  background: #95DD24;
  box-shadow:
    0 9px 26px rgba(132, 204, 22, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.cta-btn:active { transform: translateY(-1px) scale(0.98); }

.cta-btn .arr {
  transition: transform 0.22s var(--ease-smooth);
  display: inline-block;
}
.cta-btn:hover .arr { transform: translateX(4px); }


/* ──────────────────────────────────────────
   HERO BREAKPOINT OVERRIDES — mantener fidelidad
────────────────────────────────────────── */

@media (max-width: 1024px) {
  .bento {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 200px 200px;
  }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: none; }
  .nav-mobile.open { display: flex; }
  .nav { padding: 12px 18px; }
  .nav-brand img { height: 38px; }

  /* Hero — mantiene proporciones del mobile del PDF */
  .hero {
    min-height: 240px;
    padding: 36px 20px 44px;
  }
  .hero-title { font-size: clamp(1.85rem, 7vw, 2.4rem); }
  .crumb { margin-bottom: 16px; }
  .hero-eyebrow { margin-bottom: 12px; font-size: 10px; letter-spacing: 2.5px; }

  /* Identity */
  .identity-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .mv-card { padding: 26px 22px; }
  .identity-title { font-size: clamp(1.7rem, 6vw, 2.2rem); }

  /* Facilities */
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 180px);
    gap: 10px;
  }
  .bento-1, .bento-2, .bento-3, .bento-4, .bento-5 {
    grid-column: 1;
    grid-row: auto;
  }
  .facilities-title { font-size: clamp(1.6rem, 6vw, 2.1rem); }

  /* CTA */
  .cta-title { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .cta { padding: 50px 22px 56px; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-legal { gap: 20px; }
}

@media (max-width: 480px) {
  .hero { padding: 32px 18px 42px; }
  .identity { padding: 48px 18px; }
  .facilities { padding: 48px 18px; }
  .cta { padding: 48px 18px 54px; }
  .footer { padding: 40px 18px 20px; }

  .wa-float {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  .wa-float svg { width: 26px; height: 26px; }
}


/* ──────────────────────────────────────────
   REDUCED MOTION — respeta preferencias del usuario
────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .wa-float { animation: none; }
}
