:root {
  --sv-red: #b81424;
  --sv-red-dark: #8e101d;
  --sv-cream: #f6f1e8;
  --sv-cream-light: #fffaf2;
  --sv-blue: #1f3f63;
  --sv-blue-dark: #142a42;
  --sv-green: #5c1f1f;
  --sv-gold: #c83c3c;
  --sv-dark: #171717;
  --sv-text: #2b2b2b;
  --sv-muted: #62584f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--sv-cream);
  color: var(--sv-text);
}

.institution-page {
  width: 100%;
  overflow: hidden;
}

/* HERO VIDEO */

.institution-hero {
  position: relative;
  min-height: 50vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 120px 8%;
  color: #fff;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(20, 42, 66, 0.92),
      rgba(31, 63, 99, 0.58),
      rgba(184, 20, 36, 0.22)
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.22),
      rgba(20, 42, 66, 0.78)
    );
  z-index: 2;
}

.hero-content {
    padding-top: 60px;
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.hero-kicker,
.section-label {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--sv-gold);
}

.hero-content h1 {
  font-size: clamp(2.8rem, 3vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 26px;
}

.hero-content p {
  max-width: 620px;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn-primary,
.btn-secondary {
  padding: 15px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--sv-red);
  color: #fff;
  box-shadow: 0 14px 34px rgba(184, 20, 36, 0.35);
}

.btn-primary:hover {
  background: var(--sv-red-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.video-hint {
  position: absolute;
  right: 8%;
  bottom: 36px;
  z-index: 3;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.76);
}

/* INTRO */

.intro-section {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
  padding: 110px 8%;
  background: #fff;
}

.intro-text h2,
.section-heading h2,
.history-content h2,
.final-cta h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--sv-blue-dark);
}

.intro-text p,
.history-content p {
  margin-top: 24px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--sv-muted);
  max-width: 760px;
}

.intro-card {
  background:
    linear-gradient(145deg, var(--sv-blue), var(--sv-blue-dark));
  color: #fff;
  padding: 42px;
  border-radius: 28px;
  align-self: end;
  box-shadow: 0 24px 70px rgba(20, 42, 66, 0.22);
  border-top: 4px solid var(--sv-gold);
}

.intro-card h3 {
  font-size: 1.8rem;
  margin-bottom: 18px;
  color: #fff;
}

.intro-card-title-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 18px;
}

