@font-face {
  font-family: 'Tangerine';
  src: url('../fonts/Tangerine/Tangerine-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tangerine';
  src: url('../fonts/Tangerine/Tangerine-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Yesteryear';
  src: url('../fonts/Yesteryear/Yesteryear-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #ffffff;
  --color-primary: #0c31d4;
  --color-text: #212121;
  --color-muted: #666666;
  --color-footer: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.title-MI {
  font-size: 4.8rem;
  color: #ffd300;
  font-weight: normal;
  font-family: 'Yesteryear', cursive;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 1px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}

.title-TIERRA {
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  font-size: 4.8rem;
  color: #004c93;
  font-weight: normal;
  font-family: 'Yesteryear', cursive;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 1px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.title-QUERIDA {
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  font-size: 4.8rem;
  color: #dc002e;
  font-weight: normal;
  font-family: 'Yesteryear', cursive;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 1px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.title-yesteryear {
  font-family: 'Yesteryear', cursive;
  font-weight: normal;
  font-size: 4rem;
  color: var(--color-primary);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.subtitle-yesteryear {
  font-family: 'Yesteryear', cursive;
  font-weight: normal;
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.hero h1,
.hero h2.main-title,
.inicio h1,
.inicio h2.main-title {
  font-family: 'Yesteryear', cursive;
  font-weight: normal;
  font-size: 4.5rem;
  color: var(--color-primary);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.section-title-yesteryear {
  font-family: 'Yesteryear', cursive;
  font-weight: normal;
  font-size: 3.5rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  letter-spacing: 0.5px;
}

.hero h2,
.inicio h2 {
  font-family: 'Yesteryear', cursive;
  font-weight: normal;
  font-size: 3.5rem;
  color: var(--color-primary);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .title-yesteryear { font-size: 3rem; }
  .subtitle-yesteryear { font-size: 2.5rem; }
  .hero h1,
  .hero h2.main-title,
  .inicio h1,
  .inicio h2.main-title { font-size: 3.5rem; }
  .hero h2,
  .inicio h2 { font-size: 3rem; }
  .section-title-yesteryear { font-size: 2.8rem; }
  .title-MI,
  .title-TIERRA,
  .title-QUERIDA { font-size: 3rem; }
}

@media (max-width: 480px) {
  .title-yesteryear { font-size: 2.5rem; }
  .subtitle-yesteryear { font-size: 2rem; }
  .hero h1,
  .hero h2.main-title,
  .inicio h1,
  .inicio h2.main-title { font-size: 2.8rem; }
  .hero h2,
  .inicio h2 { font-size: 2.5rem; }
  .section-title-yesteryear { font-size: 2.2rem; }
  .title-MI,
  .title-TIERRA,
  .title-QUERIDA { font-size: 2.5rem; }
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

.navbar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  background-image: url('../img/bg-colombian-food-claro.png');
  background-blend-mode: overlay;
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.7rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-size: large;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  transform: translateY(0);
}

/* Arreglar container de la navbar */
.navbar .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: bold;
}

/* Para la redirección desde el logo del nav al incicio */
.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* Efecto hover mejorado */
.logo-link:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 100%;
    position: relative;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-container::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd300, #004c93, #dc002e);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.logo-link:hover .logo-container::after {
    width: 100%;
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: 15px;
  width: 100%;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-links li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(12, 49, 212, 0.1), transparent);
  transition: left 0.6s ease;
}

.nav-links li a:hover::before {
  left: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-primary);
  background: rgba(12, 49, 212, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(12, 49, 212, 0.2);
}

/* Estilos mejorados para el dropdown del usuario */
.nav-links .nav-item.dropdown {
  position: relative;
}

.nav-links .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-primary), #1e40af);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(12, 49, 212, 0.3);
}

.nav-links .dropdown-toggle:hover {
  background: linear-gradient(135deg, #1e40af, var(--color-primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 49, 212, 0.4);
}

.nav-links .dropdown-toggle::after {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.nav-links .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.nav-links .dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 200px;
}

.nav-links .dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-weight: 500;
}

.nav-links .dropdown-item:hover {
  background: rgba(12, 49, 212, 0.1);
  color: var(--color-primary);
  transform: translateX(5px);
}

.nav-links .dropdown-divider {
  margin: 0.5rem 1rem;
  border-color: rgba(0, 0, 0, 0.1);
}

/* Botón de login mejorado */
.nav-links .nav-link.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--color-primary), #1e40af);
  color: white !important;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(12, 49, 212, 0.3);
  border: none;
}

.nav-links .nav-link.btn-primary:hover {
  background: linear-gradient(135deg, #1e40af, var(--color-primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 49, 212, 0.4);
}

.inicio {
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.inicio h2 {
  font-family: 'Yesteryear', cursive;
  font-weight: normal;
  font-size: 3.5rem;
  color: var(--color-primary);
  text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.inicio p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--color-text);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  font-weight: 500;
}

.inicio .btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.inicio .btn-primary:hover {
  background-color: #047de0;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .inicio {
    padding: 4rem 1rem;
    min-height: 70vh;
  }
  .hero-content {
    padding: 1.5rem;
  }
  .inicio h2 {
    font-size: 2.8rem;
  }
  .inicio p {
    font-size: 1rem;
  }
  .logo1 {
    width: 250px;
  }
}

@media (max-width: 480px) {
  .inicio {
    padding: 3rem 0.5rem;
    min-height: 60vh;
  }
  .hero-content {
    padding: 1rem;
    margin: 0 1rem;
  }
  .inicio h2 {
    font-size: 2.2rem;
  }
  .logo1 {
    width: 200px;
  }
}

.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--color-muted);
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #047de0;
}

