* {
    font-family: "Red Hat Display", sans-serif;
}
html, body {
  margin: 0;
  padding: 0;
  background-color: #FAF9FE;
}
html {
  scroll-behavior: smooth; /* Permite el desplazamiento suave al hacer clic en enlaces de anclaje */
}

header {
    width: 100%;
    position: fixed;
    z-index: 1000;
    background-color: transparent;
    color: white;
    box-sizing: border-box;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

header.scrolled {
    background-color: #ffffffc5;
    backdrop-filter: blur(50px);
    color: black;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 70px;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  flex-wrap: wrap;
  background: transparent;
}

.logoContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.logoContainer a {
  text-decoration: none;
  color: inherit;
  gap: 5px;
}

.logo {
  height: 40px;
  width: auto;
}

.logoLink {
  display: flex;
  align-items: center;
}

.citicName {
  font-size: 1.5rem;
  font-weight: 400;
}

.optionContainer {
  display: flex;
  gap: 32px;
}

.optionContainer > a {
  position: relative;
  color: inherit;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.optionContainer > a::after { /* Línea subrayada del header en las opciones del nav a */
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: #ffc107;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  border-radius: 2px;
  pointer-events: none;
}

.optionContainer > a:hover::after,
.optionContainer > a:focus::after {
  transform: scaleX(1);
}

/* Menú desplegable para Revista */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.1rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  background: #fff;
  box-shadow: 0 8px 24px #0002;
  border-radius: 8px;
  z-index: 100;
  flex-direction: column;
  padding: 8px 0;
}

.dropdown-menu a {
  color: #222;
  padding: 10px 18px;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
  font-size: 1.1rem;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
  color: #FFBE00;
}

/* Mostrar menú en hover/focus (escritorio) o con clase .open (móvil) */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu {
  display: flex;
}
/*----*/

.menuButton {
  margin-left: 30px;
}

.portalButton {
  border: 2px solid #FFB526;
  background: transparent;
  color: #ffc107;
  padding: 8px 24px;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.portalButton:hover {
  background: linear-gradient(to left, #FFB526, #ffaa00);
  color: #fff;
}
.hamburger {
  background-color: transparent;
  border: none;
}

/* Responsive del header (menú) */
@media (max-width: 900px) {
  .menu {
    flex-direction: row; /* Mantiene logo y hamburguesa en línea */
    align-items: center;
    justify-content: space-between; /* Espacia logo a la izquierda y hamburguesa a la derecha */
  }
  .logoContainer{
    cursor: pointer;
  }
  .hamburger {
    margin-left: 0; 
    margin-right: 0; 
    align-self: flex-end; /* Alinea verticalmente al centro */
  }
  .optionContainer {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
    position: absolute;
    top: 70px;
    left: 0;
    background: rgba(34,34,34,0.98);
    align-items: flex-start;
    gap: 0;
    padding: 20px 0 10px 30px;
    display: none;
    z-index: 1000;
  }
  .optionContainer.active {
    display: flex;
  }
  .menuButton {
    width: 100%;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .logo {
    height: 32px;
  }
  .citicName {
    font-size: 1.1rem;
  }
  .optionContainer a {
    font-size: 1rem;
  }
  .portalButton {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
  }
}

/* Responsive menú */
@media (max-width: 900px) {
  .optionContainer {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(34,34,34,0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 0 10px 30px;
    display: none;
    z-index: 1000;
  }
  .optionContainer.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .menuButton.desktop {
    display: none;
  }
  .portalButton.mobile {
    display: block;
    margin-top: 16px;
  }
}
@media (min-width: 901px) {
  .portalButton.mobile {
    display: none;
  }
  .hamburger {
    display: none !important;
  }
}

/* Sidebar menú hamburguesa desplegable */
.sidebar {
  position: fixed;
  top: 0;
  left: -420px;
  width: 320px;
  height: 95vh;
  background: #fff;
  box-shadow: 2px 0 16px rgba(0,0,0,0.08);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 32px 0 15px 0;
  transition: left 0.3s;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
}
.sidebar.active {
  left: 0;
}
.sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}
.sidebar-citic-logo {
    width: 200px;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 32px;
  margin-bottom: auto;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  color: #222;
  text-decoration: none;
  font-size: 1.08rem;
  gap: 14px;
  padding: 6px 0;
  transition: color 0.2s;
}
.sidebar-nav a:hover {
  color: #FFA300;
}
.sidebar-login {
  display: flex;
  align-items: center;
  color: #222;
  text-decoration: none;
  font-size: 1.08rem;
  gap: 14px;
  padding: 16px 32px 10px 32px;
  border-top: 1px solid #eee;
  margin-top: 16px;
  transition: color 0.2s;
}
.sidebar-login:hover {
  color: #007bff;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1999;
}
.sidebar.active ~ .sidebar-overlay {
  display: block;
}
/* Responsive del sidebar */
@media (max-width: 400px) {
  .sidebar { width: 90vw; }
  .sidebar-profile, .sidebar-nav, .sidebar-logout { padding-left: 16px; padding-right: 16px; }
}

/* ESTILOS DE Banner principal CITIC */
.main-banner {
  position: relative;
  width: 100%;
  height: 520px;
  background: center center/cover no-repeat; 
  filter: brightness(90%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 0 80px 8vw; 
  margin-top: 0;      
  box-sizing: border-box;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 70% 100%, 0 90%); /* Forma triangular en el borde inferior */
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34,34,34,0.55);
  z-index: 1;
}
.banner-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 60px 0 60px 0;
  left: 40px;
  transition: opacity 0.5s;
  opacity: 1;
}
.banner-content.fade-out {
  opacity: 0;
  transition: opacity 0.5s;
}
.banner-content.fade-in {
  opacity: 1;
  transition: opacity 0.1s;
}
.banner-citic {
  letter-spacing: 10px;
  text-shadow: 0 5px 10px #0004;
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 5px;
}
.banner-title {
  font-size: 60px;
  text-shadow: 0 5px 10px #0004;
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 18px 0;
}
.banner-highlight {
  color: #ffaf24;
  display: inline-block;
}
.banner-desc {
  font-size: 1.15rem;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.267);
  margin-bottom: 32px;
  max-width: 600px;
}
.banner-buttons {
  display: flex;
  gap: 16px;
}
.banner-btn {
  background: #fff;
  color: #222;
  border: none;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.08em;
}
.banner-btn:hover {
  background: #FFA300;
  color: #fff;
}
.banner-btn.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.banner-btn.secondary:hover {
  background: #fff;
  color: #222;
}

/* Slider dinámico del banner */
.main-banner-slider {
  position: relative;
  width: 100%;
  min-height: 520px;
  height: 600px; 
  overflow: hidden;
  background: #222;
  padding: 0;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 70% 100%, 0 90%); /* Forma triangular en el borde inferior */
}
.main-banner.slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s;
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  display: flex;
  z-index: 1;
}
.main-banner.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  z-index: 20;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, color 0.2s;
}
.banner-arrow.left { left: 20px; }
.banner-arrow.right { right: 20px; }
.banner-arrow:hover { color: #FFA300; }

.banner-dots {
  position: absolute;
  bottom: 28px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 20;
  padding-bottom: 20px;
}
.banner-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffefd393;
  border: 1px solid #ffefd3;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
  display: inline-block;
}
.banner-dots .dot.active {
  background: #ffffff;
  border-color: #fff;
}

