/* Variables globales */
:root {
  --primary-color: #00f7ff;
  --secondary-color: #ff00d4;
  --background-dark: #0a0a0a;
  --background-light: #f8f9fa;
  --card-bg: #151515;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-dark: #1a1a1a;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Estilos base */
body {
    font-family: 'Orbitron', sans-serif;
  background-color: var(--background-dark);
  color: var(--text-primary);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(0, 247, 255, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 0, 212, 0.03) 0%, transparent 20%);
  pointer-events: none;
  z-index: -1;
}

/* Navbar mejorado */
.navbar {
  background: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  margin-right: 2rem;
}

.brand-icon {
  width: 35px;
  height: 35px;
  color: var(--primary-color);
  filter: drop-shadow(0 0 2px rgba(0, 247, 255, 0.5));
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero con fondo sutil y blur */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  z-index: 1;
  overflow: hidden;
}
.hero-bg-blur {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('arduino-background.png') no-repeat center center/cover;
  filter: blur(8px) brightness(0.7) grayscale(0.2);
  opacity: 0.35;
  z-index: 0;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Sección de focos (Arduino, IA, Robótica) */
.focos-section {
  background: linear-gradient(135deg, #072e4c 0%, #003366 100%);
  padding: 3rem 0 2rem 0;
}
.foco-card {
  background: #0a223a;
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  padding: 1.2rem 0.5rem 0.8rem 0.5rem;
  transition: box-shadow 0.2s;
}
.foco-card:hover {
  box-shadow: 0 6px 24px rgba(0,247,255,0.13);
}
.foco-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,247,255,0.10);
  margin-bottom: 0.7rem;
  border: 3px solid #e0eaff;
  background: #f8f9fa;
}
.foco-label {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* Proyectos solo con íconos y texto */
#proyectos .card {
  background: #fff !important;
  color: #1a1a1a;
  border-radius: 1.5rem;
  border: 1.5px solid #e0eaff;
  box-shadow: 0 4px 24px 0 rgba(0, 247, 255, 0.10), 0 1.5px 8px 0 rgba(0,0,0,0.04);
  margin-bottom: 2rem;
  padding: 2.2rem 1.2rem 1.7rem 1.2rem;
  transition: box-shadow 0.2s, border 0.2s;
}
#proyectos .card:hover {
  box-shadow: 0 8px 32px 0 rgba(0, 247, 255, 0.18), 0 2px 12px 0 rgba(0,0,0,0.08);
  border-color: #00f7ff;
}
#proyectos .card-title {
  color: #00e0ff;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  letter-spacing: 0.5px;
}
#proyectos .card-text {
  color: #222;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
}
@media (max-width: 768px) {
  #proyectos .card {
    padding: 1.3rem 0.7rem 1.1rem 0.7rem;
    border-radius: 1.1rem;
  }
  #proyectos .card-title {
    font-size: 1.1rem;
  }
  #proyectos .card-text {
    font-size: 0.98rem;
  }
}

/* Mobile First */
@media (max-width: 768px) {
  .foco-img {
    width: 54px;
    height: 54px;
  }
  .foco-label {
    font-size: 1rem;
  }
  #proyectos .card {
    padding: 1.2rem 0.5rem;
  }
}