.footer {
  background-image: url('../img/bg-colombian-food-claro.png');
  color: #000000;
  padding: 40px 0 0 0;
  border: #66666659 1px solid;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1 1 200px;
  min-width: 200px;
  margin-bottom: 24px;
  font-weight: bold;
}

.footer-logo {
  width: 150px;
  margin-bottom: 12px;
}

.footer-section h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: #2f00ff;
  font-weight: bold;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: bold;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #000000;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: bold;
}

.footer-section ul li a:hover {
  color: #1900ff;
}

.footer-social a {
  color: #000000;
  margin-right: 12px;
  font-size: 1.3rem;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: #001aff;
}

.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 24px;
  padding: 16px 0;
  text-align: center;
  font-size: 0.95rem;
  color: #303030;
}

.menu-footer{
  padding-top: 50px;
}

@media (max-width: 900px) {
  .footer-content {
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-section {
    min-width: 160px;
  }
}

@media (max-width: 700px) {
  .footer-content {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-section {
    min-width: 0;
  }
}

.logo1 {
  transform: scale(2);
  width: 350px;
  height: auto;
}

.logoHeader {
  width: 110px;
  height: auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 20vw;
  color: var(--color-primary);
}

.productos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.producto {
  background-color: #fff;
  border-radius: 12px;
  padding: 1rem;
  width: 220px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.producto:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.producto img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.producto h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.producto p {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.contacto-section {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  padding: 4rem 2rem;
}

.contacto-container-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin-top: 1rem;
  padding: 0;
}

.contacto-box {
  flex: 1;
  width: 100%;
  max-width: 600px;
  border: 1px solid #ccc;
  padding: 2rem;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: var(--color-primary);
  align-items: center;
}

.redes-contacto h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.redes-contacto ul {
  list-style: none;
  padding: 0;
}

.redes-contacto li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.redes-contacto img {
  width: 24px;
  height: 24px;
}

.icon-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-btn i {
  color: white;
  font-size: 1.3rem;
  line-height: 1;
}

.icon-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.icon-btn.instagram {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf);
}

.icon-btn.facebook {
  background-color: #1877f2;
}

.icon-btn.twitter {
  background-color: #000000;
}

.icon-btn.whatsapp {
  background-color: #25d366;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-contenido {
  background-color: white;
  margin: auto;
  padding: 20px;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgb(87, 86, 86);
  position: relative;
}

.cerrar {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

  .cerrar:hover {
    color: black;
  }

/* ============ CAMBIOS EN EL CSS DE LA HAMBURGUESA, RESPONSIVE, INTERACCIONES EN VISTAS 15/07/23 ============ */

/* ============ VARIABLES Y ESTILOS BASE ============ */
:root {
  --navbar-height: 120px; /* Altura ajustada para navbar con logo grande */
  --transition-speed: 0.6s;
  --navbar-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Agregar efecto de bounce sutil al hacer scroll */
@keyframes navbarScrollBounce {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(0.99); }
  100% { transform: translateY(0) scale(0.98); }
}

.navbar.scrolled {
  padding: 0.4rem 0;
  transform: translateY(-8px); /* subimos un poquito */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  background-image: url('../img/bg-colombian-food-claro.png');
  background-blend-mode: overlay;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.navbar.scrolled .title-MI,
.navbar.scrolled .title-TIERRA,
.navbar.scrolled .title-QUERIDA {
  font-size: 4.1rem;
  transition: font-size 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.95);
}

.navbar.scrolled .nav-links {
  padding: 0.6rem 1.5rem;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.95);
}

.navbar.scrolled .nav-menu {
  margin-top: 8px;
  transition: margin-top 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ MEJORAS GENERALES Y ANIMACIONES ============ */
html {
  scroll-behavior: smooth;
}

/* Animaciones de entrada para la navbar */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar {
  animation: fadeInDown 0.8s ease-out;
}

/* Efectos de hover suaves para todos los enlaces */
a {
  transition: all 0.3s ease;
}

/* Mejoras en la accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Enfoque visible para accesibilidad */
.nav-links a:focus,
.lang-link:focus,
.hamburger:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ ESTILOS DEL BOTÓN HAMBURGUESA ============ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(12, 49, 212, 0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
  margin-left: auto;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hamburger:hover {
  background: rgba(12, 49, 212, 0.1);
  border-color: var(--color-primary);
  transform: scale(1.05);
}

.hamburger .bar {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #1e40af);
  border-radius: 2px;
  transition: 
    transform var(--transition-speed) ease, 
    opacity var(--transition-speed) ease,
    background var(--transition-speed) ease;
  transform-origin: center;
}

/* Estados activos del botón */
.hamburger.is-active {
  background: rgba(220, 0, 46, 0.1);
  border-color: #dc002e;
}

.hamburger.is-active .bar {
  background: linear-gradient(90deg, #dc002e, #b91c1c);
}

.hamburger.is-active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============ SELECTOR DE IDIOMA ============ */
.language-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.language-selector:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.lang-link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-link:hover {
  color: var(--color-primary);
  background: rgba(12, 49, 212, 0.1);
  transform: scale(1.05);
}

.lang-link.active {
  color: white;
  background: linear-gradient(135deg, var(--color-primary), #1e40af);
  box-shadow: 0 2px 8px rgba(12, 49, 212, 0.3);
}

.language-selector .separator {
  color: rgba(0, 0, 0, 0.3);
  font-weight: 300;
}

/* Ajustar para móvil - Ya está reposicionado en el media query principal */
@media (max-width: 768px) {
  .lang-link {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
}

/* ============ NAVEGACIÓN RESPONSIVE ============ */
@media (max-width: 768px) {
  /* Actualizar altura para móvil */
  :root {
    --navbar-height: 80px;
  }

  /* Navbar ajustes para móvil - layout horizontal compacto */
  .navbar {
    padding: 0.5rem 0;
    position: relative;
  }

  .navbar .container {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
  }

  /* Logo container centrado perfectamente */
  .logo-container {
    order: 2;
    text-align: center;
    margin: 0;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Selector de idioma optimizado */
  .language-selector {
    position: static;
    order: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.6rem;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(12, 49, 212, 0.15);
    flex: 0 0 auto;
    min-width: fit-content;
  }

  /* Botón hamburguesa optimizado */
  .hamburger { 
    display: flex;
    order: 3;
    position: static;
    margin: 0;
    width: 28px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(12, 49, 212, 0.15);
    border-radius: 8px;
    padding: 4px;
    flex: 0 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* Menú desplegable debajo del header */
  nav#navMenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) var(--navbar-easing);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(12, 49, 212, 0.1);
    z-index: 1000;
    margin-top: 0;
  }

  /* Estado abierto del menú */
  nav#navMenu.is-open { 
    max-height: 500px; 
  }

  /* Estilos de los enlaces para móvil */
  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border: none;
  }

  .nav-links li { 
    width: 100%; 
    margin-bottom: 0.4rem;
  }

  .nav-links li a {
    display: block;
    padding: 0.8rem 1rem;
    transition: all var(--transition-speed) var(--navbar-easing);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.4rem;
    border: 1px solid rgba(12, 49, 212, 0.1);
    font-size: 0.95rem;
  }

  .nav-links li a:hover {
    background: rgba(12, 49, 212, 0.1);
    border-color: var(--color-primary);
    transform: translateX(8px);
  }

  /* Estilo especial para el ítem de login en móvil */
  .nav-links .nav-item {
    margin-top: 0.8rem;
  }

  .nav-links .nav-link.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #1e40af);
    color: white !important;
    border: none;
    text-align: center;
    font-weight: 600;
  }

  .nav-links .nav-link.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, var(--color-primary));
    transform: translateY(-2px);
  }

  /* Dropdown en móvil */
  .nav-links .dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(12, 49, 212, 0.05);
    border-radius: 6px;
    margin-top: 0.4rem;
    border: 1px solid rgba(12, 49, 212, 0.1);
  }

  .nav-links .dropdown-toggle {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.4rem;
  }

  /* Logo más balanceado en móvil */
  .title-MI,
  .title-TIERRA,
  .title-QUERIDA {
    font-size: 2.1rem;
  }

  /* Ocultar nav-menu por defecto en móvil */
  .nav-menu {
    display: none;
  }

  .nav-menu.is-open {
    display: block;
  }

  /* Ajustes para el selector de idioma en móvil */
  .language-selector .lang-link {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
    font-weight: 600;
  }

  .language-selector .separator {
    font-size: 0.7rem;
    margin: 0 0.2rem;
    opacity: 0.6;
  }

  /* Estado scrolled más compacto */
  .navbar.scrolled {
    padding: 0.4rem 0;
  }

  .navbar.scrolled .title-MI,
  .navbar.scrolled .title-TIERRA,
  .navbar.scrolled .title-QUERIDA {
    font-size: 1.9rem;
  }
}

/* ============ ESTILOS PARA PANTALLAS GRANDES ============ */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }

  .nav-menu {
    display: flex !important;
  }

  .nav-links {
    flex-direction: row;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-links li {
    width: auto;
    margin-bottom: 0;
  }

  .nav-links li a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .logoHeader { 
    width: 48px; 
  }
  
  /* Layout aún más compacto para pantallas pequeñas */
  .navbar {
    padding: 0.4rem 0;
  }

  .navbar .container {
    gap: 0.6rem;
    padding: 0 0.6rem;
  }
  
  /* Menú más compacto */
  .nav-links {
    padding: 0.8rem;
  }
  
  .nav-links li a {
    padding: 0.7rem 0.8rem;
    font-size: 0.9rem;
  }

  /* Ajustes adicionales para pantallas muy pequeñas */
  .title-MI,
  .title-TIERRA,
  .title-QUERIDA {
    font-size: 1.8rem;
  }

  .hamburger {
    width: 22px;
    height: 18px;
    padding: 2px;
  }

  .language-selector {
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
  }

  .language-selector .lang-link {
    font-size: 0.7rem;
    padding: 0.15rem 0.3rem;
  }

  .language-selector .separator {
    font-size: 0.65rem;
    margin: 0 0.15rem;
  }

  /* Estado scrolled aún más compacto */
  .navbar.scrolled {
    padding: 0.3rem 0;
  }

  .navbar.scrolled .title-MI,
  .navbar.scrolled .title-TIERRA,
  .navbar.scrolled .title-QUERIDA {
    font-size: 1.6rem;
  }
}

/* === ESTILOS DEL CARRUSEL MEJORADO === */
.carrusel-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  margin-bottom: 0;
  background: #000;
}