/* Responsive del banner principal*/
@media (max-width: 900px) {
  .main-banner {
    padding-left: 4vw;
    height: 400px;
    min-height: unset;
  }
  .banner-title {
    font-size: 2.5rem;
  }
  .banner-citic {
    font-size: 14px;
  }
  .banner-content {
    padding: 40px 30px;
    left: 0;
  }
  .banner-arrow {
    font-size: 1.5rem;
    padding: 6px 12px;
  }
  .banner-arrow {
    display: none;
  }
}
@media (max-width: 600px) {
  .main-banner {
    padding-left: 0;
    justify-content: center;
    height: 320px;
    min-height: unset; 
  }
  .banner-content {
    padding: 24px 60px;
    left: 0;
  }
  .banner-title {
    font-size: 32px;
  }
  .banner-desc {
    font-size: 1rem;
  }
  .banner-buttons {
    gap: 10px;
    justify-content: left;
  }
  .banner-btn {
    padding: 10px 5px;
    font-size: 1rem;
  }
  .banner-dots {
    bottom: 18px;
    gap: 8px;
  }
  .banner-dots .dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 600px) {
  
  .banner-content {
    padding: 24px 40px;
  }
}

/* --------------------- Testimonios ------------------------------- */
.testimonials-section {
  text-align: center;
  padding: 40px 0;
  background: #F6F7F9;
}
.testimonials-title {
  font-size: 2rem;
  margin-bottom: 10px;
}
.testimonials-highlight {
    font-weight: 900;
}
.experiences-highlight {
    font-weight: 400;
}
.testimonials-desc {
  color: #888;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.testimonials-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border-radius: 12px;
  padding: 20px; 
  width: 370px;
  text-align: left;
  min-height: 250px; /* altura fija para mantener consistencia en todas las tarjetas */
  align-content: center; /* asegura que el contenido se distribuya uniformemente */
}
.testimonial-quote {
  color: #206BBE;
  font-size: 2rem;
  margin-bottom: 15px;
}
.testimonial-text {
  color: #444;
  font-size: 1rem;
  text-align: left;
  align-content: center; /* asegura que el texto se alinee correctamente en el centro, dependiendo de la altura mínima */
  min-height: 100px;        /* asegura espacio mínimo para el texto */
}
.testimonial-user {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 0;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-name {
  font-weight: 600;
  font-size: 1rem;
}
.testimonial-role {
  color: #888;
  font-size: 0.9rem;
}
.testimonials-dots {
  margin-top: 24px;
}
.testimonials-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #e0e0e0;
  border-radius: 50%;
  margin: 0 4px;
  cursor: pointer;
}
.testimonials-dots .dot.active {
  background: #2196f3;
}
/* Responsive testimonios */
@media (max-width: 1440px) {
  .testimonial-card {
    width: 450px;
  }
}