/* Mobile First: Cards y secciones */
.card {
  background: var(--card-bg, #151515);
  border-radius: 1.2rem;
  border: none;
  box-shadow: 0 2px 16px rgba(0,247,255,0.08);
  margin-bottom: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 6px 24px rgba(0,247,255,0.18);
}
.card-title {
  color: var(--primary-color, #00f7ff);
  font-weight: 700;
  font-size: 1.2rem;
}
.card-body svg {
  color: var(--secondary-color, #ff00d4);
  margin-bottom: 0.5rem;
}

/* Proyectos: imágenes grandes y redondeadas */
.ai-visual img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(0,247,255,0.10);
  margin-bottom: 1rem;
}

/* Sección clara para proyectos */
.bg-light {
  background: #f8f9fa !important;
  color: #1a1a1a;
}
.bg-dark, .bg-black {
  background: #0a0a0a !important;
  color: #fff;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Botones grandes y modernos */
.btn-outline-light {
  border: 2px solid var(--primary-color, #00f7ff);
  color: var(--primary-color, #00f7ff);
  background: transparent;
  font-size: 1.1rem;
  border-radius: 2rem;
  padding: 0.75rem 2.5rem;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-light:hover {
  background: var(--primary-color, #00f7ff);
  color: #0a0a0a;
}

/* Responsive: Mobile First */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    padding: 3rem 0 2rem 0;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .card {
    padding: 1rem 0.5rem;
  }
  .ai-visual img {
    border-radius: 0.7rem;
  }
}

/* Cards mejoradas */
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: 0.5s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 247, 255, 0.2);
}

.card:hover::before {
  left: 100%;
}

.card-title {
  color: var(--primary-color);
  font-weight: 700;
}

/* Botones mejorados */
.btn-outline-light {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
}

.btn-outline-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: var(--gradient-primary);
  transition: transform 0.3s ease;
  z-index: -1;
  transform: skewX(-15deg);
}

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

.btn-outline-light:hover::before {
  transform: translateX(50%) skewX(-15deg);
}

/* Sección títulos mejorados */
  .section-title {
    font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
    position: relative;
  width: 100%;
  text-align: center;
  margin-bottom: 3rem;
  }

  .section-title::after {
    content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--gradient-primary);
}

/* Animaciones para las secciones */
section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.animate__fadeInUp {
  opacity: 1;
  transform: translateY(0);
}

/* Mejoras responsive y contraste */
@media (max-width: 768px) {
  .hero-section {
    height: 100vh;
    padding: 2rem 0;
  }

  .hero-section h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    padding: 0 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .card {
    padding: 1.5rem 1rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .course-info {
    padding: 1.5rem;
  }

  .navbar-collapse {
    background: rgba(10, 10, 10, 0.95);
    padding: 1rem;
    border-radius: 0.5rem;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    padding: 15px;
  }

  .masterclass-image {
    height: 250px;
  }

  .masterclass-image svg {
    width: 80px;
    height: 80px;
  }

  section {
    padding: 3rem 0;
  }
}

/* Ajustes de contraste para secciones claras/oscuras */
section.bg-light {
  background-color: var(--background-light) !important;
  color: var(--text-dark);
}

section.bg-light .section-title {
  color: var(--text-dark);
  -webkit-text-fill-color: var(--text-dark);
}

section.bg-light .card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

section.bg-light .card-title {
  color: var(--text-dark);
}

section.bg-light .card-text {
  color: #4a4a4a;
}

/* Mejoras en la navegación móvil */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: 2px solid var(--primary-color);
}

/* Mejoras en las cards */
.card {
  margin-bottom: 2rem;
  border-radius: 1rem;
}

@media (min-width: 768px) {
  .card {
    height: calc(100% - 2rem);
  }
}

/* Mejoras en los botones */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Mejoras en el espaciado de secciones */
section {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
}

/* Mejoras en la lista del curso */
.course-info {
  background: rgba(21, 21, 21, 0.95);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 247, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 100%;
}

.course-info li {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.course-info li:last-child {
  margin-bottom: 0;
}

.course-info li strong {
  font-size: 1.2em;
  margin-bottom: 0.75rem;
}

/* Mejoras en imágenes */
.img-fluid {
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Efectos hover mejorados */
.nav-link {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
}

@media (max-width: 768px) {
  .nav-link {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
}

/* Mejoras en el hero para móviles */
@media (max-width: 576px) {
  .hero-section {
    text-align: left;
    padding: 0 1rem;
  }

  .hero-section h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Animaciones mejoradas para móviles */
@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-5px) scale(1.02);
  }
}

/* Mejoras en el footer */
footer {
  padding: 2rem 0;
}

@media (max-width: 768px) {
  footer {
    text-align: center;
  }
}

/* Mejoras en la accesibilidad */
.btn-outline-light:focus,
.nav-link:focus {
  box-shadow: 0 0 0 3px rgba(0, 247, 255, 0.5);
}

/* Mejoras en el contraste de texto */
  .card-text {
  line-height: 1.6;
}

section.bg-light .section-title::after {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Ajustes de contraste para cards en secciones oscuras */
.card {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Texto en cards oscuras */
.card-body {
  color: var(--text-primary);
}

.card .card-text {
  color: var(--text-secondary);
}

/* Ajustes específicos para secciones claras */
section.bg-light .card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

section.bg-light .card-body {
  color: var(--text-dark);
}

section.bg-light .card-text {
  color: #4a4a4a;
}

section.bg-light .card-title {
  color: var(--text-dark);
}

/* Ajustes para modales con fondo oscuro */
.modal-dialog {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

.modal-content {
  width: 100%;
  margin: auto;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
}

.modal-body {
  text-align: center;
  padding: 2rem;
}

.modal-title {
  color: var(--primary-color);
}

.modal .close {
  color: var(--text-primary);
}

/* Ajustes para listas en cards oscuras */
.card ul li, 
.card ol li {
  color: var(--text-secondary);
}

/* Ajustes para enlaces en cards oscuras */
.card a:not(.btn) {
  color: var(--primary-color);
}

.card a:not(.btn):hover {
  color: var(--secondary-color);
}

/* Ajustes para texto destacado en cards oscuras */
.card strong,
.card b {
  color: var(--text-primary);
}

/* Estilos para los iconos SVG */
.card-icon {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, 
    rgba(0, 247, 255, 0.1) 0%,
    rgba(255, 0, 212, 0.1) 100%
  );
  border-radius: 50%;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0, 247, 255, 0.2);
  box-shadow: 
    0 0 20px rgba(0, 247, 255, 0.2),
    inset 0 0 20px rgba(255, 0, 212, 0.1);
  transition: all 0.3s ease;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  color: var(--primary-color);
  filter: drop-shadow(0 0 5px rgba(0, 247, 255, 0.5));
  transition: all 0.3s ease;
}

/* Efecto hover para los iconos */
.card:hover .card-icon {
  transform: scale(1.05);
  border-color: rgba(0, 247, 255, 0.4);
  box-shadow: 
    0 0 30px rgba(0, 247, 255, 0.3),
    inset 0 0 30px rgba(255, 0, 212, 0.2);
}

.card:hover .card-icon svg {
  color: var(--text-primary);
  filter: drop-shadow(0 0 8px rgba(0, 247, 255, 0.8));
}

/* Ajustes responsive para los iconos */
@media (max-width: 768px) {
  .card-icon {
    width: 80px;
    height: 80px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }
}

/* Estilo para el contenedor de la imagen de masterclass */
.masterclass-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: var(--card-bg);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(0, 247, 255, 0.1);
}

.masterclass-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(0, 247, 255, 0.1) 0%,
    rgba(255, 0, 212, 0.1) 100%
  );
  opacity: 0.5;
}

.masterclass-image svg {
  width: 120px;
  height: 120px;
  color: var(--primary-color);
  filter: drop-shadow(0 0 10px rgba(0, 247, 255, 0.5));
  position: relative;
  z-index: 1;
}

/* Ajuste del contenedor principal */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Ajuste de las columnas */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: -1rem;
  gap: 0;
}