/* Fusión con la sección de inicio */
.inicio.carrusel-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay con gradiente equilibrado */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(12, 49, 212, 0.301) 0%,
    rgba(255, 211, 0, 0.15) 30%,
    rgba(220, 0, 46, 0.2) 70%,
    rgba(0, 76, 147, 0.2) 100%
  );
  backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: overlayShimmer 8s ease-in-out infinite;
}

/* Contenido del hero equilibrado */
.hero-content {
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 3rem 2rem;
  z-index: 3;
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 25px 45px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-content .logo1 {
  width: 140px;
  height: auto;
  margin-bottom: 2rem;
  filter: 
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 20px rgba(255, 211, 0, 0.3));
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% { filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 20px rgba(255, 211, 0, 0.3)); }
  100% { filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 30px rgba(255, 211, 0, 0.6)); }
}

.hero-content h1 {
  padding-top: 50px;
  font-family: 'Yesteryear', cursive;
  font-size: 5.5rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: #ffffff;
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 4s ease-in-out infinite;
}

@keyframes textShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  opacity: 0.95;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.5px;
  color: #ffffff;
}

/* Subtítulo rotativo mejorado */
.hero-subtitle {
  margin-bottom: 2.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-subtitle span {
  font-family: 'Yesteryear', cursive;
  font-size: 2.2rem;
  color: #ffd300;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(255, 211, 0, 0.6);
  display: inline-block;
  transition: all 0.5s ease;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 211, 0, 0.1);
  border-radius: 50px;
  border: 1px solid rgba(255, 211, 0, 0.3);
  backdrop-filter: blur(10px);
}