@media (max-width: 900px) {
  .testimonials-slider {
    flex-direction: column;
    gap: 24px;
    align-items: center;
    padding: 0 5px;
  }
  .testimonials-title {
    font-size: 28px;
    margin-bottom: 8px;
  }
  .testimonial-card {
    width: 600px;
    padding: 30px;
    min-height: 10vh; /* altura mínima para mantener consistencia */
  }
}

@media (max-width: 720px) {
  .testimonial-card {
    width: 480px;
  }
}

@media (max-width: 600px) {
  .testimonials-section {
    padding: 30px;
  }
  .testimonials-title {
    font-size: 28px;
    margin-bottom: 8px;
  }
  .testimonial-card {
    width: 350px;
    font-size: 0.97rem;
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    width: 300px;
  }
}

@media (max-width: 430px) {
  .testimonial-card {
    width: 200px;
  }
}

/* --------------------- Noticias ------------------------------- */
.news-section {
  background: #FAF9FE;
  padding: 60px 30px;
}
.news-title {
  font-size: 2rem;
  margin-bottom: 24px;
  text-align: left;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 30px;
}
.lasted-highlight {
  font-weight: 900;
  color: #222;
}
.news-highlight {
  font-weight: 400;
  color: #222;
}
.news-see-all {
  font-size: 1rem;
  color: white;
  background: #0A3265;
  border: 2px solid linear-gradient(to left, #61b8ff, #007ee6);
  border-radius: 24px;
  padding: 8px 22px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: background 0.2s, color 0.2s, border 0.2s;
  margin-left: auto;
  display: inline-block;
  letter-spacing: 0.01em;
  text-align: center;
}

.news-see-all:hover,
.news-see-all:focus {
  background: #007ee6;
  color: white;
  border-color: linear-gradient(to left, #61b8ff, #007ee6);
}
.news-main-container {
  display: flex;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  background: transparent; /* Cambiar si es necesario | Fondo que contiene toda la noticia */
  padding: 30px;
  border-radius: 15px;
}
.news-featured {
  flex: 2 1 400px;
  background: transparent;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 320px;
}
.news-featured-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 18px; /* Bordes redondeados como en la imagen */
  margin-bottom: 0;
}
.news-featured-content {
  padding: 24px;
}
.news-category {
  font-size: 0.9rem;
  color: #206BBE;
  font-weight: 700;
  margin-bottom: 8px;
}
.news-featured-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.news-featured-desc {
  font-size: 1rem;
  color: #444;
  margin-top: 12px;
}
.news-featured-date {
  font-size: 0.9rem;
  color: #888;
}
.news-list {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 260px;
}
.news-item {
  display: flex;
  gap: 12px;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  align-items: center;
}
.news-item-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px; /* Bordes redondeados para las miniaturas */
}
.news-item-content {
  padding: 10px 12px;
  flex: 1;
}
.news-item-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.news-item-date {
  font-size: 0.85rem;
  color: #888;
}
.news-empty {
  color: #888;
  text-align: center;
  width: 100%;
  padding: 40px 0;
}

