* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #2980b9;
  --text-color: #333;
  --light-bg: rgba(245, 245, 245, 0.85); /* Fondo semitransparente */
  --white: #ffffff;
  --shadow: 0 3px 10px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
  --boton-color: #3498db00;
  --title-font: 'Georgia', serif;
  --text-font: 'Havana', sans-serif;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: transparent;
  margin: 0;
  padding: 0;
  z-index: 0;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

#animatedBackground {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.content-overlay {
  position: relative;
  z-index: 1;
  background-color: transparent;
}

/* ===== ESTILOS GENERALES ===== */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--secondary-color);
  color: white;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--white);
}

.logo-highlight {
  color: var(--primary-color);
}

.logo-cemss {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== BOTONES DE NAVEGACIÓN ===== */
.nav-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-btn {
  padding: 8px 20px;
  background-color: var(--boton-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: bold;
  font-size: 1.5rem;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
}

.nav-btn:hover {
  background-color: var(--accent-color);
}

/* ===== MENÚ HAMBURGUESA (MÓVIL) ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 30px;
  z-index: 1001;
}

.menu-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  transition: var(--transition);
}

/* Botón hamburguesa activo */
.mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== DROPDOWN ===== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  background-color: var(--secondary-color);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  color: var(--white);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  transition: background-color 0.3s;
}

.dropdown-item:hover {
  background-color: #192a3b;
}


.dropdown-menu ul {
    background-color: #103043;
}

/* ===== MENÚ MÓVIL ===== */
.mobile-menu {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--secondary-color);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
}

.mobile-menu.active {
  display: flex;
  animation: fadeIn 0.3s;
}

.mobile-menu-item {
  padding: 15px 25px;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.mobile-menu-item:hover {
  background-color: rgba(0,0,0,0.1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Section - Estructura */
.hero-section {
  position: relative;
  margin-top: 80px;
  height: 80vh;
  min-height: 600px;
  overflow: hidden;
  z-index: 0;
}

.hero-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-background {
  position: absolute;
  width: 100%;
  height: 100%;
}

.hero-image-diagonal {
  position: absolute;
  left: 0;
  width: 55%;
  height: 100%;
  background: url('logo_white.png') no-repeat center center;
  background-size: contain;
  background-color: rgba(13, 72, 110, 0.3);
  clip-path: polygon(0% 0%, 100% 0%, 70% 100%, 0% 100%);
  z-index: 1;
  opacity: 0.9;
}

.hero-color-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg, 
    rgba(26, 75, 122, 0.9) 0%, 
    rgba(13, 72, 110, 0.95) 50%, 
    rgba(25, 42, 59, 1) 100%
  );
  z-index: 0;
}

/* Contenido del Hero - Estilo exacto como la imagen */
.hero-content {
  position: absolute;
  right: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 10%;
  color: var(--white);
  z-index: 2;
  text-align: center;
}

.cemss-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: 5.5rem;
  margin: 0;
  line-height: 1;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: var(--white);
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(255, 255, 255, 0.2);
  animation: glow 2s ease-in-out infinite alternate;
}

.highlight-ss {
  color: var(--accent-color);
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(79, 195, 247, 0.7);
}

.cemss-subtitle {
  font-family: 'Times New Roman', Times, serif;
  margin: 25px 0;
  text-align: center;
  width: 100%;
}

.subtitle-line1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.5),
    0 0 5px rgba(255, 255, 255, 0.1);
  letter-spacing: 0.5px;
}

.subtitle-line2 {
  font-size: 1.5rem;
  line-height: 1.4;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.5),
    0 0 5px rgba(255, 255, 255, 0.1);
  font-style: normal;
}

/* Botón CTA mejorado */
.cta-btn {
  padding: 14px 35px;
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: 'Times New Roman', Times, serif;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 30px;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.3),
    0 0 10px rgba(79, 195, 247, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  z-index: -1;
}

.cta-btn:hover {
  background-color: #3da8d8;
  transform: translateY(-3px);
  box-shadow: 
    0 6px 10px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(79, 195, 247, 0.5);
}