/* Botón principal mejorado */
.btn-primary {
  background: linear-gradient(135deg, #ffd300 0%, #ffed4e 50%, #ffd300 100%);
  color: #0c31d4;
  padding: 1.2rem 3rem;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 25px rgba(255, 211, 0, 0.4),
    0 0 0 0 rgba(255, 211, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.8),
    0 0 0 8px rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  border-color: rgba(0, 0, 0, 1);
}

/* Slides del carrusel con efectos avanzados */
.carrusel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.1);
  transition: all 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  outline: none;
  box-shadow: none;
  z-index: 1;
}

.carrusel-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Efecto Ken Burns para las imágenes más brillante */
.carrusel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: none;
  outline: none;
  box-shadow: none;
  transform: scale(1);
  transition: transform 12s ease-out;
  filter: brightness(1.1) contrast(1.05) saturate(1.1);
}

.carrusel-slide.active .carrusel-image {
  transform: scale(1.05);
}

/* Efecto de partículas casi invisible */
.carrusel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 40% 30%, rgba(255, 211, 0, 0.05), transparent),
    radial-gradient(2px 2px at 70% 70%, rgba(255, 255, 255, 0.03), transparent),
    radial-gradient(1px 1px at 20% 80%, rgba(12, 49, 212, 0.05), transparent),
    radial-gradient(1px 1px at 90% 20%, rgba(220, 0, 46, 0.03), transparent);
  background-size: 200px 200px, 150px 150px, 100px 100px, 180px 180px;
  animation: particleFloat 20s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes particleFloat {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

/* Controles del carrusel reposicionados en la navbar */
.carrusel-btn {
  position: fixed;
  top: 50px;
  background: rgba(255, 255, 255, 0.062);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(12, 49, 212, 0.2);
  color: var(--color-primary);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1100;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.carrusel-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.6s ease;
}

.carrusel-btn:hover::before {
  left: 100%;
}

.carrusel-btn:hover {
  background: rgba(12, 49, 212, 0.15);
  transform: scale(1.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 
    0 6px 20px rgba(12, 49, 212, 0.25),
    0 0 15px rgba(12, 49, 212, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.carrusel-btn:active {
  transform: scale(0.95);
}

.carrusel-prev {
  left: 20px;
}

.carrusel-next {
  right: 20px;
}

/* Indicadores del carrusel elegantes */
.carrusel-indicators {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 4;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 1rem 2rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 211, 0, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.indicator.active::before,
.indicator:hover::before {
  width: 100%;
  height: 100%;
}

.indicator.active,
.indicator:hover {
  background: rgba(255, 211, 0, 0.9);
  transform: scale(1.3);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 4px 15px rgba(255, 211, 0, 0.4),
    0 0 20px rgba(255, 211, 0, 0.3);
}

/* Efecto de progreso para slide activa */
.indicator.active {
  animation: slideProgress 4s linear;
}

@keyframes slideProgress {
  0% { 
    background: linear-gradient(90deg, rgba(255, 211, 0, 0.9) 0%, rgba(255, 255, 255, 0.4) 0%); 
  }
  100% { 
    background: linear-gradient(90deg, rgba(255, 211, 0, 0.9) 100%, rgba(255, 255, 255, 0.4) 100%); 
  }
}

/* Responsive mejorado para el carrusel */
@media (max-width: 768px) {
  .carrusel-section {
    height: 85vh;
    min-height: 550px;
  }
  
  .hero-content {
    max-width: 95%;
    padding: 2rem 1.5rem;
    margin: 0 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.6);
  }
  
  .hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.8);
    font-weight: bold;
  }
  
  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1), 0 0 8px rgba(0, 0, 0, 0.8);
    font-weight: 600;
  }
  
  .hero-subtitle span {
    font-size: 1.8rem;
    padding: 0.4rem 1rem;
  }
  
  .hero-content .logo1 {
    width: 110px;
    margin-bottom: 1.5rem;
  }
  
  .btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
  }
  
  .carrusel-btn {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    top: 40px;
  }
  
  .carrusel-prev {
    left: 15px;
  }
  
  .carrusel-next {
    right: 15px;
  }
  
  .carrusel-indicators {
    bottom: 2rem;
    padding: 0.8rem 1.5rem;
    gap: 0.8rem;
  }
  
  .indicator {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .carrusel-section {
    height: 80vh;
    min-height: 500px;
  }
  
  .hero-content {
    padding: 1.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.6);
  }
  
  .hero-content h1 {
    font-size: 3.2rem;
    line-height: 1;
    margin-bottom: 0.8rem;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.8);
    font-weight: bold;
  }
  
  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1), 0 0 8px rgba(0, 0, 0, 0.8);
    font-weight: 600;
  }
  
  .hero-subtitle {
    margin-bottom: 2rem;
    height: 50px;
  }
  
  .hero-subtitle span {
    font-size: 1.6rem;
    padding: 0.3rem 0.8rem;
  }
  
  .hero-content .logo1 {
    width: 90px;
    margin-bottom: 1rem;
  }
  
  .btn-primary {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    letter-spacing: 1px;
  }
  
  .carrusel-btn {
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    top: 35px;
  }
  
  .carrusel-prev {
    left: 10px;
  }
  
  .carrusel-next {
    right: 10px;
  }
  
  .carrusel-indicators {
    bottom: 1.5rem;
    padding: 0.6rem 1rem;
    gap: 0.6rem;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
}