/* Responsive de noticias */

.news-see-all.desktop-only {
  display: inline-block;
}
.news-see-all.mobile-only {
  display: none;
}
@media (max-width: 900px) {
  .news-title {
    font-size: 28px;
    flex-direction: row;
    align-items: start;
    text-align: center;
    gap: 8px;
    padding-left: 30px;
    padding-right: 30px;
  }
  .news-main-container {
    flex-direction: column;
    gap: 18px;
    padding: 0 30px;
  }
  .news-featured {
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
  }
  .news-featured-img {
    height: 160px;
    border-radius: 16px;
  }
  .news-featured-content {
    padding: 12px 8px 16px 8px;
  }
  .news-list {
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    width: 100%;
    overflow: visible;
  }
  .news-item {
    flex-direction: row;
    align-items: flex-start;
    background: transparent;
    border-radius: 14px;
    min-width: 0;
    padding: 6px 0;
  }
  .news-item-img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin: 8px 0 8px 8px;
    flex-shrink: 0;
  }
  .news-item-content {
    padding: 8px 8px 8px 12px;
    flex: 1;
  }
}

@media (max-width: 600px) {
  .news-title {
    font-size: 28px;
    justify-content: center;
    gap: 8px;
  }
  .news-see-all.desktop-only {
    display: none;
  }
  .news-see-all.mobile-only {
    margin: 22px auto 0 auto;
    letter-spacing: 0.01em;
    padding: 10px 0;
    width: 250px;
    display: block;
  }
}

/* Números Destacados - Facts Section */
.facts-section {
  width: 100%;
  min-height: 340px;
  position: relative;
  margin: 0;
  padding: 0;
  font-family: "Red Hat Display", sans-serif;
}
.facts-bg {
  background: url('https://images.unsplash.com/photo-1588075592405-d3d4f0846961?q=80&w=1172&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center center/cover no-repeat;
  position: relative;
  min-height: 340px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.facts-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 23, 28, 0.75);
  z-index: 1;
}
.facts-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.facts-header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}
.facts-highlight {
  font-weight: 900;
}
.import-highlight {
  font-weight: 400;
}
.facts-title {
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 1px;
  width: 250px;
}
.facts-numbers {
  display: flex;
  width: 100%;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0;
  margin-top: 12px;
  flex-wrap: wrap;
}
.fact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  padding-left: 70px; /* Espacio para la barra vertical */
  padding-right: 70px;  
  position: relative;
}
.fact-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 50%;
  width: 2px;
  background: #ffaa00;
  opacity: 0.8;
}
.fact-number {
  color: #fff;
  font-size: 4rem;
  font-weight: 800;
  width: 120px;
  text-align: center;
  line-height: 1;
  letter-spacing: 2px;
  position: relative;
}
.fact-label {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 400;
  margin-top: 8px;
  opacity: 0.85;
}

/* Responsive */

@media (max-width: 1280px) {
  .fact-item {
    padding-left: 30px; /* Reduce el espacio para la barra vertical */
    padding-right: 30px;
  }
  .facts-title {
    padding: 30px;
  }
}

