/* 
 * Santo Tomás Moro Institute - Estilos rediseñados
 * Basado en el estilo de la landing page de Neuroeducación
 */

:root {
  /* Colores principales */
  --primary: #1a3a5f;
  --primary-light: #4a7c9b;
  --primary-dark: #0f2942;
  --accent: #c9a227;
  --accent-light: #e9c46a;
  --accent-dark: #a78736;
  
  /* Colores secundarios */
  --secondary-green: #2c6e49;
  --secondary-coral: #e76f51;
  --secondary-turquoise: #2a9d8f;
  --secondary-lavender: #7952b3;
  
  /* Grises */
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  
  /* Espaciado */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Bordes */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--gray-800);
  background-color: var(--gray-100);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style-position: inside;
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.mt-50 {
  margin-top: 3.125rem;
}

.bg-light {
  background-color: var(--gray-100);
}

.bg-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
}

.light {
  color: white;
}

.required {
  color: #dc3545;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo {
  width: 180px;
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: var(--primary);
  padding: 1rem 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar-logo {
  display: block;
}

.logo-img {
  height: 50px;
  transition: all 0.3s ease;
}

.navbar.scrolled .logo-img {
  height: 40px;
}

.navbar-menu {
  display: flex;
  align-items: center;
}

.navbar-link {
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent);
  transition: all 0.3s ease;
}

.navbar-link:hover, .navbar-link.active {
  color: var(--accent-light);
}