/* Estilos para pantallas extra pequeñas con mejor visibilidad */
@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 2.8rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  }
  
  .hero-content p {
    font-size: 1rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  }
  
  .hero-subtitle span {
    font-size: 1.4rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  }
  
  .btn-primary {
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
  }
  
  /* Asegurar que el título del navbar esté en una línea en móviles */
  .title-MI,
  .title-TIERRA,
  .title-QUERIDA {
    font-size: 2.5rem;
  }
  
  .navbar.scrolled .title-MI,
  .navbar.scrolled .title-TIERRA,
  .navbar.scrolled .title-QUERIDA {
    font-size: 2rem;
  }
}

/* Asegurar que las flechas estén visibles en todas las páginas */
.carrusel-btn {
  display: flex !important;
  visibility: visible !important;
}
@media (prefers-reduced-motion: reduce) {
  .carrusel-slide,
  .carrusel-image,
  .hero-content,
  .carrusel-btn,
  .indicator {
    animation: none !important;
    transition-duration: 0.3s !important;
  }
  
  .carrusel-slide::before {
    animation: none !important;
  }
}

/* Mejoras para touch devices */
@media (hover: none) and (pointer: coarse) {
  .carrusel-btn:hover {
    transform: translateY(-50%) scale(1.05);
  }
  
  .indicator:hover {
    transform: scale(1.1);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
  }
}