@media (max-width: 900px) {
  
  .facts-title {
    text-align: center;
  }
  .facts-content {
    width: not(100%);
    padding: 36px 10px 28px 10px;
  }
  .facts-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
  }
  .facts-numbers {
    gap: 32px;
    flex-wrap: wrap;
    padding-left: 0;
    justify-content: center;
  }
  .fact-number {
    font-size: 90px;
    width:auto;
  }
  .fact-label {
    font-size: 15px;
  }
  
  .fact-item:not(:last-child)::after {
    display: none;
  }
}

/* Responsive: quita la barra en columna */
@media (max-width: 915px) {
  .facts-numbers {
    flex-direction: column;
    align-items: stretch;
  }
  .fact-item {
    padding: 18px 0;
  }
  .fact-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .facts-content {
    padding: 22px 4vw 18px 4vw;
  }
  .facts-header {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
  }
  .facts-numbers {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .fact-item {
    min-width: 0;
    align-items: center;
  }
  .fact-number {
    font-size: 50px;
  }
  .fact-label {
    font-size: 15px;
  }
}


/*Contact Section Styles*/
.contact-section {
  background: #FAF9FE;
  padding: 30px;
  display: flex;
  justify-content: center;
}

/* Responsive contacto */
.contact-container {
  display: flex;
  gap: 50px;
  max-width: 1200px;
  margin: auto;
  padding: 40px 36px;
  align-items: center;
  flex-wrap: wrap;
}

.contact-info {
  min-width: 320px;
  padding: 30px;
  flex: 1 1 320px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-title {
  font-size: 2.2em;
  font-weight: 400;
  margin-top: 10px;
  margin-bottom: 18px;
  line-height: 1.1;
}
.contact-title span {
  font-weight: 900;
}

.contact-desc {
  color: #555;
  font-size: 1.08em;
  margin-bottom: 32px;
}

.contact-details {
  margin-top: 18px;
}

.contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.contact-icon {
  background: #eaf1fb;
  color: #388bfa;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  margin-right: 14px;
}

.contact-label {
  font-size: 0.98em;
  color: #888;
}

.contact-value {
  font-size: 1.08em;
  font-weight: 600;
  color: #222;
}

.contact-form {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
  padding: 32px 28px 24px 28px;
  min-width: 260px;
  width: 450px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 320px;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.form-group label {
  font-size: 1em;
  color: #444;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid #dbeafe;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1em;
  background: #fff;
  color: #222;
  outline: none;
  transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #388bfa;
}

.contact-btn {
  margin-top: 12px;
  background: #388bfa;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}

.contact-btn:hover {
  background: #2563c9;
}
.contact-map-contact {
  margin-top: 12px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.contact-map-contact iframe {
  width: 100%;
  min-width: 0;
  height: 260px;
  border-radius: 10px;
  border: 0;
  box-shadow: 0 2px 8px rgba(56,139,250,0.08);
  max-width: 100%;
}

@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
  }
  .contact-form, .contact-info {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 18px 0 0 0;
    box-sizing: border-box;
  }
  .contact-form {
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  }
  .contact-info {
    padding: 10px 0 0 0;
  }
  .contact-map-contact {
    margin-top: 10px;
  }
  .contact-map-contact iframe {
    height: 180px;
    min-width: 0;
    max-width: 100vw;
  }
}
@media (max-width: 600px) {
  .contact-container {
    gap: 18px;
  }
  .contact-info {
    gap: 10px;
  }
  .contact-map-contact {
    margin-top: 6px;
  }
  .contact-map-contact iframe {
    height: 120px;
    min-width: 0;
    max-width: 100vw;
  }
}


/* -------------------------------------- Footer  */
footer {
  clip-path: polygon(25% 0, 100% 5%, 100% 100%, 0 100%, 0 5%); /* Forma de rectángulo con punta triangular */
}

.main-footer {
  background: #ECEDEF;
  color: #3A3839;
  padding: 60px 30px 30px 30px;
  padding-top: 80px;
  font-size: 1rem;
  font-weight: 400;
  justify-items: center;
}
.footer-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 55px;
  box-sizing: border-box;
}

.footer-col {
  min-width: 100px;
  width: 100%;
  max-width: 265px;
  margin-bottom: 32px;
}
.footer-col iframe {
  width: 100%;
  height: 180px;
  border-radius: 12px;
}
.footer-logo-col {
  min-width: 180px;
  width: 100%;
  max-width: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  height: 200px;
  width: auto;
  max-width: 90vw;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.footer-links,
.footer-social {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-social li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-social a {
  color: #3A3839;
  text-decoration: none;
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
  display: flex;
  align-items: baseline; /* Alinea el icono y el texto */
  gap: 8px;
  font-size: 1.08rem;
}

.footer-links a:hover,
.footer-social a:hover {
  color: #000000;
  font-weight: 500;
  opacity: 1;
}

.footer-links span i {
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  color: #a1a1a1;
  font-size: 0.9rem;
  border-top: 1px solid #ffffff;
  width: 100%;
  padding-top: 30px;
}

.footer-bottom span {
  font-style:italic;
}

.footer-bottom a {
  color: #8c8c8c;
}
.footer-bottom a:hover {
  color: #477099;
}

/* Responsive */
@media (max-width: 1220px) {
  .footer-container {
    justify-content: space-evenly;
  }
  .map {
    width: 100%;
    max-width: 1000px;
  }
}
/* Tablet */
@media (max-width: 900px) {
  footer {
  clip-path: polygon(25% 0, 100% 5%, 100% 100%, 0 100%, 0 5%); /* Forma de rectángulo con punta triangular */
}
  .footer-container {
    display: flex;
    align-items: flex-start;
    justify-items: flex-start;
    justify-content: space-around;
    padding: 60px 20px 30px 20px;
    gap: 15px;
  }
  .footer-col,
  .footer-logo-col {
    max-width: 100%;
    align-items: flex-start;
  }
  .footer-col {
    margin-bottom: 0;
  }
  .footer-links, .footer-social {
    display: flex;
    flex-direction: column;
  }
  .footer-logo-col {
    align-items: flex-start;
    text-align: left;
  }
  .footer-logo {
    height: 200px;
    margin-bottom: 10px;
  }
}

/* Móvil */
@media (max-width: 600px) {
  .footer-col,
  .footer-logo-col {
    max-width: 100%;
    min-width: 0;
    align-items: flex-start;
  }
  .footer-title {
    font-size: 1rem;
  }
  .footer-bottom {
    font-size: 0.92rem;
    margin-top: 12px;
  }
}


/* Modal de error */
.modal-error {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-error-content {
  background: #fff;
  padding: 32px 28px 24px 28px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  text-align: center;
  max-width: 340px;
  position: relative;
}
.modal-error-close {
  position: absolute;
  top: 10px; right: 16px;
  font-size: 1.8em;
  color: #888;
  cursor: pointer;
}
.mal{
  margin: 0 0 12px 0;
  color: #d32f2f;
  font-size: 1.3em;
}
.bien{
  margin: 0 0 12px 0;
  color: #3dd32f;
  font-size: 1.3em;
}


/*---------------------------- NIVELES --------------------------------*/
.niveles-section {
  padding: 40px 30px 50px 30px;
  margin: 0;
  background-color: #fafaff;
  justify-items: center;
}

.niveles-title {
  font-size: 2rem;
  font-weight: 400;
  margin: 0;
  text-align: left;
  width: 100%;
  max-width: 1200px;
  padding: 30px;
}
.niveles-highlight {
  font-weight: 900;
}

  .niveles-slider-container {
    position: relative;
    width: 1200px; /* 3 tarjetas de 320px + 2 gaps de 32px con padding incluído de 28px*/
    max-width: 100vw;
    overflow: hidden;
    padding: 25px 10px 25px 10px; /* Ajuste para que el padding no afecte al ancho total */
  }

  /* Móvil: scroll horizontal táctil */
  @media (max-width: 900px) {
    .niveles-slider-container {
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 10px;
    }
    .niveles-slider {
      flex-wrap: nowrap;
      gap: 18px;
      min-width: 100vw;
      width: max-content;
      transition: none;
    }
    .nivel-card {
      min-width: 260px;
      max-width: 320px;
      flex: 0 0 auto;
    }
    /* Oculta la barra de scroll en navegadores modernos */
    .niveles-slider-container::-webkit-scrollbar {
      display: none;
    }
    .niveles-slider-container {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    /* Oculta los puntos de referencia cuando el slider es desplazable */
    .niveles-dots {
      display: none !important;
    }
  }

.niveles-slider {
  display: flex;
  gap: 32px;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.niveles-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 35px;
  z-index: 10;
  position: relative;
}
.niveles-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #e0e0e0;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px #0002;
  outline: none;
}
.niveles-dot.active {
  background-color: #FFBE00;
  border-color: #FFBE00;
}

.nivel-card {
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  box-shadow: 0 4px 16px #0001;
  text-shadow: 0 5px 10px #0004;
  width: 100%;
  min-width: 320px;
  color: #fff;
  max-width: 320px;
  flex: 0 0 320px;
  min-height: 340px;
  padding: 32px 28px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.nivel-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: 18px;
  pointer-events: none;
  filter: brightness(60%);
  display: none; /* Oculta la imagen de fondo por defecto */
}

.nivel-card > .nivel-num,
.nivel-card > .nivel-content {
  position: relative;
  z-index: 2; /* Asegura que el contenido esté por encima de la imagen de fondo */
}

.nivel-card:nth-child(1n+2) {
  background-color: #fff;         /* desde la tarjeta 2 */
  color: #222; /* Color de texto */

}

.nivel-card:nth-child(1) {
  background-color: #FFA300;         /* Color 1 */
}

/* .nivel-card:nth-child(3n+2) {
  background-color: #FFB701;      Color 2 
}
.nivel-card:nth-child(3n) {
  background-color: #FFC801;       Color 3 
}*/
.nivel-card:hover .nivel-title,
.nivel-card:hover .nivel-desc,
.nivel-card:hover .nivel-num {
  color: #fff;
  position: relative;
  z-index: 2;
}

.nivel-card:hover .nivel-title,
.nivel-card:hover .nivel-desc {
  text-shadow: 0 5px 10px #0004;
}
.nivel-card:hover .nivel-bg-img {
  display: block; /* Muestra la imagen de fondo al pasar el ratón */
}

.nivel-num {
  display: flex; 
  justify-content: flex-end;
  font-size: 2.2rem;
  font-weight: 700;
  opacity: 0.18;
  letter-spacing: 2px;
  margin-right: 0;
  margin-top: 0;
}

.nivel-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.nivel-desc {
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 1280px) {
  .niveles-slider-container {
  width: 1000px; /* 3 tarjetas de 320px + 2 gaps de 32px con padding incluído de 28px*/
  min-width: 500px;
}
.nivel-card {
  width: 100%; /* Ajuste para pantallas más pequeñas */
  max-width: 425px;
  min-width: 250px;
  flex: none;
}
.niveles-title {
  width: 95%;
}
}

@media (max-width: 1080px) {
  .niveles-slider-container {
  width: 750px; /* 3 tarjetas de 320px + 2 gaps de 32px con padding incluído de 28px*/
  min-width: 500px;
}
.nivel-card {
  width: 100%; /* Ajuste para pantallas más pequeñas */
  max-width: 300px;
  min-width: 250px;
}
}

@media (max-width: 900px) {
.niveles-title {
    text-align: center;
    font-size: 28px;
  }
}

@media (max-width: 830px) {
  .niveles-slider-container {
  width: 100%; /* 3 tarjetas de 320px + 2 gaps de 32px con padding incluído de 28px*/
  min-width: 100px;
  max-width: 580px;
  padding: 25px 30px;
}
.niveles-slider {
  gap: 40px; /* Ajuste del espacio entre tarjetas */
}
.nivel-card {
  max-width: 523px;
  min-width: 0;
}
}
@media (max-width: 650px) {
  .niveles-slider-container {
  min-width: 100px;
  max-width: 350px;
}
.nivel-card {
  max-width: 300px;
}
}
@media (max-width: 435px) {
  .niveles-slider-container {
  max-width: 300px;
}
.nivel-card {
  max-width: 250px;
}
}