.intro-card p {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

/* IDENTITY */

.identity-section {
  padding: 110px 8%;
  background:
    linear-gradient(180deg, var(--sv-cream-light), var(--sv-cream));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.identity-card {
  min-height: 300px;
  padding: 32px;
  border-radius: 26px;
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(31, 63, 99, 0.12);
  box-shadow: 0 16px 45px rgba(31, 63, 99, 0.08);
  transition: 0.25s ease;
}

.identity-card:hover {
  transform: translateY(-8px);
  border-color: rgba(184, 20, 36, 0.32);
  box-shadow: 0 22px 55px rgba(31, 63, 99, 0.14);
}

.identity-card h3 {
  font-size: 1.45rem;
  margin-bottom: 16px;
  color: var(--sv-red);
}

.identity-card p {
  line-height: 1.7;
  color: var(--sv-muted);
}

/* HISTORY */

.history-section {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  gap: 50px;
  align-items: center;
  padding: 120px 8%;
  background:
    radial-gradient(circle at top right, rgba(184, 20, 36, 0.3), transparent 32%),
    linear-gradient(145deg, var(--sv-blue-dark), var(--sv-blue));
  color: #fff;
}

.history-content h2 {
  color: #fff;
}

.history-content p {
  color: rgba(255, 255, 255, 0.78);
}

.history-box {
  min-height: 360px;
  border-radius: 34px;
  padding: 44px;
  background:
    linear-gradient(145deg, var(--sv-red), var(--sv-green));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.history-box span {
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  color: #fff;
}

.history-box p {
  margin-top: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

/* MISSION */

.mission-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 100px 8%;
  background:
    radial-gradient(circle at bottom left, rgba(31, 92, 76, 0.14), transparent 34%),
    var(--sv-cream);
}

.mission-section article {
  background: var(--sv-cream-light);
  padding: 36px;
  border-radius: 28px;
  border: 1px solid rgba(31, 63, 99, 0.1);
  box-shadow: 0 16px 44px rgba(31, 63, 99, 0.07);
}

.mission-section h3 {
  font-size: 1.7rem;
  margin-bottom: 16px;
  color: var(--sv-blue);
}

.mission-section article:nth-child(2) h3 {
  color: var(--sv-red);
}

.mission-section article:nth-child(3) h3 {
  color: var(--sv-green);
}

.mission-section p {
  line-height: 1.75;
  color: var(--sv-muted);
}

/* LEVELS */

.levels-section {
  padding: 110px 8%;
  background:
    linear-gradient(180deg, var(--sv-cream-light), #efe5d4);
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.level-card {
  min-height: 280px;
  text-decoration: none;
  padding: 34px;
  border-radius: 30px;
  background:
    linear-gradient(
      180deg,
      rgba(31, 63, 99, 0.1),
      rgba(20, 42, 66, 0.82)
    ),
    url("../assets/img/institution-level.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: 0.25s ease;
  border-bottom: 5px solid var(--sv-red);
}

.level-card:nth-child(2) {
  border-bottom-color: var(--sv-gold);
}

.level-card:nth-child(3) {
  border-bottom-color: var(--sv-green);
}

.level-card:hover {
  transform: translateY(-8px) scale(1.01);
}

.level-card span {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.level-card p {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
}

/* CTA */

.final-cta {
  padding: 110px 8%;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(200, 155, 60, 0.18), transparent 34%),
    linear-gradient(145deg, var(--sv-blue-dark), var(--sv-blue));
  color: #fff;
}

.final-cta h2 {
  color: #fff;
  max-width: 850px;
  margin: 0 auto;
}

.final-cta p {
  margin: 24px auto 34px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.final-cta a {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--sv-red);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  transition: 0.25s ease;
  box-shadow: 0 14px 34px rgba(184, 20, 36, 0.35);
}

.final-cta a:hover {
  background: var(--sv-red-dark);
  transform: translateY(-2px);
}

/* RESPONSIVE */

@media (max-width: 1050px) {
  .intro-section,
  .history-section {
    grid-template-columns: 1fr;
  }

  .identity-grid,
  .mission-section,
  .levels-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-hint {
    left: 8%;
    right: auto;
  }
}

@media (max-width: 720px) {
  .institution-hero {
    padding: 110px 6% 90px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    text-align: center;
  }

  .intro-section,
  .identity-section,
  .history-section,
  .mission-section,
  .levels-section,
  .final-cta {
    padding: 80px 6%;
  }

  .identity-grid,
  .mission-section,
  .levels-grid {
    grid-template-columns: 1fr;
  }

  .identity-card,
  .level-card {
    min-height: auto;
  }

  .video-hint {
    display: none;
  }
}



/* =========================
   NUESTROS EDIFICIOS - SLIDER IGUAL AL INDEX
========================= */

.edificios-section {
  width: 100%;
  padding: 70px 20px;
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 100%);
}

.edificios-header {
  text-align: center;
  margin-bottom: 34px;
}

.edificios-header span {
  display: inline-block;
  margin-bottom: 12px;
  color: #ff1100;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.edificios-header h2 {
  font-family: "Apricot", Arial, sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  letter-spacing: 3px;
  color: #0b4a78;
}

.edificios-slider {
  max-width: 1100px;
  height: 430px;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(11, 74, 120, 0.1);
  border: 1px solid rgba(11, 74, 120, 0.08);
}

.edificios-slides {
  display: flex;
  height: 100%;
  transition: transform 0.9s ease-in-out;
}

.edificios-slide {
  min-width: 100%;
  flex: 0 0 100%;
  height: 100%;
}

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

/* RESPONSIVE */

@media (max-width: 768px) {
  .edificios-section {
    padding: 60px 16px;
  }

  .edificios-slider {
    height: 310px;
  }
}

@media (max-width: 480px) {
  .edificios-header h2 {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .edificios-slider {
    height: 230px;
  }
}