/* Dark mode support con mejor contraste */
@media (prefers-color-scheme: dark) {
  .hero-overlay {
    background: linear-gradient(
      45deg,
      rgba(12, 49, 212, 0.2) 0%,
      rgba(255, 211, 0, 0.15) 30%,
      rgba(220, 0, 46, 0.2) 70%,
      rgba(0, 76, 147, 0.2) 100%
    );
  }
  
  .hero-content {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    text-shadow: none !important;
  }
  
  .hero-content h1,
  .hero-content p,
  .hero-subtitle span {
    color: #ffffff;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.938);
  }
}

/* Ajuste para anclas con navbar fijo */
html {
  scroll-padding-top: 120px; /* Ajustado para la nueva altura de navbar */
  scroll-behavior: smooth;
}

/* Efectos adicionales del carrusel */
.carrusel-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 211, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(12, 49, 212, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(220, 0, 46, 0.1) 0%, transparent 50%);
  z-index: 0;
  animation: backgroundShift 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes backgroundShift {
  0%, 100% { 
    transform: rotate(0deg) scale(1); 
    opacity: 0.3;
  }
  33% { 
    transform: rotate(120deg) scale(1.1); 
    opacity: 0.5;
  }
  66% { 
    transform: rotate(240deg) scale(0.9); 
    opacity: 0.4;
  }
}

