* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f7fb;
  color: #17213c;
}

img {
  max-width: 100%;
}

.hero {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(3, 18, 64, .94), rgba(3, 18, 64, .60), rgba(215, 25, 32, .22)),
    url("assets/img/fachada.jpeg") center/cover no-repeat;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% -10%;
  height: 220px;
  background: #f4f7fb;
  transform: rotate(-3deg);
  z-index: 1;
}

.navbar {
  width: 100%;
  padding: 20px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(2, 12, 45, .52);
  backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  text-decoration: none;
}

.brand img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  padding: 4px;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand span {
  display: block;
  font-size: 13px;
  opacity: .85;
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  opacity: .95;
  transition: .25s;
}

.menu a:hover {
  color: #ffd6d8;
}

.btn-login {
  background: #d71920;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 25px rgba(215,25,32,.35);
}

.hero-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 7% 80px;
  position: relative;
  z-index: 5;
}

.hero-text {
  max-width: 890px;
  animation: subir .9s ease both;
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  padding: 11px 22px;
  border-radius: 999px;
  margin-bottom: 26px;
  font-weight: 900;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.03;
  margin-bottom: 24px;
  text-shadow: 0 14px 40px rgba(0,0,0,.35);
}

.hero p {
  font-size: 21px;
  line-height: 1.75;
  max-width: 780px;
  opacity: .96;
}

.hero-buttons {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 15px 25px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  display: inline-block;
  transition: .25s;
}

.btn-primary {
  background: #d71920;
  color: white;
  box-shadow: 0 15px 30px rgba(215,25,32,.35);
}

.btn-secondary {
  background: white;
  color: #071b5f;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 20px;
  z-index: 6;
}

.scroll-indicator span {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  animation: scroll 1.3s infinite;
}

.intro {
  width: 86%;
  margin: -70px auto 80px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 22px;
}

.intro-card,
.stat,
.edu-card,
.time-card {
  background: white;
  border-radius: 26px;
  box-shadow: 0 22px 55px rgba(0,0,0,.12);
  padding: 30px;
}

.intro-card {
  border-bottom: 6px solid #071b5f;
}

.intro-card img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 14px 25px rgba(0,0,0,.12);
}

.intro-card h2 {
  color: #071b5f;
  margin-bottom: 10px;
}

.intro-card p,
.section p,
.time-card p,
.edu-card p,
.founders p {
  line-height: 1.75;
  color: #4d5872;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.stat h3 {
  font-size: 42px;
  color: #d71920;
}

.stat p {
  margin-top: 10px;
  font-weight: 800;
  color: #071b5f;
}

.section {
  width: 86%;
  margin: 95px auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 55px;
}

.section-label {
  display: inline-block;
  color: #d71920;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: 13px;
}

.section-label.light {
  color: #ffffff;
}

.section h2,
.timeline h2,
.innovation h2,
.founders h2,
.cta h2 {
  font-size: clamp(32px, 4vw, 54px);
  color: #071b5f;
  margin-bottom: 22px;
  line-height: 1.12;
}

.section p {
  font-size: 18px;
  margin-bottom: 18px;
}

.history-image {
  background: white;
  padding: 38px;
  border-radius: 36px;
  box-shadow: 0 22px 55px rgba(0,0,0,.12);
  position: relative;
}

.history-image::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px dashed rgba(7,27,95,.18);
  border-radius: 28px;
}

.history-image img {
  position: relative;
  z-index: 2;
}

.founders {
  width: 86%;
  margin: 95px auto;
  text-align: center;
}

.founders-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.founders-grid span {
  background: white;
  padding: 18px;
  border-radius: 18px;
  font-weight: 800;
  color: #071b5f;
  box-shadow: 0 14px 35px rgba(0,0,0,.08);
  border: 1px solid rgba(7,27,95,.08);
}

.timeline {
  width: 86%;
  margin: 95px auto;
  text-align: center;
}

