:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #64748b;
  --light: #f8fafc;
  --dark: #1e293b;
  --gray: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
  --bg-color: #ffffff;
  --text-color: #1e293b;
  --card-bg: #ffffff;
  --section-alt: #f8fafc;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #1e3a8a;
  --secondary: #94a3b8;
  --light: #0f172a;
  --dark: #f1f5f9;
  --gray: #64748b;
  --border: #334155;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.4);
  --bg-color: #0f172a;
  --text-color: #f1f5f9;
  --card-bg: #1e293b;
  --section-alt: #1e293b;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== DARK MODE TOGGLE ===== */
.theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1001;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.theme-toggle i {
  font-size: 1.2rem;
  color: var(--text-color);
  transition: transform 0.3s ease;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background-color: rgba(15, 23, 42, 0.95);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-nav {
  background: var(--gradient);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  transition: var(--transition);
  border: none;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* ===== HERO ===== */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 6rem 1.5rem 4rem;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  border-radius: 1rem;
  transform: rotate(5deg);
  z-index: -1;
  opacity: 0.7;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.hero-image:hover img {
  transform: scale(1.02);
}

.hero-content {
  flex: 1;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--text-color);
}

.hero-content h2 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--secondary);
  font-size: 0.875rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 0;
  transition: background-color 0.3s ease;
}

.section.alt {
  background-color: var(--section-alt);
}

.section h3 {
  font-size: 2rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  color: var(--text-color);
}

.section h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

/* ===== SOBRE MI ===== */
#sobre-mi p {
  font-size: 1.125rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

/* ===== EXPERIENCIA ===== */
.experience-grid {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.experience-card {
  background: var(--card-bg);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid;
  border-image: var(--gradient) 1;
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.7s;
}

.experience-card:hover::before {
  left: 100%;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.exp-header h4 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-right: 1rem;
}

.period {
  color: var(--primary);
  font-weight: 500;
  white-space: nowrap;
}

.experience-card ul {
  padding-left: 1.5rem;
}

.experience-card li {
  margin-bottom: 0.5rem;
  color: var(--secondary);
  position: relative;
}

.experience-card li::marker {
  color: var(--primary);
}

var(--secondary);

#estudios {
  padding: 4rem 0;
}

#estudios h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}

/* Grid principal */
.studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  justify-items: center;
}

/* Card */
.study-card {
  width: 100%;
  max-width: 340px;
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 2.2rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid;
  border-image: var(--gradient) 1;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

/* Efecto brillo hover */
.study-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.06),
    transparent
  );
  transform: translateX(-100%);
  transition: transform .8s ease;
}

.study-card:hover::before {
  transform: translateX(100%);
}

.study-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Icono */
.study-icon {
  font-size: 2.6rem;
  margin-bottom: 1.2rem;
  color: var(--primary);
}

/* Texto */
.study-card h4 {
  font-size: 1.2rem;
  margin-bottom: .6rem;
  color: var(--text-color);
}

.study-card .period {
  font-size: .95rem;
  color: var(--secondary);
  line-height: 1.4;
}

/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 1024px) {
  .studies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .studies-grid {
    grid-template-columns: 1fr;
  }
}



/* ===== HABILIDADES ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-card {
  background: var(--card-bg);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid;
  border-image: var(--gradient) 1;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.skill-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.skill-card h4 {
  font-size: 1.5rem;
  color: var(--text-color);
  font-weight: 600;
}

.skill-mini-cards {
  display: grid;
  gap: 0.8rem;
}

.mini-card {
  background: var(--section-alt);
  padding: 1rem;
  border-radius: 0.5rem;
  transition: var(--transition);
  border-left: 3px solid var(--primary);
}

.mini-card:hover {
  transform: translateX(5px);
  background: var(--primary-light);
  box-shadow: var(--shadow);
}

.mini-card-title {
  display: block;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.mini-card-content {
  color: var(--text-color);
  line-height: 1.4;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skill-card {
    padding: 1.5rem;
  }

  .mini-card {
    padding: 0.8rem;
  }
}


/* ===== PROYECTOS ===== */
.projects-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card {
  min-width: 100%;
  display: none;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  height: 480px;
  flex-direction: column;
}

.project-card.active {
  display: flex;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(15px); }
  to { opacity: 1; transform: translateX(0); }
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.project-header h4 {
  font-size: 1.25rem;
  color: var(--text-color);
  font-weight: 700;
  margin: 0;
  flex: 1;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tech-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.3rem 0.7rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--primary);
  white-space: nowrap;
  transition: var(--transition);
}

.tech-tag:hover {
  transform: translateY(-2px);
}

[data-theme="dark"] .tech-tag {
  background: var(--primary-light);
  color: var(--dark);
  border-color: var(--primary);
}

.project-gallery {
  flex: 1;
  margin-bottom: 1rem;
  min-height: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  height: 100%;
}

.gallery-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}

.gallery-grid img:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.project-info {
  padding-top: 0.75rem;
  border-top: 2px solid var(--border);
}

