/* Estilos XBOT Robotics */

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
  --light-bg: #f8fafc;
  --white: #fefefe;
  --card-white: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-radius-sm: 8px;
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Navegacion */
.modern-nav {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  padding: 1rem 0;
}

.modern-nav.scrolled {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-hover);
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  width: fit-content;
  max-width: calc(100% - 2rem);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 2rem;
  z-index: 1030;
  margin: 0 auto;
  animation: floatIn 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modern-nav.scrolled .container {
  width: auto;
  max-width: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.modern-nav.scrolled .navbar-nav {
  margin: 0;
  align-items: center;
  transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.navbar-brand img {
  transition: var(--transition);
  border-radius: var(--border-radius-sm);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--white);
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.2);
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: var(--white);
}

.navbar-nav .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Seccion Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-gradient);
  opacity: 0.7;
  z-index: -1;
}

.hero-content {
  color: var(--white);
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 500px;
  line-height: 1.6;
}

.hero-buttons {
  margin-top: 2rem;
}

.btn {
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: var(--white);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

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

.hero-stats {
  margin-top: 4rem;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  opacity: 0.8;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.floating-robot {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.floating-robot img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  border-radius: var(--border-radius);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition);
  animation: bounce 2s infinite;
}

.scroll-indicator:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Enlaces Rapidos */
.quick-link-card {
  text-decoration: none;
  color: inherit;
  text-align: center;
  padding: 2rem 1rem;
  background: var(--card-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  display: block;
  height: 100%;
  border: 1px solid rgba(102, 126, 234, 0.06);
}

.quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  color: inherit;
  border-color: rgba(102, 126, 234, 0.12);
}

.quick-link-card .card-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 auto 1rem;
}

.quick-link-card h5 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* Seccion Nosotros */
.about-content .lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.about-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.image-wrapper {
  position: relative;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 4s ease-in-out infinite;
}