.cta-btn:hover::before {
  width: 100%;
}

/* Animación sutil para el título */
@keyframes glow {
  from {
    text-shadow: 
      2px 2px 4px rgba(0, 0, 0, 0.5),
      0 0 10px rgba(255, 255, 255, 0.1);
  }
  to {
    text-shadow: 
      2px 2px 6px rgba(0, 0, 0, 0.6),
      0 0 20px rgba(255, 255, 255, 0.3);
  }
}

/* Logo para móviles (oculto en desktop) */
.mobile-logo {
  display: none;
}

/* Responsive Design - Mejoras para móviles */
@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .hero-background {
    display: none;
  }
  
  .mobile-logo {
    display: block;
    width: 100%;
    height: 40vh;
    background: url('logo_white.png') no-repeat center center;
    background-size: contain;
    background-color: rgba(13, 71, 110, 0.881);
  }
  
  .hero-content {
    position: relative;
    width: 100%;
    height: 60vh;
    padding: 30px 5%;
    background: linear-gradient(
      135deg, 
      rgba(26, 75, 122, 0.9) 0%, 
      rgba(13, 72, 110, 0.95) 50%, 
      rgba(25, 42, 59, 1) 100%
    );
  }
  
  .cemss-title {
    font-size: 4rem;
  }
  
  .subtitle-line1 {
    font-size: 1.8rem;
  }
  
  .subtitle-line2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 576px) {
  .mobile-logo {
    height: 35vh;
  }
  
  .hero-content {
    height: 65vh;
    padding: 20px 5%;
  }
  
  .cemss-title {
    font-size: 3.5rem;
  }
  
  .subtitle-line1 {
    font-size: 1.6rem;
  }
  
  .subtitle-line2 {
    font-size: 1.2rem;
  }
  
  .cta-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
  }
}

@media (max-width: 400px) {
  .mobile-logo {
    height: 30vh;
  }
  
  .hero-content {
    height: 70vh;
  }
  
  .cemss-title {
    font-size: 3rem;
  }
  
  .subtitle-line1 {
    font-size: 1.4rem;
  }
  
  .subtitle-line2 {
    font-size: 1.1rem;
  }
  
  .cta-btn {
    padding: 10px 25px;
    font-size: 1rem;
  }
}
/* Estilos para el footer CEMSS */
.footer-container {
  background-color: #2c3e50;
  color: #fff;
  padding: 50px 20px 20px;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-section {
  margin-bottom: 20px;
}

.footer-section h3 {
  color: #3498db;
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 50px;
  height: 2px;
  background: #3498db;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 100%;
  height: auto;
}

/* Estilos específicos para logo y redes sociales */
.footer-logo {
  margin-bottom: 25px;
}

.footer-logo img {
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1); /* Hace el logo blanco */
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.social-links a {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links i {
  width: 20px;
  text-align: center;
  color: #3498db;
  font-size: 1.1rem;
}

.social-links a:hover {
  color: #3498db;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.footer-links a:hover,
.social-links a:hover {
  color: #3498db;
  padding-left: 5px;
}

.footer-links i {
  color: #3498db;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link i {
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.legal-links a:hover {
  color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-section {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-section h3 {
    font-size: 1.2rem;
  }
  
  .legal-links {
    flex-direction: column;
    gap: 8px;
  }
}
/*--seccion de como formar parte--*/
.how-to-join {
  padding: 80px 20px;
  background-color: var(--light-bg);
}

.join-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 50px;
  align-items: flex-start; /* Cambiado de center a flex-start para mejor alineación */
}

.text-column {
  flex: 1;
  min-width: 50%;
}

.image-column {
  flex: 1;
  min-width: 40%;
  position: sticky;
  top: 20px; /* Para que la imagen siga al hacer scroll */
}

.join-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  object-fit: cover;
  max-height: 500px; /* Controla la altura máxima de la imagen */
}

.how-to-join h2 {
  color: var(--secondary-color);
  margin-bottom: 30px;
  text-align: left;
  font-size: 2rem; /* Tamaño más grande para el título */
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.step {
  display: flex;
  text-align: left;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  background-color: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 3px; /* Mejor alineación vertical */
}

.step-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.step-content p {
  color: #555;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .join-container {
    flex-direction: column;
  }
  
  .text-column, .image-column {
    min-width: 100%;
  }
  
  .image-column {
    order: -1;
    margin-bottom: 30px;
    position: static; /* Quita el sticky en móvil */
  }
  
  .how-to-join h2 {
    font-size: 1.8rem;
    text-align: center;
  }
}
/* Sección de cualidades */
.qualities-box-2 {
  width: 100%;
  min-height: auto;
  position: relative;
  isolation: isolate;
  padding: 40px 20px;
}

.qualities-box-2::before {
  content: "";
  background-image: url(Fondo_Aula.png);
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  filter: brightness(40%); /* Más oscuro para mejor contraste */
  z-index: -2;
}

.qualities-box-2::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  animation: gradientMove 8s ease infinite;
}

.qualities-section {
  padding: 40px 0;
}

.qualities-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: white;
  font-size: 2.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.qualities-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.quality-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 30px;
  margin-bottom: 30px;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Escalonado tipo "canela en rama" */
.quality-card:nth-child(1)  { margin-left: 0px; }
.quality-card:nth-child(2)  { margin-left: 80px; }
.quality-card:nth-child(3)  { margin-left: 160px; }
.quality-card:nth-child(4)  { margin-left: 240px; }
.quality-card:nth-child(5)  { margin-left: 320px; }
.quality-card:nth-child(6)  { margin-left: 400px; }

.quality-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.quality-card h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 12px;
  font-weight: 600;
}

.quality-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: white;
}