.timeline-grid {
  margin-top: 35px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.time-card {
  text-align: left;
  border-top: 6px solid #071b5f;
  transition: .25s;
}

.time-card:hover,
.edu-card:hover,
.stat:hover,
.intro-card:hover {
  transform: translateY(-5px);
}

.time-card span {
  color: #d71920;
  font-size: 28px;
  font-weight: 900;
}

.time-card h3 {
  margin: 14px 0;
  color: #071b5f;
  font-size: 23px;
}

.time-card.highlight {
  background: linear-gradient(135deg, #071b5f, #1038a0);
  color: white;
  border-top-color: #d71920;
}

.time-card.highlight h3,
.time-card.highlight p {
  color: white;
}

.cards {
  display: grid;
  gap: 22px;
}

.edu-card {
  border-left: 8px solid #d71920;
  transition: .25s;
}

.edu-card h3 {
  color: #071b5f;
  margin-bottom: 10px;
  font-size: 24px;
}

.innovation {
  margin-top: 95px;
  min-height: 650px;
  background:
    linear-gradient(rgba(3, 18, 64, .84), rgba(3, 18, 64, .90)),
    url("assets/img/fachada.jpeg") center/cover fixed no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.overlay {
  width: min(950px, 86%);
}

.innovation h2 {
  color: white;
}

.innovation p {
  font-size: 20px;
  line-height: 1.85;
  margin-bottom: 18px;
}

.preinscripcion {
  width: 86%;
  margin: 105px auto;
}

.pre-box {
  background:
    linear-gradient(135deg, rgba(7, 27, 95, .97), rgba(215, 25, 32, .88)),
    url("assets/img/paraguay.png") right center/contain no-repeat;
  color: white;
  border-radius: 38px;
  padding: 64px;
  box-shadow: 0 28px 75px rgba(0,0,0,.22);
  overflow: hidden;
  position: relative;
}

.pre-box::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  top: -70px;
  right: -70px;
}

.pre-box h2 {
  font-size: clamp(34px, 5vw, 60px);
  margin-bottom: 20px;
  position: relative;
}

.pre-box p {
  font-size: 19px;
  line-height: 1.8;
  max-width: 880px;
  position: relative;
}

.pre-grid {
  margin: 38px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}

.pre-grid div {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.26);
  backdrop-filter: blur(9px);
  border-radius: 24px;
  padding: 28px;
}

.pre-grid h3 {
  font-size: 23px;
  margin-bottom: 12px;
}

.pre-grid p {
  font-size: 16px;
}

.pre-note {
  background: rgba(255,255,255,.14);
  border-left: 6px solid white;
  padding: 20px 24px;
  border-radius: 18px;
  margin-bottom: 30px;
  line-height: 1.7;
  position: relative;
}

.disabled {
  opacity: .86;
  pointer-events: none;
}

.cta {
  width: 86%;
  margin: 90px auto;
  background: white;
  border-radius: 32px;
  padding: 42px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: 0 22px 55px rgba(0,0,0,.10);
  border-left: 10px solid #d71920;
}

.cta img {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  padding: 5px;
  box-shadow: 0 14px 30px rgba(0,0,0,.15);
}

.cta h2 {
  margin-bottom: 8px;
}

.cta p {
  color: #4d5872;
  font-size: 19px;
  font-weight: 700;
}

footer {
  background: #06154c;
  color: white;
  text-align: center;
  padding: 55px 20px;
}

footer img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  background: white;
  padding: 5px;
  margin-bottom: 18px;
}

footer h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

footer p {
  margin-bottom: 12px;
  opacity: .9;
}

@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll {
  0% {
    opacity: 1;
    top: 8px;
  }

  100% {
    opacity: 0;
    top: 24px;
  }
}

@media (max-width: 1100px) {
  .menu {
    gap: 14px;
  }

  .menu a {
    font-size: 13px;
  }

  .founders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 950px) {
  .navbar {
    position: absolute;
    flex-direction: column;
    gap: 18px;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .intro,
  .section,
  .timeline-grid,
  .pre-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 210px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 18px;
  }

  .pre-box {
    padding: 38px 26px;
  }

  .cta {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .brand {
    flex-direction: column;
    text-align: center;
  }

  .menu {
    gap: 10px;
  }

  .menu a {
    font-size: 12px;
  }

  .intro,
  .section,
  .timeline,
  .founders,
  .preinscripcion,
  .cta {
    width: 92%;
  }

  .founders-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    text-align: center;
  }
}