/* Mejora en la transición entre slides más clara */
.carrusel-slide {
  filter: blur(0px) brightness(1);
  transition: 
    opacity 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carrusel-slide:not(.active) {
  filter: blur(1px) brightness(0.85);
}

/* Efecto de carga progresiva para las imágenes */
.carrusel-image {
  background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
  background-size: 400% 400%;
  animation: loadingShimmer 2s ease-in-out infinite;
}

.carrusel-image[src] {
  animation: none;
  background: none;
}

@keyframes loadingShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Indicador de carga para el carrusel */
.carrusel-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carrusel-loading.show {
  opacity: 1;
}

.carrusel-loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 211, 0, 0.3);
  border-top: 3px solid #ffd300;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Optimizaciones de performance */
.carrusel-section,
.carrusel-slide,
.carrusel-image {
  will-change: transform, opacity;
  contain: layout style paint;
}

/* Efecto de transición suave entre slides */
.carrusel-slide.entering {
  opacity: 0;
  transform: scale(1.05) translateX(100px);
}

.carrusel-slide.entering.active {
  opacity: 1;
  transform: scale(1) translateX(0);
}

.carrusel-slide.exiting {
  opacity: 1;
  transform: scale(1) translateX(0);
}

.carrusel-slide.exiting.inactive {
  opacity: 0;
  transform: scale(0.95) translateX(-100px);
}

.sobre-nosotros-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}
.sobre-nosotros-image img {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