.quality-card p {
  color: white;
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

/* Estilo para subtítulos dentro de las tarjetas */
.quality-card h4 {
  color: white;
  font-size: 1.2rem;
  margin: 20px 0 10px;
  position: relative;
  padding-bottom: 8px;
}

.quality-card h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 768px) {
  .qualities-grid {
    align-items: center;
  }
  
  .quality-card {
    margin-left: 0 !important;
    width: 100%;
    padding: 25px 20px;
  }
  
  .quality-card h3 {
    font-size: 1.3rem;
  }
  
  .quality-card p {
    font-size: 1rem;
  }
}
/* ===== SECCIÓN BECAS Y COSTOS ===== */
.becas-section {
  padding: 60px 0;
  margin: 0px 0;
  background-color: rgba(248, 249, 250, 0.463);
  backdrop-filter: blur(5px);
  position: relative;
}

.becas-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.becas-section h2 {
  text-align: center;
  color: #0d486e;
  margin-bottom: 40px;
  font-size: 2.5rem;
  font-weight: 700;
}

.becas-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.beca-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  flex: 1;
  min-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beca-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.beca-card h3 {
  color: #0d486e;
  border-bottom: 2px solid #0d486e;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.beca-card ul {
  list-style-type: none;
  padding: 0;
}

.beca-card li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.5;
}

.beca-card i {
  position: absolute;
  left: 0;
  color: #0d486e;
}

/* Tarjeta especial con fondo azul */
.beca-card.blue-card {
  background: #0d486e;
  color: white;
}

.beca-card.blue-card h3 {
  color: white;
  border-bottom-color: white;
}

.beca-card.blue-card i,
.beca-card.blue-card strong {
  color: white;
}

/* Estilos específicos para el icono de información */
.info-message i.fa-info-circle {
  font-size: 1.2rem;
  color: #0d486e; 
  margin-right: 10px; 
  vertical-align: middle; 
  position: static; 
  display: inline; 
}

/* Contenedor del mensaje informativo */
.info-message {
  background: #f0f7ff;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #0d486e;
  margin-top: 20px;
  display: flex; 
  align-items: center; 
}

.info-message p {
  margin: 0;
  font-style: italic;
  color: #0d486e;
  display: inline-flex; 
  align-items: center; 
}