/* =========================
   Botón extra del hero
========================= */
.btn-outline-hero {
  padding: 15px 25px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  display: inline-block;
  transition: .25s;
  color: white;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
}

.btn-outline-hero:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.18);
}

/* =========================
   Galería histórica
========================= */
.gallery-section {
  width: 86%;
  margin: 105px auto;
}

.gallery-head {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 38px;
}

.gallery-head h2 {
  font-size: clamp(32px, 4vw, 54px);
  color: #071b5f;
  margin-bottom: 18px;
  line-height: 1.12;
}

.gallery-head p {
  color: #4d5872;
  font-size: 19px;
  line-height: 1.8;
}

.gallery-open {
  margin-top: 26px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #071b5f, #1038a0);
  color: white;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 18px 35px rgba(7,27,95,.22);
  transition: .25s;
}

.gallery-open:hover {
  transform: translateY(-3px);
}

.gallery-preview {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 230px 230px;
  gap: 18px;
}

.preview-card {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  background: #071b5f;
  box-shadow: 0 22px 55px rgba(0,0,0,.14);
}

.preview-card.big {
  grid-row: span 2;
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .35s;
}

.preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(3,18,64,.82));
}

.preview-card:hover img {
  transform: scale(1.08);
}

.preview-card span {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 22px;
  color: white;
  font-weight: 950;
  font-size: 22px;
  text-align: left;
}

.overlay-card span {
  font-size: 30px;
}

/* =========================
   Modal carrusel
========================= */
body.modal-open {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(2, 10, 35, .94);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.gallery-modal.active {
  display: flex;
}

.modal-content-gallery {
  width: min(1150px, 92vw);
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: stretch;
}

.modal-photo-wrap {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 30px;
  overflow: hidden;
  min-height: 72vh;
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
}

.modal-photo-wrap img {
  width: 100%;
  height: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  background: rgba(0,0,0,.25);
}

.modal-info {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  color: white;
  border-radius: 30px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-info span {
  color: #ffdde0;
  font-weight: 950;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.modal-info h3 {
  font-size: 34px;
  line-height: 1.1;
  margin-bottom: 18px;
}

.modal-info p {
  color: rgba(255,255,255,.82);
  font-size: 18px;
  line-height: 1.8;
}

.modal-close {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 5010;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

.modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5010;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 48px;
  line-height: .8;
  cursor: pointer;
  transition: .2s;
}

.modal-nav:hover,
.modal-close:hover {
  background: white;
  color: #071b5f;
}

.modal-prev {
  left: 26px;
}

.modal-next {
  right: 26px;
}

@media (max-width: 950px) {
  .gallery-preview {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .preview-card,
  .preview-card.big {
    height: 260px;
    grid-row: auto;
  }

  .modal-content-gallery {
    grid-template-columns: 1fr;
    width: 94vw;
  }

  .modal-photo-wrap {
    min-height: auto;
  }

  .modal-photo-wrap img {
    max-height: 58vh;
  }

  .modal-info {
    padding: 24px;
  }

  .modal-info h3 {
    font-size: 26px;
  }

  .modal-nav {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .modal-prev {
    left: 24px;
  }

  .modal-next {
    right: 94px;
  }
}

@media (max-width: 600px) {
  .gallery-section {
    width: 92%;
  }

  .gallery-head p {
    font-size: 17px;
  }

  .gallery-modal {
    padding: 18px;
  }

  .modal-close {
    top: 14px;
    right: 14px;
  }
}


/* =========================
   Equipo institucional
========================= */
.team-section {
  width: 86%;
  margin: 105px auto;
}

.team-intro {
  max-width: 920px;
  text-align: center;
  margin: 0 auto 42px;
}

.team-intro h2,
.admin-team h2,
.faculty-team h2 {
  font-size: clamp(32px, 4vw, 54px);
  color: #071b5f;
  margin-bottom: 18px;
  line-height: 1.12;
}

.team-intro p,
.faculty-lead {
  color: #4d5872;
  font-size: 19px;
  line-height: 1.8;
}

.director-card {
  background:
    linear-gradient(135deg, rgba(7, 27, 95, .98), rgba(16, 56, 160, .88), rgba(215, 25, 32, .42));
  color: white;
  border-radius: 38px;
  padding: 42px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 42px;
  align-items: center;
  box-shadow: 0 30px 80px rgba(3,18,64,.22);
  overflow: hidden;
  position: relative;
}

.director-card::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  right: -120px;
  top: -120px;
  background: rgba(255,255,255,.10);
}

.director-photo {
  position: relative;
  z-index: 2;
  border-radius: 30px;
  overflow: hidden;
  min-height: 430px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}

.director-photo img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
}

.director-text {
  position: relative;
  z-index: 2;
}

.director-text h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  margin-bottom: 10px;
}

.director-text h3 {
  font-size: 22px;
  margin-bottom: 22px;
  color: rgba(255,255,255,.86);
}

.director-text p {
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255,255,255,.88);
  margin-bottom: 16px;
}

.admin-team,
.faculty-team {
  margin-top: 85px;
  text-align: center;
}

.admin-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: left;
}

