/* =====================
   Variables Globales
===================== */
:root {
  --azul-oscuro: #1f3350;
  --azul-medio: #34495e;
  --azul-suave: #507194;
  --gris-claro: #ccc;
  --gris-oscuro: #333;
  --sombra-light: 0 8px 20px rgba(0, 0, 0, 0.08);
  --fuente: 'Source Serif', Tahoma, Geneva, Verdana, sans-serif;
}

/* =====================
   Estilos Base
===================== */
.infografia-wrapper {
  margin: 0;
  font-family: var(--fuente);
}

.text-center {
  text-align: center;
}

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

/* =====================
   Sección Información
===================== */
#seccion-informacion {
  padding: 3rem 1rem;
  max-width: 79%;
  margin: auto;
  color: var(--azul-oscuro);
  background-color: #ffffff;
}

#seccion-informacion h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--azul-oscuro);
  position: relative;
}

#seccion-informacion h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #5a6e91;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

#seccion-informacion p {
  font-size: 1.15rem;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--gris-oscuro);
}

.section {
  margin-bottom: 3rem;
}

.section p strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--azul-oscuro);
}

.section p br+strong {
  margin-top: 1.5rem;
}

.quote {
  font-style: italic;
  margin-top: 2rem;
  padding-left: 1rem;
  border-left: 4px solid var(--azul-oscuro);
  color: #444;
  background-color: #f9f9f9;
  border-radius: 4px;
}

strong {
  font-weight: bold;
}

/* =====================
   Misión y Visión
===================== */
.mision-vision-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: space-between;
}

.mision-vision-box {
  flex: 1 1 30%;
  background-color: #f8f9fb;
  border-left: 5px solid var(--azul-oscuro);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  min-width: 250px;
}

.mision-vision-box strong,
.card h3 {
  font-size: 1.2rem;
  color: var(--azul-oscuro);
  display: block;
  margin-bottom: 0.5rem;
}

.mision-vision-box p,
.mision-vision-extra {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: justify;
  color: var(--gris-oscuro);
}

.mision-vision-extra {
  margin-bottom: 1.5rem;
}

/* =====================
   Infografía / Carrusel
===================== */
.infografia-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.card-wrapper {
  position: relative;
  width: 31%;
  height: 500px;
  flex-shrink: 0;
}

.card-color-bg {
  position: absolute;
  top: -2%;
  left: 11%;
  width: 95%;
  height: 95%;
  transform: rotate(-5deg);
  border-radius: 20px;
  z-index: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.card-1-bg {
  background-color: var(--azul-medio);
}

.card-2-bg {
  background-color: #31567a;
}

.card-3-bg {
  background-color: var(--azul-suave);
}

.card {
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 90%;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: var(--sombra-light);
  padding: 2rem 1.5rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.icon {
  font-size: 2rem;
  color: var(--azul-medio);
  margin-bottom: 1rem;
}

.card p {
  font-size: 0.95rem;
  color: #555;
}

/* Carrusel */
.carousel-container {
  overflow: hidden;
  width: calc((250px * 3) + (20px * 2));
  max-width: 100%;
  margin: 0 auto;
}

.infographic-container {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
  width: fit-content;
  align-items: stretch;
  justify-content: center;
  margin: 0 auto;
}

.card-carrusel {
  flex: 0 0 250px;
  position: relative;
  min-height: 250px;
  border-radius: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.card-content {
  background-color: white;
  padding: 20px;
  border-radius: 20px;
  width: 115%;
  text-align: center;
  position: relative;
  border: 3px solid var(--gris-claro);
  flex: 0 0 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra-light);
}

.card-content::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 25px solid white;
  z-index: 2;
}

.card-content::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -28px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 28px solid rgba(1, 13, 49, 0.15);
  z-index: 1;
}

.title {
  color: #e0f2fe;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.text {
  display: flex;
  text-align: center;
  color: #3f3f40;
  font-size: 1rem;
  align-items: center;
  justify-content: center;
}

.azul-oscuro {
  background: linear-gradient(135deg, #00334E, #57a9d6);
}

.azul {
  background: linear-gradient(135deg, #145374, #40ace6);
}

.azul-claro {
  background: linear-gradient(135deg, #407997, #65bfef);
}

.carousel-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.carousel-buttons button {
  background-color: #145374;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.carousel-buttons button:hover {
  background-color: #0e3f5c;
}

.indicator-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.indicator-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--gris-claro);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  margin-bottom: 2rem;
}

.indicator-dots span:hover,
.indicator-dots span:focus-visible {
  background-color: var(--azul-suave);
  transform: scale(1.2);
  outline: none;
}

.indicator-dots span.active {
  background-color: var(--azul-medio);
  transform: scale(1.3);
}

.title-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.first-title {
  text-align: center;
  font-size: 3.6rem;
  font-weight: 500;
  color: #f0f8ff;
  text-shadow: 1px 1px 3px rgba(30, 64, 175, 0.6);
  font-family: 'balgin';
}

.second-title {
  font-size: 6.8rem;
  font-weight: 700;
  margin-top: 1rem;
  background: linear-gradient(to right, #60a5fa, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
  font-family: 'balgin';
}

.instagram {
  color: white;
}

.gdrive-video{
  width:100%;
  aspect-ratio:16/9;
  border:0;
}

@font-face {
  font-family: 'balgin';
  src: url('fonts/balgin.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* =====================
   Media Queries
===================== */
@media (min-width: 1388px) {
  #seccion-informacion {
    margin-top: 5rem;
  }
}

@media (max-width: 768px) {
  #seccion-informacion {
    max-width: 90%;
    padding: 0rem 1rem;
  }

  .infografia-container {
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
  }

  .card-wrapper{
    width:95%;
  }

  .carousel-container {
    width: 100%;
  }

  .mision-vision-extra {
    text-align: left;
    padding: 0 1rem;
  }

  .card-color-bg {
    left: 5%;
  }
}

@media (max-width: 600px) {
  .carousel-container {
    width: 100%;
  }

  .second-title {
    font-size: 3.2rem;
  }

  .first-title {
    font-size: 1.8rem;
  }

  .infographic-container {
    gap: 0px;
  }

  .card-wrapper {
    width: 95%;
    height: 600px;
  }
}

@media (max-width: 480px) {
  #seccion-informacion h1 {
    font-size: 1.5rem;
  }

  #seccion-informacion p {
    font-size: 1rem;
  }

  .card h3 {
    font-size: 1.2rem;
  }

  .card p {
    font-size: 1rem;
  }
}