/* Mensaje informativo */
.info-message {
  background: #f0f7ff;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #0d486e;
  margin-top: 20px;
}

.info-message p {
  margin: 0;
  font-style: italic;
  color: #0d486e;
  display: flex;
  align-items: center;
}

.info-message i {
  margin-right: 10px;
  color: #0d486e;
}

/* Mensaje de costos en calendario */
.costos-mensaje {
  text-align: center;
  margin-bottom: 30px;
  background: rgba(240, 247, 255, 0.9);
  padding: 20px;
  border-radius: 8px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(3px);
}

.costos-mensaje h3 {
  color: #0d486e;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.costos-mensaje p {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

/* Estilo base */
.quarters-section {
  text-align: center;
  padding: 100px 20px;
  background: #f8fafc77;
  position: relative;
  overflow: hidden;
  z-index: -1;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  color: var(--secondary-color);
  margin-bottom: 70px;
  position: relative;
  font-weight: 700;
}

.section-title span {
  color: var(--primary-color);
  position: relative;
}

/* Contenedor principal */
/* CONTENEDOR PRINCIPAL ACTUALIZADO */
.quarters-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  min-height: 400px;
  width: 100%;
  gap: 20px;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* Item de cuatrimestre - ACTUALIZADO */
.quarter-item {
  width: 320px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.quarter-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* POSICIONES ABSOLUTAS PARA ESCRITORIO */
.quarter-item.left {
  position: absolute;
  left: 0;
  transform: translateX(0) scale(0.9);
  z-index: 1;
}

.quarter-item.center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(1);
  z-index: 3;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.quarter-item.right {
  position: absolute;
  right: 0;
  transform: translateX(0) scale(0.9);
  z-index: 1;
}

/* Header con forma especial */
.quarter-header {
  padding: 30px 25px;
  position: relative;
  overflow: hidden;
  height: 180px;
}

.quarter-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
  z-index: -1;
}

.quarter-item.current .quarter-shape {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.quarter-item.closed .quarter-shape {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.quarter-item.upcoming .quarter-shape {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
}

.quarter-header h3 {
  font-size: 1.8rem;
  line-height: 1.3;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin: 0;
}

.quarter-item.current .quarter-header h3 {
  color: white;
}

/* Contenido */
.quarter-content {
  padding: 30px 25px;
  text-align: center;
  z-index: -1;
}

.quarter-dates {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.quarter-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.status-icon {
  font-size: 1.3rem;
}

.quarter-item.current .quarter-status {
  color: var(--primary-color);
  font-weight: 600;
}

.quarter-item.closed .quarter-status {
  color: #e53935;
}

.quarter-item.upcoming .quarter-status {
  color: #fb8c00;
}

/* Botón */
.quarter-btn {
  padding: 14px 35px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quarter-btn:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(41, 128, 185, 0.4);
}

.quarter-btn::after {
  content: '→';
  transition: transform 0.3s ease;
}

.quarter-btn:hover::after {
  transform: translateX(3px);
}

/* Animaciones */
.quarter-item {
  transition: all 0.5s ease-in-out;
  opacity: 0;
  transform: translateY(20px);
}

.quarter-item.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive para móviles */
@media (max-width: 968px) {
  .quarters-container {
    flex-direction: column;
    align-items: center;
    min-height: auto;
    gap: 30px;
  }
  
  .quarter-item {
    position: static !important;
    transform: none !important;
    margin-bottom: 0;
    width: 100%;
    max-width: 400px;
    opacity: 1;
  }
  
  .quarter-item.center {
    order: -1;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
  }
  
  .quarter-header {
    height: 160px;
    padding: 25px 20px;
  }
  
  .quarter-header h3 {
    font-size: 1.6rem;
  }
}

/* Asegurar que el contenedor tenga suficiente espacio */
.quarters-section {
  padding: 80px 20px;
}

@media (max-width: 768px) {
  .quarters-section {
    padding: 60px 20px;
  }
}

/* Contenido */
.quarter-content {
  padding: 30px 25px;
  text-align: center;
  z-index: -1;
}

.quarter-dates {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.quarter-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.status-icon {
  font-size: 1.3rem;
}

.quarter-item.current .quarter-status {
  color: var(--primary-color);
  font-weight: 600;
}

.quarter-item.closed .quarter-status {
  color: #e53935;
}

.quarter-item.upcoming .quarter-status {
  color: #fb8c00;
}

/* Botón */
.quarter-btn {
  padding: 14px 35px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quarter-btn:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(41, 128, 185, 0.4);
}

.quarter-btn::after {
  content: '→';
  transition: transform 0.3s ease;
}

.quarter-btn:hover::after {
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 1024px) {
  .quarter-item {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
  }
  
  .quarter-item {
    width: 100%;
    max-width: 400px;
  }
  
  .quarter-header {
    height: 160px;
    padding: 25px 20px;
  }
  
  .quarter-header h3 {
    font-size: 1.6rem;
  }
}
/* Sección contacto */
.contact-info {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Estilos para la nueva sección "Conócenos" */
/* Estructura base */
.about-section {
  padding: 120px 20px;
  position: relative;
  overflow: hidden;
  z-index: -1;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Encabezado */
.about-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.3rem;
  color: #555;
  font-style: italic;
}

/* Grid de contenido */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* Texto y características */
.about-content {
  position: relative;
}

.lead-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 40px;
  position: relative;
  padding-left: 30px;
  border-left: 3px solid var(--primary-color);
}

.features-box {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.features-title {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.features-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary-color);
}

.features-list {
  list-style: none;
  padding: 0;
}

.feature-item {
  margin-bottom: 20px;
  padding-left: 40px;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.6;
}

.feature-icon {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.5rem;
}

/* Imagen */
.about-image {
  position: relative;
}

.image-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
  height: 600px;
}

.about-image:hover .image-frame {
  transform: rotate(0) scale(1.02);
}

.featured-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(52,152,219,0.2) 0%, rgba(41,128,185,0.1) 100%);
  z-index: 1;
}

/* Botón CTA */
.cta-container {
  text-align: center;
  margin-top: 60px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  padding: 16px 40px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(52,152,219,0.3);
}

.cta-button:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(41,128,185,0.4);
}

.arrow-icon {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.cta-button:hover .arrow-icon {
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1024px) {
  .about-grid {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 80px 20px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
    margin-bottom: 40px;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .features-box {
    padding: 20px;
  }
  
  .feature-item {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 14px 30px;
  }
}

.know-more-btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  transition: var(--transition);
}

.know-more-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

/* ===== ESTILOS PARA NO-SCROLL ===== */
.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* ===== MEDIA QUERIES PARA RESPONSIVIDAD ===== */
@media (max-width: 768px) {
  /* Navbar mobile */
  .mobile-menu-btn {
    display: flex;
  }

  .nav-buttons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--secondary-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    z-index: 1000;
    padding: 0;
    margin: 0;
    display: flex !important;
  }

  .nav-buttons.active {
    transform: translateX(0);
  }

  .nav-btn {
    width: 80%;
    padding: 15px;
    font-size: 1.1rem;
    margin: 5px 0;
  }

  .dropdown {
    width: 80%;
    text-align: center;
  }

  .dropdown-menu {
    position: relative;
    width: 100%;
    display: none;
    background-color: #34495e;
    box-shadow: none;
    animation: fadeIn 0.3s;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-toggle::after {
    content: " ▼";
    font-size: 0.8em;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Hero section */
  .hero {
    height: 60vh;
    margin-top: 60px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  /* Steps section */
  .steps-container {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    max-width: 100%;
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    margin: 0 auto 15px;
  }
  
  /* About us section */
  .about-us-content {
    flex-direction: column;
  }
  
  .about-us-text, .about-us-image {
    flex: none;
    width: 100%;
  }
  
  .about-us-image {
    order: -1;
    margin-bottom: 30px;
  }
  
  /* Quarters section */
  .quarters-grid {
    grid-template-columns: 1fr;
  }
  
  /* Qualities section */
  .qualities-grid {
    grid-template-columns: 1fr;
  }
  
  /* General section padding */
  .section, .how-to-join, .qualities-section, 
  .quarters-section, .about-us-section {
    padding: 50px 20px;
  }

  /* Logo */
  .logo-text {
    font-size: 1.5rem;
  }
  
  .logo-cemss {
    width: 40px;
    height: 40px;
  }
  
  /* Menú móvil */
  .desktop-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .qualities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-container {
    flex-wrap: wrap;
  }
  
  .step {
    min-width: 45%;
  }
  
  /* Ocultar menú móvil en tablet */
  .mobile-menu-btn,
  .mobile-menu {
    display: none !important;
  }
}

/* Mobile pequeño */
@media (max-width: 480px) {
  .hero {
    height: 50vh;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .cta-btn, .quarter-btn, .know-more-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .logo-cemss {
    width: 35px;
    height: 35px;
  }
  
  .mobile-menu {
    top: 70px;
    right: 10px;
  }
}

/* Mejora para hover en dispositivos táctiles */
@media (hover: none) {
  .quality-card:hover, .quarter-card:hover, .nav-btn:hover, 
  .cta-btn:hover, .quarter-btn:hover, .know-more-btn:hover,
  .mobile-menu-item:hover {
    transform: none !important;
  }
}

/* Asegurar que las imágenes sean responsivas */
img {
  max-width: 100%;
  height: auto;
}

/* Mejorar la navegación táctil */
a, button {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

.how-to-join, 
.becas-section, 
.quarters-section, 
.about-section {
  padding: 60px 20px;
  background: rgba(248, 249, 250, 0.377);
  backdrop-filter: blur(5px);
}

/* Aplica la fuente Georgia a todos los títulos */
h1, h2, h3, h4, h5, h6,
.cemss-title, .subtitle-line1, .subtitle-line2,
.section-title, .features-title, .quarter-header h3,
.beca-card h3, .quality-card h3, .step-content h3,
.features-title, .about-header h2 {
  font-family: var(--title-font);
}

/* Aplica la fuente Havana al texto normal */
body, p, li, .step-content p, .quality-card p,
.beca-card li, .lead-text, .feature-item,
.quarter-dates, .quarter-status, .info-message p,
.costos-mensaje p {
  font-family: var(--text-font);
}

/* Agregar estas reglas CSS al archivo existente */

/* Transiciones para las tarjetas */
.quarter-item {
  transition: all 0.5s ease-in-out;
  opacity: 0;
  transform: translateY(20px);
}

.quarter-item.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Posiciones para las tarjetas */
.quarters-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  min-height: 400px;
}

.quarter-item {
  position: absolute;
  width: 320px;
}

.quarter-item.left {
  left: 0;
  transform: translateX(0) scale(0.9);
  z-index: 1;
}

.quarter-item.center {
  left: 50%;
  transform: translateX(-50%) scale(1);
  z-index: 3;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.quarter-item.right {
  right: 0;
  transform: translateX(0) scale(0.9);
  z-index: 1;
}

/* Estados de color */
.quarter-item.current .quarter-shape {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.quarter-item.closed .quarter-shape {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.quarter-item.upcoming .quarter-shape {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
}

/* Colores de texto para estados */
.quarter-item.current .quarter-status {
  color: var(--primary-color);
  font-weight: 600;
}

.quarter-item.closed .quarter-status {
  color: #e53935;
}

.quarter-item.upcoming .quarter-status {
  color: #fb8c00;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .quarters-container {
    flex-direction: column;
    align-items: center;
    min-height: auto;
  }
  
  .quarter-item {
    position: static;
    transform: none !important;
    margin-bottom: 30px;
    width: 100%;
    max-width: 400px;
  }
  
  .quarter-item.center {
    order: -1;
    margin: 30px 0;
  }
}