.circle-1 {
  width: 100px;
  height: 100px;
  background: var(--primary-gradient);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.circle-2 {
  width: 60px;
  height: 60px;
  background: var(--secondary-gradient);
  top: 60%;
  right: 15%;
  animation-delay: 1s;
}

.circle-3 {
  width: 80px;
  height: 80px;
  background: var(--accent-gradient);
  bottom: 20%;
  left: 20%;
  animation-delay: 2s;
}

/* Tarjetas Cursos */
.course-card {
  height: 100%;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: var(--card-white);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(102, 126, 234, 0.08);
  transition: var(--transition);
}

.course-image {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
  border-radius: var(--border-radius-sm);
}

.course-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(102, 126, 234, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.overlay-content {
  text-align: center;
  color: var(--white);
  transform: translateY(20px);
  transition: var(--transition);
}

.overlay-content i {
  margin-bottom: 0.5rem;
}

.overlay-content p {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.course-card:hover .course-overlay {
  opacity: 1;
}

.course-card:hover .overlay-content {
  transform: translateY(0);
}

.course-card:hover .course-image img {
  transform: scale(1.05);
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(102, 126, 234, 0.15);
}

.course-content {
  padding: 2rem;
  flex: 0 0 auto;
}

.course-content h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.course-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.course-features {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.feature-tag {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Seccion Competencias */
.competition-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.competition-image img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: contain;
  box-shadow: var(--shadow-soft);
  border-radius: var(--border-radius);
}

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

.section-light {
  background: var(--light-bg);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 1rem auto;
  border-radius: 2px;
}

.section-title.text-start::after {
  margin: 1rem 0;
}

/* Estilos Tarjetas */
.modern-card {
  background: var(--card-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

/* Clases Utilidades */
.gradient-bg {
  background: var(--primary-gradient);
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-light {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 30%, #e8f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Diseno Responsivo */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }

  .container {
    max-width: 100% !important;
    overflow-x: hidden;
  }

  .row {
    margin-left: -15px;
    margin-right: -15px;
    overflow-x: hidden;
  }

  .hero-section {
    padding-top: 120px;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    justify-content: center;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .quick-link-card {
    padding: 1.5rem 1rem;
  }
  
  .quick-link-card .card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }

  .container {
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .hero-section {
    padding-top: 100px;
  }

  .navbar-nav .nav-link {
    margin: 0.2rem 0;
  }
  
  .hero-stats {
    margin-top: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .course-image {
    height: 200px;
  }
}

/* Animaciones Carga */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Seccion Decalogo */
.decalogo-carousel {
  position: relative;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.carousel-track {
  position: relative;
}

.decalogo-slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: all 0.6s ease-in-out;
}

.decalogo-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.decalogo-card {
  background: var(--card-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.decalogo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.decalogo-image {
  text-align: center;
  margin-bottom: 1.5rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  min-height: auto;
}

.decalogo-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
}

.decalogo-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.decalogo-content h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.decalogo-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Indicadores Carousel Modernos */
.modern-carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.simple-indicators {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.indicator-dot {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
}

.indicator-dot.active {
  background: var(--primary-gradient);
  transform: scale(1.1);
}

.dot-number {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.indicator-dot.active .dot-number {
  color: var(--white);
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 4s linear;
  opacity: 0;
}

.indicator-dot.active .progress-bar {
  opacity: 1;
  transform: translateX(0);
}

.indicator-dot:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-soft);
}

.indicator-dot:not(.active):hover {
  background: rgba(102, 126, 234, 0.2);
}

/* Pausa Auto-carousel al hover */
.decalogo-carousel:hover .carousel-container {
  animation-play-state: paused;
}

/* Animacion Slide */
@keyframes slideChange {
  0% { opacity: 0; transform: translateX(30px); }
  100% { opacity: 1; transform: translateX(0); }
}

.decalogo-slide.slide-in {
  animation: slideChange 0.6s ease-out;
}

/* Seccion Contacto */
.contact-logo {
  max-width: 200px;
  height: auto;
  filter: brightness(0) invert(1);
  border-radius: var(--border-radius-sm);
}

.contact-title {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.modern-contact-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.form-control {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
  border-radius: var(--border-radius-sm);
  padding: 1rem 1rem 1rem 3rem;
  font-size: 1rem;
  transition: var(--transition);
  width: 100%;
}

.form-control:focus {
  background: var(--card-white);
  border-color: #667eea;
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.form-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.form-control:focus + i {
  color: #667eea;
}

/* Pie Pagina */
.footer {
  background: var(--dark-gradient);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-logo {
  max-width: 150px;
  height: auto;
  border-radius: var(--border-radius-sm);
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-title {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.contact-info {
  list-style: none;
  padding: 0;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
  margin-right: 0.75rem;
  margin-top: 0.2rem;
  color: #667eea;
  font-size: 1.1rem;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-gradient);
  transform: translateY(-2px);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.copyright, .made-with {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-size: 0.9rem;
}

/* Boton Volver Arriba */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Estilos Modal */
.modal-content {
  border-radius: var(--border-radius);
  border: none;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.modal-header {
  background: var(--primary-gradient);
  color: var(--white);
  border: none;
  padding: 2rem;
}

.modal-header .modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
  font-size: 1.5rem;
  opacity: 0.8;
  transition: var(--transition);
}

.modal-header .btn-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.modal-body {
  padding: 2.5rem;
  background: var(--card-white);
}

.modal-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.modal-features {
  background: var(--light-bg);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  margin: 2rem 0;
}

.modal-features h6 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.feature-list i {
  color: #667eea;
  margin-right: 0.75rem;
  font-size: 1rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  min-width: 150px;
  padding: 0.75rem 1.5rem;
}

.btn-outline-primary {
  border: 2px solid #667eea;
  color: #667eea;
  background: transparent;
}

.btn-outline-primary:hover {
  background: #667eea;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* Estilos responsivos adicionales para secciones nuevas */
@media (max-width: 768px) {
  .contact-title {
    font-size: 2rem;
  }
  
  .modern-contact-form {
    padding: 1.5rem;
  }
  
  .simple-indicators {
    gap: 1.5rem;
  }
  
  .indicator-dot {
    width: 40px;
    height: 40px;
  }
  
  .dot-number {
    font-size: 1rem;
  }
  
  .decalogo-card {
    padding: 1.5rem;
    min-height: 350px;
  }
  
  .decalogo-image {
    min-height: 180px;
  }
  
  .course-image {
    min-height: 200px;
  }
  
  .about-image {
    min-height: 300px;
  }
  
  .competition-image {
    min-height: 280px;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Estilos Precarga */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loader {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.logo-spinner {
  width: 120px;
  height: 120px;
  position: relative;
  animation: logoSpin 2s linear infinite;
}

.logo-spinner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@keyframes logoSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.loading-text {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1rem;
  opacity: 0.9;
  animation: pulse 2s ease-in-out infinite;
}

.loading-dots {
  color: white;
  font-size: 2rem;
  margin-left: 0.5rem;
  animation: dots 1.5s steps(3, end) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes dots {
  0%, 20% {
    content: '';
  }
  40% {
    content: '.';
  }
  60% {
    content: '..';
  }
  80%, 100% {
    content: '...';
  }
}

#preloader .progress-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1rem;
}

#preloader .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 2px;
  width: 0%;
  animation: progressFill 3s ease-out forwards;
}

@keyframes progressFill {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* Seccion Titulo Pagina */
.page-title-section {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 30%, #e8f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Especifico Pagina Nosotros */
.about-section {
  padding: 80px 0;
}

.content-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.content-text p {
  margin-bottom: 1.5rem;
}

.image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* Tarjetas Estudiantes/Testimonios */
.testimonial-card {
  background: var(--card-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  height: 100%;
  text-align: center;
  border: 1px solid rgba(102, 126, 234, 0.08);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(102, 126, 234, 0.15);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  border: 4px solid rgba(102, 126, 234, 0.1);
}

.testimonial-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.testimonial-text {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

.students-section {
  padding: 80px 0;
}

/* Estilos secciones adicionales */
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

@media (max-width: 576px) {
  .footer {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-section {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .contact-info li {
    justify-content: center;
    text-align: center;
  }
  
  .course-image {
    min-height: 180px;
  }
  
  .decalogo-card {
    min-height: 320px;
  }
  
  .decalogo-image {
    min-height: 150px;
    padding: 0.5rem;
  }
  
  .about-image {
    min-height: 250px;
  }
  
  .competition-image {
    min-height: 220px;
  }
  
  .simple-indicators {
    gap: 1rem;
  }
  
  .indicator-dot {
    width: 35px;
    height: 35px;
  }
  
  .dot-number {
    font-size: 0.9rem;
  }
}