.admin-card {
  background: white;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0,0,0,.10);
  border-left: 7px solid #d71920;
  transition: .25s;
}

.admin-card:hover {
  transform: translateY(-5px);
}

.admin-card h3 {
  color: #071b5f;
  font-size: 20px;
  margin-bottom: 10px;
}

.admin-card p {
  color: #4d5872;
  line-height: 1.7;
}

.faculty-lead {
  max-width: 920px;
  margin: 0 auto;
}

.faculty-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}

.faculty-card {
  background: white;
  border: 1px solid rgba(7,27,95,.08);
  border-radius: 18px;
  padding: 18px 20px;
  color: #071b5f;
  font-weight: 850;
  line-height: 1.45;
  box-shadow: 0 14px 35px rgba(0,0,0,.07);
}

.faculty-card span {
  display: block;
  color: #d71920;
  font-size: 14px;
  margin-top: 6px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .director-card {
    grid-template-columns: 1fr;
  }

  .director-photo {
    max-width: 440px;
    margin: 0 auto;
  }

  .admin-grid,
  .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .team-section {
    width: 92%;
  }

  .director-card {
    padding: 26px;
  }

  .director-photo,
  .director-photo img {
    min-height: 340px;
  }

  .admin-grid,
  .faculty-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================
   Enlace de directora
========================= */
.btn-director-link {
  display: inline-block;
  margin-top: 12px;
  background: white;
  color: #071b5f;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(0,0,0,.18);
  transition: .25s;
}

.btn-director-link:hover {
  transform: translateY(-3px);
}

/* =========================
   Página comunidad
========================= */
.community-hero {
  min-height: 72vh;
  background:
    linear-gradient(90deg, rgba(3, 18, 64, .94), rgba(3, 18, 64, .68), rgba(215, 25, 32, .28)),
    url("assets/img/fachada.jpeg") center/cover no-repeat;
  color: white;
  position: relative;
  overflow: hidden;
}

.community-hero-content {
  min-height: 72vh;
  width: min(1050px, 86%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 110px;
}

.community-hero-content h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  margin-bottom: 22px;
  text-shadow: 0 14px 40px rgba(0,0,0,.35);
}

.community-hero-content p {
  max-width: 780px;
  font-size: 21px;
  line-height: 1.75;
  color: rgba(255,255,255,.92);
  margin-bottom: 28px;
}

.community-hero-content .btn-secondary {
  width: fit-content;
}

.community-page-section {
  width: 86%;
  margin: 95px auto;
}

.faculty-block {
  background: white;
  border-radius: 38px;
  padding: 56px;
  box-shadow: 0 24px 60px rgba(0,0,0,.08);
}

.founders-page {
  text-align: center;
}

@media (max-width: 700px) {
  .community-page-section {
    width: 92%;
  }

  .faculty-block {
    padding: 30px 22px;
  }

  .community-hero-content {
    padding-top: 180px;
  }
}