.project-info p {
  color: var(--secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 10;
  font-size: 1rem;
  color: var(--primary);
  border: 2px solid var(--border);
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: -20px;
}

.next-btn {
  right: -20px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.indicator.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

.indicator:hover {
  background-color: var(--primary);
}

/* ===== FECHA DE ÚLTIMA MODIFICACIÓN ===== */
.last-update {
  background: var(--gradient);
  color: white;
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.last-update::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.last-update .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.last-update i {
  font-size: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.last-update span {
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ===== CONTACTO ===== */
.footer {
  text-align: center;
  padding: 3rem 0;
  background: var(--section-alt);
}

.footer h3 {
  margin-bottom: 2rem;
  color: var(--text-color);
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-3px);
}

.contact-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--gray);
}

/* ===== LIGHTBOX ===== */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.lightbox-modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s ease;
}

.lightbox-modal .close:hover {
  color: var(--primary);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 85%;
  max-height: 85%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: white;
  font-size: 1.3rem;
  z-index: 2001;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.prev-lightbox-btn {
  left: 25px;
}

.next-lightbox-btn {
  right: 25px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: var(--shadow);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 4rem;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .award-card {
    flex-direction: column;
    text-align: center;
  }
  
  .project-card {
    padding: 1.25rem;
    height: 460px;
  }
  
  .project-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .project-tech {
    justify-content: flex-start;
    width: 100%;
  }
  
  .gallery-grid img {
    height: 100px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .prev-btn {
    left: -15px;
  }
  
  .next-btn {
    right: -15px;
  }
  
  .lightbox-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .prev-lightbox-btn {
    left: 15px;
  }
  
  .next-lightbox-btn {
    right: 15px;
  }
  
  .theme-toggle {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .last-update {
    padding: 0.5rem 0;
  }
  
  .last-update .container {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .project-card {
    padding: 1rem;
    height: 420px;
  }
  
  .gallery-grid {
    gap: 0.5rem;
  }
  
  .gallery-grid img {
    height: 90px;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .project-header h4 {
    font-size: 1.1rem;
  }
  
  .theme-toggle {
    width: 40px;
    height: 40px;
  }
  
  .theme-toggle i {
    font-size: 1rem;
  }
  
  .last-update {
    font-size: 0.8rem;
  }
}

/* ===== MOVILIDAD & LOGROS ===== */
#movilidad-logros {
  padding: 4rem 0;
}

#movilidad-logros h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--text-color);
  position: relative;
}

#movilidad-logros h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Grid principal 50/50 */
.combined-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Columnas */
.left-column,
.right-column {
  height: 100%;
}

/* Tarjetas base (comparten estilos) */
.mobility-card,
.award-card {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid;
  border-image: var(--gradient) 1;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.mobility-card::before,
.award-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.7s;
}

.mobility-card:hover::before,
.award-card:hover::before {
  left: 100%;
}

.mobility-card:hover,
.award-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Contenido de tarjetas */
.mobility-content,
.award-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  gap: 1.5rem;
}

/* Iconos */
.mobility-icon,
.award-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.mobility-icon {
  background: var(--gradient);
}

.award-icon {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.mobility-icon::before,
.award-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.mobility-icon:hover::before,
.award-icon:hover::before {
  transform: scale(1.3);
}

.mobility-icon i,
.award-icon i {
  font-size: 2rem;
  color: white;
  z-index: 1;
}

/* Texto */
.mobility-text,
.award-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mobility-text h4,
.award-text h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
  font-weight: 700;
  line-height: 1.3;
}

.mobility-text p,
.award-description {
  color: var(--secondary);
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.period {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

/* Footer específico para logros */
.award-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.btn-outline-small {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline-small:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.award-date {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--section-alt);
  padding: 0.4rem 0.8rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
}

/* ===== CARRUSEL DE LOGROS ===== */
.awards-carousel {
  position: relative;
  height: 100%;
}

.carousel-container {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.award-card {
  min-width: 100%;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.award-card.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Flechas del carrusel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 10;
  font-size: 0.9rem;
  color: var(--primary);
  border: 2px solid var(--border);
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* Indicadores */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.indicator.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

.indicator:hover {
  background-color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .combined-grid {
    gap: 1.5rem;
  }
  
  .mobility-card,
  .award-card {
    padding: 1.75rem;
  }
}

@media (max-width: 768px) {
  .combined-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .mobility-card,
  .award-card {
    padding: 1.5rem;
  }
  
  .mobility-content,
  .award-content {
    gap: 1.25rem;
  }
  
  .mobility-icon,
  .award-icon {
    width: 60px;
    height: 60px;
  }
  
  .mobility-icon i,
  .award-icon i {
    font-size: 1.6rem;
  }
  
  .mobility-text h4,
  .award-text h4 {
    font-size: 1.2rem;
  }
  
  .award-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .btn-outline-small {
    width: 100%;
    justify-content: center;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .mobility-card,
  .award-card {
    padding: 1.25rem;
  }
  
  .mobility-content,
  .award-content {
    gap: 1rem;
  }
  
  .mobility-icon,
  .award-icon {
    width: 55px;
    height: 55px;
  }
  
  .mobility-icon i,
  .award-icon i {
    font-size: 1.4rem;
  }
  
  .carousel-indicators {
    margin-top: 1rem;
  }
}