.navbar-link:hover:after, .navbar-link.active:after {
  width: 80%;
  left: 10%;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
  top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
  bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 50%;
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 50%;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--primary);
  z-index: 1000;
  transition: all 0.5s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-container {
  padding: 2rem;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-logo {
  height: 40px;
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.mobile-menu-link {
  color: white;
  font-size: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-menu-link:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

.mobile-language-options {
  display: flex;
  margin-top: 1rem;
}

.mobile-language-option {
  display: flex;
  align-items: center;
  color: white;
  opacity: 0.7;
  margin-right: 1.5rem;
  transition: all 0.3s ease;
}

.mobile-language-option.active, .mobile-language-option:hover {
  opacity: 1;
}

.mobile-language-option img {
  margin-right: 0.5rem;
}

.mobile-menu-social {
  display: flex;
  margin-top: 2rem;
}

.mobile-menu-social .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.mobile-menu-social .social-icon:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
}

/* Language Selector */
.language-selector {
  position: relative;
  margin-left: 1.5rem;
}

.language-selector-toggle {
  display: flex;
  align-items: center;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.language-selector-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.language-flag {
  margin-right: 0.5rem;
}

.language-selector-toggle i {
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.language-selector-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  min-width: 150px;
}

.language-selector:hover .language-selector-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-option:hover {
  background-color: var(--gray-100);
}

.language-text {
  margin-left: 0.5rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url('https://rinsainc.com/institute/img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(26, 58, 95, 0.8), rgba(26, 58, 95, 0.9));
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-title .text-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

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

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 1;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid white;
  border-radius: 20px;
  position: relative;
  margin-bottom: 0.5rem;
}

.wheel {
  width: 6px;
  height: 6px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

.arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid white;
  border-right: 2px solid white;
  transform: rotate(45deg);
  margin: -5px;
  animation: arrow 1.5s infinite;
}

.arrow span:nth-child(2) {
  animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

@keyframes arrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-5px, -5px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(5px, 5px);
  }
}

/* Botones */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  border-color: white;
  color: white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-link span {
  margin-right: 0.5rem;
}

.btn-link:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Secciones */
.section {
  padding: 4rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-divider {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.section-divider span {
  width: 80px;
  height: 3px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-700);
}

.section-header.light .section-title,
.section-header.light .section-description {
  color: white;
}

/* Contenido en filas y columnas */
.content-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
  align-items: center;
  margin-bottom: 4rem;
}

.content-col {
  flex: 1 1 400px;
  padding: 0 1rem;
  margin-bottom: 2rem;
}

.content-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.content-text {
  font-size: 1.125rem;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

.image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.rounded-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  transition: all 0.5s ease;
}

.image-container:hover .rounded-image {
  transform: scale(1.05);
}

.image-decoration {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  border-radius: var(--radius-lg);
  background-color: var(--accent);
  opacity: 0.2;
  z-index: -1;
}

/* Tarjetas */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
}

.flip-card {
  perspective: 1000px;
  width: calc(50% - 1rem);
  height: 300px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.flip-card-front {
  background-color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.flip-card-back {
  background-color: var(--primary);
  color: white;
  transform: rotateY(180deg);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.flip-card-back.bg-secondary-green {
  background-color: var(--secondary-green);
}

.card-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-hint {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.card-text {
  font-size: 1.125rem;
  text-align: center;
  line-height: 1.6;
}

/* Valores Carousel */
.valores-section {
  margin-bottom: 1rem; /* reducido aún más */
}

.valores-carousel {
  overflow: hidden;
  padding: 1rem 0; /* menos espacio vertical */
}

.valores-track {
  display: flex;
  animation: scroll-x 30s linear infinite;
}

.valores-track:hover {
  animation-play-state: paused;
}

.valor-item {
  flex: 0 0 280px;
  margin: 0 1rem;
  padding: 1.5rem;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.valor-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.valor-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: center;
}

.valor-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.valor-text {
  font-size: 0.875rem;
  color: var(--gray-700);
  text-align: center;
}

@keyframes scroll-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-280px * 5 - 2rem * 10)); }
}

/* Modelo Educativo */
.modelo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

#modelo-educativo.section {
  padding-top: 3rem; /* antes era 6rem, ahora más compacto */
}

.modelo-item {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.modelo-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modelo-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: center;
}

.modelo-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.modelo-text {
  font-size: 0.875rem;
  color: var(--gray-700);
  text-align: center;
}

/* Timeline */
.timeline-section {
  margin-top: 4rem;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--gray-300);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -12px;
  background-color: var(--accent);
  border: 4px solid var(--primary);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item.right::after {
  left: -12px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.timeline-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: center;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.timeline-text {
  font-size: 0.875rem;
  color: var(--gray-700);
  text-align: center;
}

/* Programas */
.program-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.program-filter-btn {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.program-filter-btn:hover, .program-filter-btn.active {
  background-color: var(--primary);
  color: white;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.program-item {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.program-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.program-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.program-item:hover .program-image img {
  transform: scale(1.1);
}

.program-badge {
  position: absolute;
  top: 1rem;
  left: 0;
  background-color: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.program-content {
  padding: 1.5rem;
}

.program-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.program-description {
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  min-height: 60px;
}

.program-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.program-detail {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.program-detail i {
  margin-right: 0.5rem;
  color: var(--accent);
}

.program-button {
  display: block;
  text-align: center;
  background-color: var(--primary);
  color: white;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.3s ease;
}

.program-button:hover {
  background-color: var(--accent);
  color: var(--primary-dark);
}

/* Misiones Académicas */
.misiones-slider {
  margin-bottom: 4rem;
}

.swiper-container {
  width: 100%;
  padding-bottom: 3rem;
}

.mision-card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mision-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.mision-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.mision-card:hover .mision-image img {
  transform: scale(1.1);
}

.mision-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent);
  color: white;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 60px;
}

.mision-date .month {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}

.mision-date .year {
  display: block;
  font-size: 0.875rem;
}

.mision-content {
  padding: 1.5rem;
}

.mision-location {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.mision-location i {
  margin-right: 0.5rem;
  color: var(--accent);
}

.mision-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.mision-description {
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

.mision-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.mision-detail {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.mision-detail i {
  margin-right: 0.5rem;
  color: var(--accent);
}

.mision-button {
  display: block;
  text-align: center;
  background-color: var(--primary);
  color: white;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.3s ease;
}

.mision-button:hover {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--primary);
  background-color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 16px; /* reduce tamaño de la flecha */
  font-weight: 600;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: var(--primary);
  color: white;
}

.swiper-pagination-bullet {
  background: white;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--accent);
  opacity: 1;
}

/* Testimonios */
.testimonials-section {
  margin-top: 4rem;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
  position: relative;
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  left: -1rem;
  top: -1.5rem;
  font-family: 'Montserrat', sans-serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
  border: 3px solid var(--accent);
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.author-role {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Alianzas */
.tabs-container {
  margin-bottom: 4rem;
}

.tabs-header {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--gray-300);
}

.tab-button {
  background-color: transparent;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.tab-button::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent);
  transition: all 0.3s ease;
}

.tab-button:hover, .tab-button.active {
  color: var(--primary);
}

.tab-button.active::after {
  width: 100%;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.alianzas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.alianza-item {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.alianza-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.alianza-item img {
  max-width: 100%;
  max-height: 80px;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.alianza-item:hover img {
  filter: grayscale(0%);
}

/* Beneficios */
.benefits-section {
  margin-top: 4rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-item {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.benefit-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.benefit-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.benefit-text {
  font-size: 0.875rem;
  color: var(--gray-700);
}

/* Becas */
.becas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.beca-card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.beca-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.beca-header {
  background-color: var(--primary);
  color: white;
  padding: 2rem;
  text-align: center;
}

.beca-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.beca-title {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 0;
}

.beca-content {
  padding: 1.5rem;
}

.beca-description {
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  text-align: center;
}

.beca-details {
  list-style: none;
  margin-bottom: 1.5rem;
}

.beca-details li {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.beca-details li i {
  color: var(--accent);
  margin-right: 0.5rem;
}

.beca-button {
  display: block;
  text-align: center;
  background-color: var(--primary);
  color: white;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.3s ease;
}

.beca-button:hover {
  background-color: var(--accent);
  color: var(--primary-dark);
}

/* Proceso de Postulación */
.proceso-section {
  margin-top: 4rem;
}

.proceso-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  margin-top: 3rem;
}

.proceso-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gray-300);
  z-index: -1;
}

.proceso-step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.step-content {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.875rem;
  color: var(--gray-700);
}

/* CTA Section */
.cta-section {
  background-color: var(--primary);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  margin-top: 4rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.cta-title {
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

/* Contacto */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-info {
  flex: 1 1 300px;
}

.info-item {
  display: flex;
  margin-bottom: 2rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  margin-right: 1rem;
}

.info-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.info-text {
  font-size: 0.875rem;
  color: var(--gray-700);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--accent);
  transform: translateY(-5px);
}

.contact-form-container {
  flex: 1 1 500px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 58, 95, 0.1);
}

textarea.form-control {
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
}

.form-check-input {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

.form-check-label {
  font-size: 0.875rem;
  color: var(--gray-700);
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  display: none;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Mapa */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.accordion-item {
  border-bottom: 1px solid var(--gray-300);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background-color: var(--gray-100);
}

.accordion-title {
  font-size: 1.125rem;
  margin-bottom: 0;
  flex: 1;
}

.accordion-icon {
  color: var(--primary);
  transition: all 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding-bottom: 1.5rem;
  max-height: 500px;
}

.faq-more {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* Newsletter */
.newsletter-container {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.newsletter-content {
  flex: 1 1 300px;
}

.newsletter-title {
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
}

.newsletter-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
  flex: 1 1 400px;
}

.newsletter-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
}

.newsletter-button {
  background-color: var(--accent);
  color: var(--primary-dark);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-button:hover {
  background-color: var(--accent-light);
}

.newsletter-button span {
  margin-right: 0.5rem;
}

.newsletter-form .form-group {
  display: flex;
  margin-bottom: 1rem;
}

.newsletter-form .form-check {
  color: white;
  font-size: 0.875rem;
}

.newsletter-form .form-check a {
  color: var(--accent-light);
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-top {
  margin-bottom: 3rem;
}

.footer-logo {
  text-align: center;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-title {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent);
}

.footer-about {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social .social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.footer-social .social-icon:hover {
  background-color: var(--accent);
  transform: translateY(-5px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--gray-400);
}

.footer-contact li i {
  color: var(--accent);
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.copyright {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.footer-legal a:hover {
  color: var(--accent);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem; /* cambio clave */
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 98;
}

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25D366;
  opacity: 0.5;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Animaciones */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.25;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Media Queries */
@media (max-width: 992px) {
  .navbar-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .flip-card {
    width: 100%;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item.right {
    left: 0;
  }
  
  .timeline-item::after {
    left: 18px;
  }
  
  .timeline-item.right::after {
    left: 18px;
  }
  
  .proceso-steps::before {
    display: none;
  }
  
  .proceso-step {
    margin-bottom: 2rem;
  }
  
  .newsletter-container {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .content-row {
    flex-direction: column-reverse;
  }
  
  .content-row:nth-child(even) {
    flex-direction: column;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .tab-button {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  .cta-section {
    padding: 2rem;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
  
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .back-to-top {
    bottom: 1rem;
    left: 1rem; /* asegúrate que esté aquí */
    width: 40px;
    height: 40px;
  }
}

.misiones-slider .swiper-container {
  min-height: 100px;
}

#modelo-educativo.section {
  padding-top: 4rem;
}

.btn-outline-light {
  background-color: white;
  border: 2px solid var(--primary); /* borde azul oscuro */
  color: var(--primary);            /* texto azul oscuro */
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}