.col-md-4,
.col-md-6 {
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* Ajustes de la sección objetivo */
#objetivo {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(21, 21, 21, 0.95) 100%
  );
}

#objetivo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 247, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 0, 212, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Ajustes del título de sección */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Ajustes responsive */
@media (max-width: 768px) {
  .course-info {
    padding: 1.5rem;
  }

  .course-info li {
    padding: 1rem 1rem 1rem 2.5rem;
  }

  .course-info li::before {
    left: 0.8rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Ajustes del layout de la row */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: -1rem;
  gap: 0;
}

.col-md-6 {
  padding: 1rem;
}

@media (max-width: 768px) {
  .row {
    margin: -0.5rem;
  }

  .col-md-6 {
    padding: 0.5rem;
  }

  .masterclass-image {
    min-height: 250px;
  }

  .masterclass-image svg {
    width: 80px;
    height: 80px;
  }
}

/* Estilos para la imagen AI */
.ai-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(0, 247, 255, 0.2);
}

.ai-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  mix-blend-mode: screen;
  filter: contrast(1.2) brightness(1.1) hue-rotate(180deg);
  transition: all 0.5s ease;
}

.ai-visual:hover img {
  transform: scale(1.05);
  filter: contrast(1.3) brightness(1.2) hue-rotate(200deg);
}

/* Efectos de brillo mejorados */
.ai-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  filter: blur(60px);
  opacity: 0.2;
  border-radius: 50%;
  z-index: 2;
  animation: pulse 4s ease-in-out infinite alternate;
}

.ai-glow-1 {
  top: 20%;
  left: 20%;
  background: var(--primary-color);
  animation-delay: 0s;
}

.ai-glow-2 {
  bottom: 20%;
  right: 20%;
  background: var(--secondary-color);
  animation-delay: 2s;
}

@keyframes pulse {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.5) translate(10px, 10px);
    opacity: 0.3;
  }
}

/* Ajuste responsive */
@media (max-width: 768px) {
  .ai-visual {
    min-height: 300px;
  }
  
  .ai-glow {
    width: 150px;
    height: 150px;
  }
}

/* Estilos para la imagen AI */
.ai-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(0, 247, 255, 0.2);
}

.ai-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg,
      rgba(0, 247, 255, 0.1) 0%,
      rgba(255, 0, 212, 0.1) 100%);
  opacity: 0.5;
  z-index: 1;
}

.ai-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  mix-blend-mode: luminosity;
  filter: contrast(1.2) brightness(0.8);
  transition: all 0.3s ease;
}

.ai-visual:hover img {
  transform: scale(1.05);
  filter: contrast(1.3) brightness(0.9);
}

.ai-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 2;
}

.ai-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--primary-color);
  filter: blur(50px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: 1;
}

.ai-glow-1 {
  top: 20%;
  left: 20%;
  background: var(--primary-color);
}

.ai-glow-2 {
  bottom: 20%;
  right: 20%;
  background: var(--secondary-color);
}

.ai-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(0, 247, 255, 0.1) 0%,
        rgba(255, 0, 212, 0.1) 100%);
    z-index: 2;
}

.ai-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(0, 247, 255, 0.5));
}

/* --- NUEVO ESTILO AZUL INSTITUCIONAL PARA PROYECTOS --- */
#proyectos {
  background: #003366 !important;
  color: #fff;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
#proyectos .section-title {
  color: transparent !important;
  background: var(--gradient-primary) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  text-shadow: none !important;
}
#proyectos .section-title::after {
  background: var(--gradient-primary) !important;
  height: 4px;
  width: 100px;
  border-radius: 2px;
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
}
#proyectos .card {
  background: #014080 !important;
  color: #fff;
  border-radius: 1.5rem;
  border: 1.5px solid #00f7ff;
  box-shadow: 0 4px 24px 0 rgba(0, 247, 255, 0.10), 0 1.5px 8px 0 rgba(0,0,0,0.04);
  margin-bottom: 2rem;
  padding: 2.2rem 1.2rem 1.7rem 1.2rem;
  transition: box-shadow 0.2s, border 0.2s;
}
#proyectos .card:hover {
  box-shadow: 0 8px 32px 0 rgba(0, 247, 255, 0.18), 0 2px 12px 0 rgba(0,0,0,0.08);
  border-color: #00f7ff;
}
#proyectos .card-title {
  color: #00f7ff;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
#proyectos .card-text {
  color: #e0f7fa;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
@media (max-width: 768px) {
  #proyectos {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  #proyectos .card {
    padding: 1.3rem 0.7rem 1.1rem 0.7rem;
    border-radius: 1.1rem;
  }
  #proyectos .card-title {
    font-size: 1.1rem;
  }
  #proyectos .card-text {
    font-size: 0.98rem;
  }
}

/* Galería automática de focos */
.galeria-focos {
  width: 100%;
  max-width: 420px;
  margin: 1.5rem auto 2.5rem auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}
.galeria-slider {
  width: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px 0 rgba(0, 51, 102, 0.13);
  background: #003366;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.galeria-slider-inner {
  display: flex;
  width: 300%; /* será ajustado por JS */
  transition: transform 0.7s cubic-bezier(.77,0,.18,1);
}
.galeria-img {
  width: 100%;
  flex: 0 0 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 1.5rem;
  aspect-ratio: 4/3;
  box-shadow: 0 2px 16px rgba(0,51,102,0.10);
  transition: opacity 0.7s, transform 0.7s;
  background: #003366;
  display: block;
  max-height: 340px;
}
.galeria-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.galeria-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.4;
  transition: opacity 0.3s;
  cursor: pointer;
}
.galeria-dot.active {
  opacity: 1;
  background: #00f7ff;
}
@media (max-width: 768px) {
  .galeria-focos { max-width: 98vw; }
  .galeria-img {
    border-radius: 1rem;
    max-height: 220px;
    aspect-ratio: 1/1;
  }
  .galeria-slider {
    min-height: 180px;
    max-height: 240px;
  }
}
/* Refuerzo azul institucional en nuevas secciones */
#beneficios, #inscripcion { background: #003366 !important; color: #fff !important; }

#proyectos .row.g-4 {
  gap: 2rem !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#proyectos .card {
  margin-bottom: 0 !important;
  max-width: 370px;
  flex: 1 1 320px;
}
@media (max-width: 991px) {
  #proyectos .row.g-4 {
    gap: 1.2rem !important;
  }
}

#beneficios .row.g-4 {
  gap: 2rem !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#beneficios .card {
  margin-bottom: 0 !important;
  min-width: 280px;
  max-width: 400px;
  flex: 1 1 320px;
}

@media (max-width: 768px) {
  #proyectos .row.g-4,
  #beneficios .row.g-4 {
    justify-content: center !important;
  }
  #proyectos .card,
  #beneficios .card {
    margin-left: auto;
    margin-right: auto;
    max-width: 95vw;
    min-width: 0;
    width: 100%;
  }
}