

/* Main content container */
.content {
  padding-top: 1rem;
  padding-bottom: 120px;
  padding-left: 1rem; /* Margen izquierdo consistente */
  padding-right: 1rem; /* Margen derecho consistente */
  margin-left: 1rem; /* Margen izquierdo explícito */
  margin-right: 1rem; /* Margen derecho explícito */
  max-width: 1280px;
  margin-left: auto; /* Centrado horizontal */
  margin-right: auto; /* Centrado horizontal */
}


@media (max-width: 360px) {
  .content {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    padding-left: 1rem; /* Mantener margen izquierdo */
    padding-right: 1rem; /* Mantener margen derecho */
    margin-left: 1rem; /* Margen consistente */
    margin-right: 1rem; /* Margen consistente */
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
}


@media (max-width: 480px) {
  .content {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 1rem; /* Mantener margen izquierdo */
    padding-right: 1rem; /* Mantener margen derecho */
    margin-left: 1rem; /* Margen consistente */
    margin-right: 1rem; /* Margen consistente */
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
}


@media (min-width: 768px) and (max-width: 1024px) {
  .content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding-left: 1rem; /* Mantener margen izquierdo */
    padding-right: 1rem; /* Mantener margen derecho */
    margin-left: 1rem; /* Margen consistente */
    margin-right: 1rem; /* Margen consistente */
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
}


@media (min-width: 1025px) {
  .content {
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 1rem; /* Mantener margen izquierdo */
    padding-right: 1rem; /* Mantener margen derecho */
    margin-left: 1rem; /* Margen consistente */
    margin-right: 1rem; /* Margen consistente */
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
}















.container-inicio-i {
  width: 100%;
  max-width: 1280px;
  margin-left: 1rem; /* Margen consistente */
  margin-right: 1rem; /* Margen consistente */
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}
/* Estilos para el Splash Screen - UNA SOLA DECLARACIÓN */
.splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
    background: url('https://luni.site/wallpaper-luni-site-blue-2.avif') center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
}

/* Fallback para asegurar que el fondo cubra toda la pantalla */
.splash-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://luni.site/wallpaper-luni-site-blue-2.avif') center center no-repeat;
    background-size: cover;
    z-index: -1;
}

/* Dark mode styles */
body.dark-mode .splash-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 79, 100, 0.3);
    z-index: 1;
}

body.dark-mode .splash-image,
body.dark-mode .loading-bar {
    position: relative;
    z-index: 2;
}

body.dark-mode .loading-progress {
    background: rgba(255, 255, 255, 0.8);
}

/* Logo styles */
.splash-image {
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
    border-radius: 35px;
    transform: translateY(0);
    animation: float-logo 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* Media queries para diferentes tamaños de pantalla */
@media (max-width: 480px) {
    .splash-container {
        background-size: cover;
        background-position: center center;
    }
    .splash-image {
        width: 120px;
        height: 120px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .splash-container {
        background-size: cover;
        background-position: center center;
    }
    .splash-image {
        width: 140px;
        height: 140px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .splash-container {
        background-size: cover;
        background-position: center center;
    }
    .splash-image {
        width: 150px;
        height: 150px;
    }
}

@media (min-width: 1025px) {
    .splash-container {
        background-size: cover;
        background-position: center center;
    }
}

/* Para pantallas muy pequeñas o con orientación landscape */
@media (max-height: 500px) {
    .splash-container {
        background-size: cover;
        background-position: center center;
    }
    .splash-image {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
}

/* Para dispositivos con alta densidad de píxeles */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .splash-container {
        background-size: cover;
        background-position: center center;
    }
}

/* Estilos para el modal de encuesta */
.survey-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.survey-modal-content {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #e0e0e0;
}

.dark-mode .survey-modal-content {
  background-color: #3a4f64;
  border: 1px solid #5a6f84;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.survey-modal-content h2 {
  margin: 0 0 10px;
  font-size: 1.5em;
  color: #333;
}

.dark-mode .survey-modal-content h2 {
  color: #e0e0e0;
}

.survey-modal-content p {
  margin: 0 0 15px;
  color: #333;
}

.dark-mode .survey-modal-content p {
  color: #e0e0e0;
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.star {
  font-size: 30px;
  color: #ccc; /* Gris por defecto (vacías) */
  cursor: pointer;
  transition: color 0.2s;
}

.star.selected {
  color: #ffca28; /* Amarillo para estrellas seleccionadas */
}

#surveyComment {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: none;
  font-size: 14px;
}

.dark-mode #surveyComment {
  background-color: #4a5f74;
  border: 1px solid #6a7f94;
  color: #e0e0e0;
}

.survey-buttons {
  display: flex;
  justify-content: center;
}

.survey-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

#submitSurvey {
  background-color: #344c64;
  color: #fff;
}

.dark-mode #submitSurvey {
  background-color: #5a6f84;
}

/* Estilos para el mensaje centrado */
.thank-you-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #4a90e2;
  color: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

.dark-mode .thank-you-message {
  background-color: #5a6f84;
}

.change-name {
    cursor: pointer;
    padding: 10px;
    color: #333;
    transition: background-color 0.2s ease;
}
.change-name:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Name Modal Styles */
.name-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.name-modal-content {
  background-color: #fff;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 320px;
  width: 90%;
  transform: translateY(-20px);
  animation: slideIn 0.3s ease forwards;
}

.name-modal-content h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  color: #333;
  font-weight: 500;
}

.name-modal-content p {
  margin: 0 0 20px;
  font-size: 1rem;
  color: #666;
}

.name-modal-content input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.name-modal-content input:focus {
  border-color: #315857;
}

.name-modal-content button {
  background-color: #315857;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.name-modal-content button:hover {
  background-color: #264747;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}








/* Star icon for favorites - Enhanced visibility and design for light theme */
.favorite-star {
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  /* Círculo siempre blanco con gradiente sutil */
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  z-index: 10;
}

.favorite-star:before {
  content: "★";
  position: absolute;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  line-height: 1;
}

/* Non-favorite state - círculo blanco, estrella gris */
.favorite-star.not-favorite {
  /* Mantener el círculo blanco */
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

.favorite-star.not-favorite:before {
  color: #64748b; /* Estrella gris */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.favorite-star.not-favorite:hover {
  /* Círculo sigue siendo blanco, solo cambia la sombra */
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(0, 0, 0, 0.12);
  transform: scale(1.1);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.favorite-star.not-favorite:hover:before {
  color: #475569; /* Estrella más oscura en hover */
  transform: scale(1.05);
}

/* Favorite state - círculo blanco, estrella amarilla */
.favorite-star.favorite {
  /* Círculo permanece blanco - SIN sombra naranja */
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  /* Sombra neutra sin color naranja */
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.favorite-star.favorite:before {
  color: #eab308; /* Estrella amarilla pura */
  text-shadow: 
    0 1px 2px rgba(234, 179, 8, 0.3),
    0 0 6px rgba(250, 204, 21, 0.2);
}

.favorite-star.favorite:hover {
  /* Círculo sigue blanco */
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(0, 0, 0, 0.12);
  transform: scale(1.15);
  /* Sombra neutra en hover */
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.favorite-star.favorite:hover:before {
  color: #ca8a04; /* Estrella amarilla más intensa en hover */
  transform: scale(1.1);
  filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.3));
}

/* Active state feedback */
.favorite-star:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* Alternative outline style for better visibility */
.favorite-star.outline-style {
  /* Círculo blanco */
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
}

.favorite-star.outline-style:before {
  content: "☆";
  font-weight: 400;
  font-size: 1.1rem;
}

.favorite-star.outline-style.not-favorite:before {
  color: #64748b;
  text-shadow: none;
}

.favorite-star.outline-style.not-favorite:hover {
  border-color: #cbd5e1;
  /* Círculo permanece blanco */
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.favorite-star.outline-style.not-favorite:hover:before {
  color: #475569;
}

.favorite-star.outline-style.favorite {
  /* Círculo blanco */
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: #eab308; /* Borde amarillo */
}

.favorite-star.outline-style.favorite:before {
  content: "★";
  color: #eab308; /* Estrella amarilla */
  text-shadow: 0 1px 2px rgba(234, 179, 8, 0.3);
}

.favorite-star.outline-style.favorite:hover {
  border-color: #ca8a04;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); /* Sombra neutra */
}

/* Content item container positioning */
.content-item-contenido,
.content-item-videos-contenido {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.content-item-contenido:hover,
.content-item-videos-contenido:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Enhanced styling for favorited items - SIN sombra naranja */
.content-item-contenido.favorite-item,
.content-item-videos-contenido.favorite-item {
  border: 1.5px solid rgba(234, 179, 8, 0.2); /* Borde amarillo suave */
  background: linear-gradient(135deg, #ffffff 0%, rgba(254, 249, 195, 0.3) 100%); /* Fondo amarillo suave */
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.12), /* Sombra neutra */
    0 1px 3px rgba(0, 0, 0, 0.06);
}

.content-item-contenido.favorite-item:hover,
.content-item-videos-contenido.favorite-item:hover {
  border-color: rgba(234, 179, 8, 0.35);
  background: linear-gradient(135deg, #ffffff 0%, rgba(254, 249, 195, 0.4) 100%);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.15), /* Sombra neutra */
    0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Enhanced focus states for accessibility */
.favorite-star:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.12), /* Sombra neutra */
    0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Responsive styles for star icon */
@media (max-width: 768px) {
  .favorite-star {
    top: 0.5rem;
    right: 0.5rem;
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  
  .favorite-star:before {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .favorite-star {
    top: 0.4rem;
    right: 0.4rem;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  
  .favorite-star:before {
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .favorite-star {
    width: 26px;
    height: 26px;
  }
  
  .favorite-star:before {
    font-size: 0.75rem;
  }
}

/* Animation for when star changes state */
@keyframes starPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

@keyframes starGlow {
  0% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
  50% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); }
  100% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
}

.favorite-star.state-changing {
  animation: starPulse 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.favorite-star.favorite.state-changing {
  animation: 
    starPulse 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    starGlow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure content doesn't interfere with star positioning */
.content-item-contenido .content-text,
.content-item-videos-contenido .content-text {
  padding-right: 3.5rem; /* More space for the larger star */
}

/* Enhanced glow effect for favorited items - SIN color naranja */
.content-item-contenido.favorite-item::before,
.content-item-videos-contenido.favorite-item::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg, 
    transparent 30%, 
    rgba(234, 179, 8, 0.1) 50%, /* Amarillo suave */
    transparent 70%
  );
  border-radius: 1.1rem;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.content-item-contenido.favorite-item:hover::before,
.content-item-videos-contenido.favorite-item:hover::before {
  opacity: 1;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Additional visual enhancement - subtle inner shadow for depth */
.favorite-star::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  pointer-events: none;
  transition: all 0.3s ease;
}

.favorite-star.favorite::after {
  box-shadow: inset 0 1px 2px rgba(234, 179, 8, 0.15); /* Sombra amarilla suave */
}







     /* Reset existing body styles and add background image */
body {
  background-color: #fdfdfd; /* Fallback color */
  background-image: url('https://luni.site/wallpaper-luni-site-white.avif'); /* Default background for desktop */
  background-size: cover; /* Cover the entire viewport */
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Prevent tiling */
  background-attachment: fixed; /* Keep the image fixed during scroll */
  color: #1d1d1f;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-top:0px;
  margin: 0; /* Ensure no margins interfere */
}

/* Responsive background images for tablets (481px to 1024px) */
@media (min-width: 481px) and (max-width: 1024px) {
  body {
    background-image: url('https://luni.site/pccontenido.png'); /* Tablet-specific background */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
}

 .ad-container {
            max-width: 350px;
            width: 100%;
            margin: 0 auto;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 15px;
            box-sizing: border-box;
        }

        .ad-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 60px;
            background: #f9f9f9;
            border-radius: 4px;
            border: 1px solid #e0e0e0;
        }

        .ad-label {
            font-size: 12px;
            color: #666;
            text-align: center;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Responsive */
        @media (max-width: 480px) {
            .ad-container {
                max-width: 100%;
                margin: 0 10px;
            }
            
            body {
                padding: 10px;
            }
        }

        /* Para que el iframe del anuncio se adapte */
        .ad-wrapper iframe {
            max-width: 100%;
            height: auto;
        }
/* Responsive background images for mobile (up to 480px) */
@media (max-width: 480px) {
  body {
    background-image: url('https://luni.site/pccontenido.png'); /* Mobile-specific background */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
}

/* Optional: Add a semi-transparent overlay for better text readability */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1); /* Slight white overlay for contrast */
  z-index: -1; /* Behind all content */
  pointer-events: none; /* Prevent interference with interactions */
}

/* Ensure html has no margins or padding */
html {
  margin: 0;
  padding: 0;
  height: 100%; /* Ensure full viewport coverage */
}



html, body {
  overflow: auto !important; /* Permite el scroll pero esconde la barra */
  -ms-overflow-style: none !important;  /* IE y Edge */
  scrollbar-width: none !important;     /* Firefox */
}

::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* Para elementos con scroll */
* {
  -ms-overflow-style: none !important;  /* IE y Edge */
  scrollbar-width: none !important;     /* Firefox */
}

/* Esconde scrollbars en elementos con overflow */
div, section, article, aside, nav, main, 
textarea, pre, code, .scrollable {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

div::-webkit-scrollbar,
section::-webkit-scrollbar, 
article::-webkit-scrollbar, 
aside::-webkit-scrollbar,
nav::-webkit-scrollbar,
main::-webkit-scrollbar,
textarea::-webkit-scrollbar,
pre::-webkit-scrollbar,
code::-webkit-scrollbar,
.scrollable::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Para elementos iframe */
iframe {
  scrollbar-width: none !important;
}/* Eliminación forzada de outline y estilos de foco */
* {
  outline: 0 !important;
  outline-style: none !important;
  outline-width: 0 !important;
  outline-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
  -webkit-focus-ring-color: rgba(0,0,0,0) !important;
 
}

/* Estilos para todos los estados posibles */
*:focus,
*:active,
*:hover,
*:visited,
*:focus-visible,
*:focus-within,
*::selection,
*::-moz-focus-inner,
*::-moz-focus-outer {
  outline: 0 !important;
  outline-style: none !important;
  outline-width: 0 !important;
  outline-color: transparent !important;
 
}

/* Eliminar outline en elementos específicos con selector más agresivo */
html body input,
html body textarea,
html body select,
html body button,
html body a,
html body [tabindex],
html body [contenteditable="true"] {
  outline: 0 !important;
  outline-style: none !important;
  outline-width: 0 !important;
 
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

/* Quitar estilos nativos de navegadores */
[type="text"]::-ms-clear,
[type="search"]::-webkit-search-decoration,
[type="search"]::-webkit-search-cancel-button {
  display: none !important;
}

/* Firefox: quitar borde interno de botones */
button::-moz-focus-inner,
input::-moz-focus-inner {

  padding: 0 !important;
}

/* Desactivar animaciones de focus nativas */
@media screen and (-webkit-min-device-pixel-ratio:0) {
  * {
    -webkit-font-smoothing: antialiased;
  }
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #344c64;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #515154;
    margin-bottom: 1rem;
}

/* Barra superior estilo macOS minimalista */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background:transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    z-index: 1000;
  
}

/* Contenedor del logo */
.logo-container {
    display: flex;
    align-items: center;
    padding-left: 20px;
}

/* Logo */
.logo {
    height: 30px;
    width: auto;
    border-radius: 6px;
    overflow: hidden;
}

/* Nombre de la aplicación */
.app-name {
    font-size: 15px;
    font-weight: 500;
    margin-left: 10px;
    color: #344c64;
}

/* Botón de menú hamburguesa alineado a la derecha */
.hamburger-menu {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    margin-right: 20px;
    padding: 4px 0;
    position: relative;
}

/* Líneas del menú hamburguesa */
.hamburger-line {
    height: 1.5px;
    width: 100%;
    background-color: #344c64;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animación del menú */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menú desplegable */
.dropdown-menu {
    position: absolute;
    top: 48px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Activación del menú desplegable */
.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ítems del menú */
.dropdown-item {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: rgba(52, 76, 100, 0.1);
}

.dropdown-item svg {
    width: 19px;
    height:19px;
    margin-right: 10px;
    color: #344c64;
}












/* Estilos de la barra de navegación - Versión mejorada y optimizada para móviles */
.dock-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    width: 100%;
    max-width: 600px;
    z-index: 999;
    padding: 0 10px;
    transition: all 0.3s ease;
}

.dock {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.dock-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 14px;
    margin-bottom: 6px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.dock-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0));
    border-radius: 14px 14px 0 0;
    opacity: 0.5;
}
    
.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    transform-origin: bottom;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    cursor: pointer;
    padding: 0 5px;
}

/* Estado activo mejorado */
.dock-item.active .dock-icon {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 8px 16px rgba(52, 76, 100, 0.15);
    border: 1px solid rgba(52, 76, 100, 0.1);
}

.dock-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    width: 5px;
    height: 5px;
    background-color: #344c64;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(52, 76, 100, 0.3);
}

.dock-text {
    font-size: 11px;
    font-weight: 600;
    color: #344c64;
    margin-top: 5px;
    position: static;
    padding: 0;
    white-space: nowrap;
    text-align: center;
    transition: all 0.2s ease;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.dock-icon svg {
    width: 36px;
    height: 36px;
    color: #344c64;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Animación de rebote mejorada */
@keyframes bounce {
    0% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    70% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.dock-item:nth-child(1) .dock-icon { animation: bounce 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s; }
.dock-item:nth-child(2) .dock-icon { animation: bounce 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s; }
.dock-item:nth-child(3) .dock-icon { animation: bounce 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s; }
.dock-item:nth-child(4) .dock-icon { animation: bounce 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s; }
.dock-item:nth-child(5) .dock-icon { animation: bounce 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s; }

/* Hover mejorado para el ícono en dispositivos no táctiles */
@media (hover: hover) {
    .dock-item:not(.active):hover .dock-icon {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
    }
    
    .dock-item:not(.active):hover .dock-text {
        color: #1a2c44;
        transform: scale(1.05);
    }
}

/* Estilos para el contenido de las diferentes secciones */
.section-content {
    display: none;
    animation: fadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-content.active {
    display: block;
}

/* Desktop layout (above iPad Pro sizes) */
@media (min-width: 1367px) {
    .dock-container {
        left: 24px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        width: 84px;
        max-width: none;
        max-height: 600px;
        padding: 10px 0;
    }
    
    .dock {
        flex-direction: column;
        height: 100%;
        width: auto;
        border-radius: 20px;
        padding: 12px 8px;
    }
    
    .dock-icon {
        margin: 8px 0;
    }
    
    .dock-item {
        padding: 6px 0;
        transform-origin: center;
    }
    
    .dock-item.active .dock-icon {
        transform: translateX(10px) scale(1.1);
    }
    
    .dock-item.active::after {
        right: -5px;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
    }
    
    @keyframes bounce {
        0% { transform: translateX(0); }
        40% { transform: translateX(12px); }
        70% { transform: translateX(5px); }
        100% { transform: translateX(0); }
    }
    
    @media (hover: hover) {
        .dock-item:not(.active):hover .dock-icon {
            transform: translateX(8px) scale(1.05);
        }
    }
}

/* Para tablets (including iPad Pro) */
@media (max-width: 1366px) {
    .dock-container {
        bottom: 15px;
        max-width: 520px;
    }
    
    .dock-icon {
        width: 44px;
        height: 44px;
    }
    
    .dock-icon svg {
        width: 34px;
        height: 34px;
    }
    
    .dock-text {
        font-size: 10px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .content {
        padding: 1.5rem;
        padding-bottom: 100px;
    }
}

/* Para tablets pequeñas */
@media (max-width: 768px) {
    .dock-container {
        bottom: 15px;
        max-width: 450px;
    }
    
    .dock {
        padding: 8px;
        border-radius: 16px;
    }
    
    .dock-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    
    .dock-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .dock-text {
        font-size: 10px;
        margin-top: 4px;
    }
    
    .dock-item.active .dock-icon {
        transform: translateY(-8px) scale(1.08);
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }
    
    p {
        font-size: 1.05rem;
    }
    
    .content {
        padding: 1.25rem;
        padding-bottom: 90px;
    }
    
    .section-content {
        padding: 16px;
    }
    
    .top-navbar {
        height: 45px;
    }
    
    .logo {
        height: 28px;
    }
    
    body {
        padding-top: 5px;
    }
    
    .dropdown-menu {
        top: 45px;
    }
}

/* Para móviles */
@media (max-width: 576px) {
    .dock-container {
        bottom: 10px;
        max-width: 100%;
        padding: 0 8px;
    }
    
    .dock {
        padding: 6px 4px;
        border-radius: 15px;
    }
    
    .dock-item {
        padding: 0 2px;
    }
    
    .dock-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        margin-bottom: 3px;
    }
    
    .dock-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .dock-text {
        font-size: 9px;
        margin-top: 3px;
        letter-spacing: 0;
    }
    
    .dock-item.active .dock-icon {
        transform: translateY(-5px) scale(1.05);
    }
    
    h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .top-navbar {
        height: 42px;
    }
    
    .logo-container {
        padding-left: 15px;
    }
    
    .hamburger-menu {
        margin-right: 15px;
        width: 22px;
        height: 22px;
    }
    
    .logo {
        height: 26px;
    }
    
    .app-name {
        font-size: 14px;
    }
    
    .dropdown-menu {
        top: 42px;
        width: 180px;
        right: 10px;
    }
    
    body {
        padding-top: 3px;
    }
    
    .content {
        padding: 1rem;
        padding-bottom: 80px;
    }
    
    .section-content {
        padding: 15px;
        border-radius: 14px;
    }
}

/* Para móviles pequeños */
@media (max-width: 400px) {
    .dock-icon {
        width: 34px;
        height: 34px;
    }
    
    .dock-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .dock-text {
        font-size: 8px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .dropdown-item {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .dropdown-item svg {
        width: 26px;
        height: 26px;
    }
}

/* Para móviles muy pequeños */
@media (max-width: 320px) {
    .dock-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }
    
    .dock-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .dock-text {
        font-size: 7px;
    }
    
    .dock {
        padding: 5px 3px;
        border-radius: 12px;
    }
    
    .content {
        padding: 0.75rem;
        padding-bottom: 75px;
    }
    
    .section-content {
        padding: 12px;
    }
    
    .app-name {
        font-size: 13px;
    }
}

/* Orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .dock-container {
        bottom: 5px;
    }
    
    .dock {
        padding: 5px;
    }
    
    .dock-icon {
        width: 32px;
        height: 32px;
    }
    
    .dock-text {
        font-size: 7px;
        margin-top: 2px;
    }
    
    .dock-icon::after {
        height: 30%;
    }
    
    .content {
        padding-bottom: 65px;
    }
}

/* Estilos para dispositivos de alta densidad de píxeles */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .dock, .top-navbar {
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    }
}

/* Mejoras para tablets grandes en modo landscape */
@media (min-width: 992px) and (max-width: 1366px) and (orientation: landscape) {
    .content {
        max-width: 900px;
    }
}

/* Estilos para navegadores antiguos que no soportan backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
    .dock, .top-navbar, .dropdown-menu {
        background: rgba(255, 255, 255, 0.97);
    }
}

/* Deshabilitar efecto hover en dispositivos táctiles */
@media (hover: none) {
    .dock-item:hover .dock-icon {
        transform: none;
    }
    
    .dock-item.active .dock-icon {
        transform: translateY(-5px) scale(1.05);
    }
    
    .dock-item:hover .dock-text {
        transform: none;
    }
    
    .dropdown-item:hover {
        background-color: transparent;
    }
}
















/* Base styles for cookie consent banner */
#accept-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #f4f5f4;
  color: #3a4f64;
  padding: 24px 40px;
  font-size: 16px; /* Aumentado de 14px a 16px para mejor legibilidad */
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  box-sizing: border-box;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Añadido sombra sutil */
}

#accept-banner.show {
  transform: translateY(0);
}

#accept-banner span {
  flex: 1;
  font-weight: 400;
  line-height: 1.6; /* Aumentado de 1.5 a 1.6 */
  max-width: 80%; /* Aumentado de 75% a 80% */
}

#accept-button {
  background-color: #3a4f64;
  color: white;
  border: none;
  padding: 12px 32px; /* Aumentado de 8px 24px */
  cursor: pointer;
  font-size: 16px; /* Aumentado de 14px */
  border-radius: 6px; /* Aumentado de 4px */
  font-weight: 500;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

#accept-button:hover {
  background-color: #2e3f52;
}

#accept-banner a {
  color: #3a4f64;
  text-decoration: underline;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #accept-banner {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 16px; /* Añadido espaciado entre elementos */
  }
  
  #accept-banner span {
    max-width: 100%;
    margin-bottom: 0;
    font-size: 15px;
  }
  
  #accept-button {
    width: 100%;
    max-width: 200px; /* Aumentado de 160px */
    padding: 10px 24px;
  }
}

@media (max-width: 480px) {
  #accept-banner {
    padding: 16px;
  }
  
  #accept-banner span {
    font-size: 14px; /* Reducido gradualmente */
    line-height: 1.5;
  }
  
  #accept-button {
    font-size: 14px;
    padding: 8px 20px;
    max-width: 180px;
  }
}

/* Accessibility */
#accept-button:focus {
  outline: 3px solid #3a4f64; /* Aumentado de 2px */
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #accept-banner {
    transition: none;
  }
  
  #accept-button {
    transition: none;
  }
}

/* Notch support */
@supports (padding: max(0px)) {
  #accept-banner {
    padding-left: max(40px, env(safe-area-inset-left));
    padding-right: max(40px, env(safe-area-inset-right));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  
  @media (max-width: 768px) {
    #accept-banner {
      padding-left: max(20px, env(safe-area-inset-left));
      padding-right: max(20px, env(safe-area-inset-right));
      padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
  }
  
  @media (max-width: 480px) {
    #accept-banner {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
      padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
  }

/* Estilos para el Splash Screen */
.splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
    background: url('https://luni.site/wallpaper-luni-site-blue-2.avif') center/cover no-repeat; /* Imagen por defecto (PC) */
    backdrop-filter: blur(5px);
}

/* Imagen para tablets (pantallas medianas: 481px a 1024px) */
@media (min-width: 481px) and (max-width: 1024px) {
    .splash-container {
        background: url('https://luni.site/wallpaper-luni-site-blue-2.avif') center/cover no-repeat; /* Imagen para tablets */
        backdrop-filter: blur(5px);
    }
}

/* Imagen para celulares (pantallas pequeñas: hasta 480px) */
@media (max-width: 480px) {
    .splash-container {
        background: url('https://luni.site/wallpaper-luni-site-blue-2.avif') center/cover no-repeat; /* Imagen para celulares */
        backdrop-filter: blur(5px);
    }
}

/* Estilo para la imagen del logo */
.splash-image {
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
    border-radius: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transform: translateY(0);
    animation: float-logo 3s ease-in-out infinite;
    border: 6px solid rgba(255, 255, 255, 0.2); /* Borde blanco con 80% de opacidad */
}
@keyframes float-logo {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

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

  
        
        /* Loading bar - macOS style */
        .loading-bar {
            width: 100px;
            height: 5px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 1.5px;
            margin-top: 30px;
            overflow: hidden;
        }
        
        .loading-progress {
            height: 100%;
            width: 30%;
            background: rgba(255,255,255, 0.5);
            border-radius: 1.5px;
            animation: loading-animation 1.5s infinite ease-in-out;
        }
        
        @keyframes loading-animation {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(300%); }
        }
        
        @keyframes float-logo {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-15px);
            }
        }
        
        /* Efecto de desvanecimiento del splash después de un tiempo */
        .splash-container.fade-out {
            opacity: 0;
            visibility: hidden;
        }
        
        /* Responsive styles */
        @media (max-width: 768px) {
            .splash-image {
                width: 140px;
                height: 140px;
                border-radius: 30px;
            }
            
            .loading-bar {
                width: 90px;
            }
        }
        
        @media (max-width: 480px) {
            .splash-image {
                width: 120px;
                height: 120px;
                border-radius: 30px;
            }
            
            .loading-bar {
                width: 80px;
            }
        }
        
        
























/* Minimalist notifications with gradients - Light theme only */
.notifications-container {
    position: fixed;
    top: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px; 
    pointer-events: none;
    width: 100%;
    justify-content: center;
    align-items: center;
    left: 0;
    right: 0;
}

/* Base notification styles - more minimalist with fixed height */
.notification {
    display: none;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: none;
    padding: 16px 18px;
    width: 90%;
    max-width: 500px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
                transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 999999;
    margin: 0 auto;
    border: none;
    overflow: auto;
}

/* Specific gradient for notification 1: blue and green */
#notification-1 {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.92) 0%, rgba(64, 207, 169, 0.92) 100%);
    height: 90px;
}

#notification-1 .notification-title,
#notification-1 .notification-message,
#notification-1 .notification-icon,
#notification-1 .close-boton-notificacion svg {
    color: white;
}

#notification-1 .notification-icon {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Specific gradient for notification 2: pink and yellow */
#notification-2 {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.92) 0%, rgba(255, 215, 0, 0.92) 100%);
    height: 90px;
}

#notification-2 .notification-title,
#notification-2 .notification-message,
#notification-2 .notification-icon,
#notification-2 .close-boton-notificacion svg {
    color: white;
}

#notification-2 .notification-icon {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Specific gradient for notification 3: green and purple */
#notification-3 {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.92) 0%, rgba(142, 68, 173, 0.92) 100%);
    height: 90px;
}

#notification-3 .notification-title,
#notification-3 .notification-message,
#notification-3 .notification-icon,
#notification-3 .close-boton-notificacion svg {
    color: white;
}

#notification-3 .notification-icon {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Special case for notification with share buttons */
#notification-2.notification {
    height: auto;
    min-height: 90px;
}

.notification.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.notification.hide {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
                transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 25px;
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    border-radius: 8px;
    flex-shrink: 0;
    font-size: 16px;
}

.notification-text {
    flex: 1;
    padding: 2px 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-height: 70px;
    overflow-y: auto;
}

.notification-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.notification-message {
    font-size: 14px;
    line-height: 1.4;
}

.close-boton-notificacion {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    z-index: 1000000;
    width: 24px;
    height: 24px;
}

.close-boton-notificacion:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Share buttons styles - horizontally aligned and compact */
.share-buttons {
    display: flex;
    gap: 8px; /* Reduced gap between buttons */
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: center;
    flex-wrap: nowrap; /* Prevent wrapping */
    width: 100%;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; /* Smaller */
    height: 30px; /* Smaller */
    border-radius: 50%;
    transition: transform 0.2s, background-color 0.2s;
    z-index: 1000000;
    flex-shrink: 0;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: none;
}

.share-button:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

/* Clean fade-in animation */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.notification.show {
    animation: fadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .notification {
        padding: 14px 16px;
        width: 95%;
        height: 85px;
    }
    
    #notification-2.notification {
        height: auto;
        min-height: 85px;
    }
    
    .share-button {
        width: 28px; /* Even smaller on mobile */
        height: 28px;
    }
    
    .notification-icon {
        min-width: 34px;
        min-height: 34px;
    }
    
    .notification-text {
        max-height: 65px;
    }
    
    /* Keep social icons in a row on mobile */
    .share-buttons {
        gap: 6px; /* Even smaller gap on mobile */
    }
}
























/* Modal styles with proper z-index to appear above navigation */
.modal-contenido {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000; /* Ensure modal appears above all other elements */
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.modal-content-contenido {
  background-color: #ffffff;
  width: 98%;
  height: 98%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.modal-iframe-contenido {
  width: 100%;
  height: 100%;
  border: none;
}

.close-button-contenido {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  z-index: 1001; /* Higher than modal to ensure it's clickable */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.close-button-contenido:hover {
  background-color: rgba(255, 255, 255, 0.95);
}



 .close-button-contenido {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}



/* Modal styles with proper z-index to appear above navigation */
.modal-contenido {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000; /* Ensure modal appears above all other elements */
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.modal-content-contenido {
  background-color: #ffffff;
  width: 98%;
  height: 98%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.modal-iframe-contenido {
  width: 100%;
  height: 100%;
  border: none;
}

.close-button-contenido {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  z-index: 1001; /* Higher than modal to ensure it's clickable */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.close-button-contenido:hover {
  background-color: rgba(255, 255, 255, 0.95);
}








/* Base styles */







/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
}

body {
  background-color: #fdfdfd;
  color: #1d1d1f;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-top: 2px;
}

/* Main content container */
.content {
  padding-top: 1rem;
  padding-bottom: 120px;
  padding-left: 1px;
  padding-right: 1px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Animation for section content */
.section-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.section-content.active {
  display: block;
}

/* Header styles */
header-contenido {
  margin-bottom: 1.5rem;
}

/* Common styles for both sections */
.search-container-contenido,
.search-container-videos-contenido {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.search-bar-contenido,
.search-bar-videos-contenido {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border: 1px solid #e0e0e5;
  background-color: #ffffff;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-bar-contenido:focus,
.search-bar-videos-contenido:focus {
  border-color: #3a4f64;
  box-shadow: 0 0 0 3px rgba(58, 79, 100, 0.1);
}

/* Categories */
.categories-contenido,
.categories-videos-contenido {
  display: flex;
  gap: 0.50rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}

.categories-contenido::-webkit-scrollbar,
.categories-videos-contenido::-webkit-scrollbar {
  display: none;
}

.category-contenido,
.category-videos-contenido {
  padding: 0.5rem 1.25rem;
  background-color: #f8f8fa;
  border-radius: 1.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.category-contenido:hover,
.category-videos-contenido:hover {
  background-color: #e8e8ed;
}

.category-contenido.active,
.category-videos-contenido.active {
  background-color: #3a4f64;
  color: #ffffff;
  font-weight: 600;
}

/* Content list */
.content-list-contenido,
.content-list-videos-contenido {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-item-contenido,
.content-item-videos-contenido {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-item-contenido:hover,
.content-item-videos-contenido:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.content-image-contenido,
.content-image-videos-contenido {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  object-fit: cover;
  margin-right: 1rem;
  flex-shrink: 0;
}

.content-info-contenido,
.content-info-videos-contenido {
  flex-grow: 1;
  min-width: 0;
}

.content-title-contenido,
.content-title-videos-contenido {
  font-weight: 500;
  font-size: 1rem;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.content-details-contenido,
.content-details-videos-contenido {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6e6e73;
}

.content-subject-contenido,
.content-subject-videos-contenido {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

.unam-text-contenido,
.unam-text-videos-contenido {
  font-size: 0.875rem;
  color: #86868b;
}

/* Announcement */
.announcement-contenido {
  background: #f8f8fa;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6e6e73;
  border: 1px solid #e0e0e5;
}

.announcement-contenido strong {
  color: #3a4f64;
  font-weight: 600;
}

/* No results */
.no-results-contenido,
.no-results-videos-contenido {
  text-align: center;
  padding: 3rem 0;
  color: #86868b;
  font-size: 1rem;
  display: none;
}

/* Subject colors */
.subject-matematicas-contenido { background-color: #5a719a; color: #ffffff; }
.subject-fisica-contenido { background-color: #3a6487; color: #ffffff; }
.subject-quimica-contenido { background-color: #4b7781; color: #ffffff; }
.subject-biologia-contenido { background-color: #476a6d; color: #ffffff; }
.subject-historia-contenido { background-color: #6c5c7c; color: #ffffff; }
.subject-literatura-contenido { background-color: #854f64; color: #ffffff; }
.subject-geografia-contenido { background-color: #2d6d78; color: #ffffff; }
.subject-informatica-contenido { background-color: #3a5064; color: #ffffff; }
.subject-economia-contenido { background-color: #4f6472; color: #ffffff; }
.subject-derecho-contenido { background-color: #5d4d64; color: #ffffff; }
.subject-medicina-contenido { background-color: #37647c; color: #ffffff; }
.subject-psicologia-contenido { background-color: #6a5078; color: #ffffff; }

/* Responsive Styles */

/* Large desktop and large iPads (mosaic layout) */
@media (min-width: 1025px) {
  .content {
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 1px;
    padding-right: 1px;
  }
  
  .search-bar-contenido,
  .search-bar-videos-contenido {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }
  
  .category-contenido,
  .category-videos-contenido {
    font-size: 1rem;
    padding: 0.625rem 1.5rem;
  }
  
  .content-list-contenido,
  .content-list-videos-contenido {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
  }
  
  .content-item-contenido,
  .content-item-videos-contenido {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    min-height: 200px;
  }
  
  .content-image-contenido,
  .content-image-videos-contenido {
    width: 100%;
    height: 120px;
    margin-right: 0;
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
  }
  
  .content-info-contenido,
  .content-info-videos-contenido {
    width: 100%;
  }
  
  .content-title-contenido,
  .content-title-videos-contenido {
    font-size: 1rem;
  }
  
  .content-subject-contenido,
  .content-subject-videos-contenido {
    font-size: 0.875rem;
    padding: 0.375rem 1rem;
  }
  
  .unam-text-contenido,
  .unam-text-videos-contenido {
    font-size: 0.9375rem;
  }
  
  .content-details-contenido,
  .content-details-videos-contenido {
    flex-direction: row;
    width: 100%;
  }
  
  .content-item-contenido:hover,
  .content-item-videos-contenido:hover {
    transform: translateY(-4px);
  }
  
  .announcement-contenido {
    margin-bottom: 2rem;
    font-size: 1rem;
  }
}

/* Tablets - using the same grid layout as desktop */
@media (min-width: 768px) and (max-width: 1024px) {
  .content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding-left: 1px;
    padding-right: 1px;
  }
  
  .search-bar-contenido,
  .search-bar-videos-contenido {
    font-size: 0.9375rem;
    padding: 0.75rem 1.25rem;
  }
  
  .category-contenido,
  .category-videos-contenido {
    font-size: 0.9375rem;
    padding: 0.5rem 1.25rem;
  }
  
  /* Apply desktop grid layout for tablets */
  .content-list-contenido,
  .content-list-videos-contenido {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
  }
  
  .content-item-contenido,
  .content-item-videos-contenido {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    min-height: 180px;
  }
  
  .content-image-contenido,
  .content-image-videos-contenido {
    width: 100%;
    height: 100px;
    margin-right: 0;
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
  }
  
  .content-info-contenido,
  .content-info-videos-contenido {
    width: 100%;
  }
  
  .content-title-contenido,
  .content-title-videos-contenido {
    font-size: 1rem;
  }
  
  .content-details-contenido,
  .content-details-videos-contenido {
    flex-direction: row;
    width: 100%;
  }
}

/* Mobile landscape and small tablets */
@media (min-width: 481px) and (max-width: 767px) {
  .content {
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1px;
    padding-right: 1px;
  }
  
  .search-bar-contenido,
  .search-bar-videos-contenido {
    font-size: 0.875rem;
  }
  
  .category-contenido,
  .category-videos-contenido {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  .content-image-contenido,
  .content-image-videos-contenido {
    width: 3.75rem;
    height: 3.75rem;
  }
  
  /* Better spacing for mobile landscape */
  .content-item-contenido,
  .content-item-videos-contenido {
    padding: 0.875rem;
  }
  
  .content-title-contenido,
  .content-title-videos-contenido {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    white-space: normal; /* Allow titles to wrap on smaller screens */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Mobile portrait - MODIFIED */
@media (max-width: 480px) {
  .content {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 1px;
    padding-right: 1px;
  }
  
  .search-container-contenido,
  .search-container-videos-contenido {
    margin-bottom: 1rem;
  }
  
  .search-bar-contenido,
  .search-bar-videos-contenido {
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
    border-radius: 0.875rem;
  }
  
  .categories-contenido,
  .categories-videos-contenido {
    margin-bottom: 1rem;
    gap: 0.5rem;
  }
  
  .category-contenido,
  .category-videos-contenido {
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
  }
  
  .content-list-contenido,
  .content-list-videos-contenido {
    gap: 0.75rem;
  }
  
  .content-item-contenido,
  .content-item-videos-contenido {
    padding: 0.875rem;
    border-radius: 0.875rem;
    align-items: flex-start;
    min-height: 5.5rem; /* Added increased height for content items */
  }
  
  .content-image-contenido,
  .content-image-videos-contenido {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    margin-right: 0.75rem;
  }
  
  .content-title-contenido,
  .content-title-videos-contenido {
    font-size: 0.9375rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.375rem;
  }
  
  .content-subject-contenido,
  .content-subject-videos-contenido {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
  }
  
  /* Modified to position UNAM text to the right */
  .content-details-contenido,
  .content-details-videos-contenido {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.375rem;
  }
  
  /* Styling UNAM text for right alignment */
  .unam-text-contenido,
  .unam-text-videos-contenido {
    font-size: 0.8125rem;
    margin-left: auto; /* Push to the right */
    text-align: right;
  }
  
  /* Better touch targets for mobile */
  .content-item-contenido:active,
  .content-item-videos-contenido:active {
    background-color: #f5f5f7;
  }
  
  /* Announcement adjustment for mobile */
  .announcement-contenido {
    padding: 1.25rem;
    margin-top: 1.25rem;
    font-size: 0.8125rem;
  }
}

/* Extra small devices (smaller phones) - MODIFIED */
@media (max-width: 360px) {
  .content {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    padding-left: 1px;
    padding-right: 1px;
  }
  
  .search-bar-contenido,
  .search-bar-videos-contenido {
    padding: 0.5rem 0.875rem;
  }
  
  .content-image-contenido,
  .content-image-videos-contenido {
    width: 3rem;
    height: 3rem;
  }
  
  .content-title-contenido,
  .content-title-videos-contenido {
    font-size: 0.875rem;
  }
  
  .category-contenido,
  .category-videos-contenido {
    padding: 0.3125rem 0.75rem;
  }
  
  /* Increased height for extra small devices */
  .content-item-contenido,
  .content-item-videos-contenido {
    min-height: 5rem;
  }
}


















/* Sección de convocatoria - Estilo minimalista moderno */
.convocatoria-section-inicio-i {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.convocatoria-title-inicio-i {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #c0bd0f;
  font-weight: 500;
}

.convocatoria-description-inicio-i {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #c0bd0f;
  margin-bottom: 0.75rem;
}

.btn-convocatoria-inicio-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.125rem;
  background-color: rgba(52, 76, 100, 0.2); /* #344c64 al 20% de opacidad */
  color: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.25); /* Borde blanco semitransparente */
  cursor: pointer;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  
  /* Efecto hover */
  &:hover {
    background-color: rgba(52, 76, 100, 0.3); /* 30% de opacidad al hover */
    transform: translateY(-1px);
    box-shadow: 
      0 6px 12px rgba(0, 0, 0, 0.15),
      inset 0 1px 2px rgba(255, 255, 255, 0.15);
  }
  
  /* Efecto active */
  &:active {
    transform: translateY(0);
    background-color: rgba(52, 76, 100, 0.25);
  }
}

/* Icono para el botón de convocatoria - sutilmente espaciado */
.btn-convocatoria-inicio-i i {
  margin-right: 0.375rem;
  font-size: 0.875rem;
}

/* Adaptaciones responsive */
@media (max-width: 480px) {
  .convocatoria-section-inicio-i {
    padding: 0.75rem;
    margin-bottom: 0.625rem;
  }
  
  .convocatoria-title-inicio-i {
    font-size: 1rem;
    margin-bottom: 0.375rem;
  }
  
  .convocatoria-description-inicio-i {
    font-size: 0.8125rem;
    margin-bottom: 0.625rem;
  }
  
  .btn-convocatoria-inicio-i {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .convocatoria-section-inicio-i {
    padding: 0.875rem;
  }
  
  .btn-convocatoria-inicio-i {
    padding: 0.5rem 1rem;
  }
}




/* Contenedor principal - eliminado padding superior */
.container-inicio-i {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem; /* Eliminado padding superior */
}
.section-inicio-i-1 {
  background-image: url('https://luni.site/wallpaper-luni-site-blue-2.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 15px;
  margin-top: 0;
  margin-bottom: 15px;
  transition: transform 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 90%; /* Cambiado de 35% a 60% (incremento del 25%) */
}
/* Primera sección sin margen superior */
.section-inicio-i:first-child {
  margin-top: 0;
}

.section-inicio-i:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-title-inicio-i {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #3a4f64;
  font-weight: 600;
}

.section-content-inicio-i {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #333333;
}

/* Sección específica - eliminado margen superior */
.section-inicio-i-1 {
  background-image: url('https://luni.site/wallpaper-luni-site-blue-2.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 15px;
  margin-top: 0; /* Asegurar que no hay margen superior */
  margin-bottom: 15px;
  transition: transform 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
   height:45vh;


}

.section-inicio-i-1:hover {
  transform: translateY(-5px);
}

.section-title-inicio-i-1 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #1d1d1f;
  font-weight: 600;
}

.section-content-inicio-i-1 {
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.5;
  color: #494949;
}

/* Bienvenida - eliminado padding superior */
.welcome-section-inicio-i {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 1rem 1rem; /* Reducido padding superior */
  background-color: #f8f9fa;
  border-radius: 0.75rem;
  margin-top: 0; /* Asegurar que no hay margen superior */
}

.logo-welcome-inicio-i-1 {
  height: 100px;
  width: auto;
  margin-bottom: 15px;
  border-radius: 25px;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.05),
    inset 0 0 15px rgba(255, 255, 255, 0.2); /* Sombra interior para efecto glass */
  transition: transform 0.3s ease;
  transform: translateY(0);
  animation: float-logo 4s ease-in-out infinite;
  border: 5px solid rgba(255, 255, 255, 0.1); /* Borde casi transparente */
  backdrop-filter: blur(2px); /* Efecto de desenfoque para mejor integración */
  background-color: rgba(255, 255, 255, 0.1); /* Fondo semitransparente */
}
.logo-welcome-inicio-i:hover {
  transform: scale(1.03);
}

.welcome-section-inicio-i-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px 20px 20px; /* Reducido padding superior */
  margin-top: 0; /* Asegurar que no hay margen superior */
}



.logo-welcome-inicio-i-1:hover {
  transform: scale(1.05);
}

.changing-text-inicio-i {
  font-size: 1.125rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0.5rem 0;
  min-height: 2.25rem;
  transition: opacity 0.5s ease;
}

/* Guías */
.guides-grid-inicio-i {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(10rem, 35vw, 16rem), 1fr));
  gap: 0.625rem;
  margin-top: 0; /* Asegurar que no hay margen superior */
}

.guide-card-inicio-i {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 0.625rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.guide-card-inicio-i:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.guide-title-inicio-i {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #3a4f64;
}

.guide-description-inicio-i {
  font-size: 0.875rem;
  color: #555555;
  line-height: 1.4;
}

.guide-image-inicio-i {
  width: 100%;
  height: clamp(6rem, 16vw, 8rem);
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: transform 0.2s ease;
}

.guide-image-inicio-i:hover {
  transform: scale(1.03);
}

/* Botones */
.btn-inicio-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background-color: #3a4f64;
  color: #ffffff;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  min-width: 5rem;
}

.btn-inicio-i:hover,
.btn-inicio-i:focus {
  background-color: #2e3f51;
  transform: translateY(-0.125rem);
}

.btn-inicio-i:focus {
  box-shadow: 0 0 0 0.25rem rgba(58, 79, 100, 0.3);
}

/* Tips */
.tips-list-inicio-i {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(10rem, 35vw, 16rem), 1fr));
  gap: 0.625rem;
  margin-top: 0; /* Asegurar que no hay margen superior */
}

.tip-card-inicio-i {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 0.625rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tip-card-inicio-i:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.tip-number-inicio-i {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3a4f64;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer-inicio-i {
  background-color: #f8f9fa;
  border-radius: 0.75rem;
  padding: 0.75rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-top: 0; /* Asegurar que no hay margen superior */
}

.footer-inicio-i p {
  color: #555555;
  font-size: 0.875rem;
}










.social-section-inicio-i {
    text-align: center;
    padding: 2rem 0;
    background-color: transparent;
}

.section-title-inicio-i {
    color: #344c64;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.social-container-inicio-i {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: transparent;
    border-radius: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 4vw, 35px);
    width: 100%;
    max-width: 600px;
}

.social-icon {
    width: clamp(60px, 12vw, 70px);
    height: clamp(60px, 12vw, 70px);
    border-radius: 50%;
    background-color: white;
    color: #3a4f64;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.social-icon:hover {
    color: white !important;
}

.social-icon:hover::before {
    transform: scale(1.5);
}

.social-icon.facebook::before {
    background-color: #1877F2;
}

.social-icon.whatsapp::before {
    background-color: #25D366;
}

.social-icon.tiktok::before {
    background-color: #000000;
}

.social-icon.youtube::before {
    background-color: #FF0000;
}

.social-icon.gmail::before {
    background-color: #EA4335;
}

.social-icon.instagram::before {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
        
        
/* Media Queries optimizados */
@media (max-width: 480px) {
  body {
    margin-top: 0; /* Eliminar margen superior del body */
  }
  
  html {
    margin-top: 0; /* Eliminar margen superior del html */
  }
  
  .container-inicio-i { 
    padding: 0 0px; /* Modificado a 5px de padding izquierdo y derecho */
  }
  
  .section-inicio-i { 
    padding: 0.625rem; 
    margin-bottom: 0.625rem;
    margin-top: 0; /* Asegurar que no hay margen superior */
  }
  
  .section-inicio-i-1 { 
    padding: 12px; 
    margin-bottom: 12px;
    margin-top: 0; /* Asegurar que no hay margen superior */
  }
  
  .guides-grid-inicio-i, .tips-list-inicio-i { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.5rem;
  }
  
  .guide-card-inicio-i {
    padding: 0.5rem;
  }
  
  .guide-title-inicio-i {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }
  
  .guide-description-inicio-i {
    font-size: 0.75rem;
  }
  
  .guide-image-inicio-i { 
    height: 4.5rem;
    margin-bottom: 0.25rem;
  }
  
  .section-title-inicio-i { 
    font-size: 1.125rem; 
    margin-bottom: 0.5rem;
  }
  
  .section-title-inicio-i-1 { 
    font-size: 16px; 
    margin-bottom: 8px;
  }
  
  .section-content-inicio-i { 
    font-size: 0.8125rem; 
    line-height: 1.4;
  }
  
  .section-content-inicio-i-1 { 
    font-size: 13px; 
    margin-bottom: 10px;
  }
  
  .welcome-section-inicio-i { 
    padding: 0.5rem 0.75rem 0.75rem; /* Reducido padding superior */
  }
  
  .welcome-section-inicio-i-1 { 
    padding: 10px 15px 15px; /* Reducido padding superior */
  }
  
  .changing-text-inicio-i { 
    font-size: 1rem; 
    min-height: 2rem;
  }
  
  .btn-inicio-i { 
    width: 100%; 
    padding: 0.625rem;
  }
  
  .social-container-inicio-i { 
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  .social-label-inicio-i { 
    font-size: 0.625rem; 
  }
  
  .social-icon-inicio-i { 
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.875rem;
  } 
  
  .logo-welcome-inicio-i-1 {
    height: 80px;
    margin-bottom: 10px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  body, html {
    margin-top: 0; /* Eliminar margen superior */
  }
  
  .container-inicio-i { 
    padding: 0 0.75rem; /* Eliminado padding superior */
  }
  
  .section-inicio-i { 
    padding: 0.75rem; 
    margin-bottom: 0.75rem;
    margin-top: 0; /* Asegurar que no hay margen superior */
  }
  
  .section-inicio-i-1 {
    padding: 15px;
    margin-bottom: 15px;
    margin-top: 0; /* Asegurar que no hay margen superior */
  }
  
  .guides-grid-inicio-i, .tips-list-inicio-i { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.625rem;
  }
  
  .section-title-inicio-i { 
    font-size: 1.125rem; 
    margin-bottom: 0.625rem;
  }
  
  .section-title-inicio-i-1 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .changing-text-inicio-i { 
    font-size: 1.0625rem; 
  }
  
  .social-container-inicio-i { 
    gap: 0.75rem;
  }
  
  .social-icon-inicio-i { 
    width: 2.125rem;
    height: 2.125rem;
    font-size: 0.9375rem;
  }
  
  .logo-welcome-inicio-i-1 {
    height: 90px;
  }
  
  .welcome-section-inicio-i { 
    padding: 0.5rem 0.75rem 0.75rem; /* Reducido padding superior */
  }
  
  .welcome-section-inicio-i-1 { 
    padding: 12px 15px 15px; /* Reducido padding superior */
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  body, html {
    margin-top: 0; /* Eliminar margen superior */
  }
  
  .container-inicio-i { 
    padding: 0 1rem; /* Eliminado padding superior */
  }
  
  .guides-grid-inicio-i { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 0.75rem;
  }
  
  .tips-list-inicio-i { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 0.75rem;
  }
  
  .section-title-inicio-i { 
    font-size: 1.25rem; 
  }
  
  .changing-text-inicio-i { 
    font-size: 1.25rem; 
  }
  
  .social-icon-inicio-i {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  .welcome-section-inicio-i { 
    padding: 0.625rem 1rem 1rem; /* Reducido padding superior */
  }
  
  .welcome-section-inicio-i-1 { 
    padding: 15px 20px 20px; /* Reducido padding superior */
  }
}

@media (min-width: 992px) {
  body, html {
    margin-top: 0; /* Eliminar margen superior */
  }
  
  .container-inicio-i { 
    padding: 0 1.25rem; /* Eliminado padding superior */
  }
  
  .section-inicio-i { 
    padding: 1.25rem; 
    margin-bottom: 1rem;
    margin-top: 0; /* Asegurar que no hay margen superior */
  }
  
  .guides-grid-inicio-i { 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1rem;
  }
  
  .tips-list-inicio-i { 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1rem;
  }
  
  .section-title-inicio-i { 
    font-size: 1.375rem;
  }
  
  .section-content-inicio-i { 
    font-size: 0.9375rem;
  }
  
  .changing-text-inicio-i { 
    font-size: 1.375rem;
  }
  
  .social-icon-inicio-i { 
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.125rem;
  }
  
  .welcome-section-inicio-i { 
    padding: 0.75rem 1.25rem 1.25rem; /* Reducido padding superior */
  }
  
  .welcome-section-inicio-i-1 { 
    padding: 20px 25px 25px; /* Reducido padding superior */
  }
}

/* Soporte para pantallas grandes */
@media (min-width: 1400px) {
  .container-inicio-i { 
    max-width: 1400px; 
    padding: 0 1.5rem; /* Eliminado padding superior */
  }
  
  .section-title-inicio-i { 
    font-size: 1.5rem;
  }
  
  .changing-text-inicio-i { 
    font-size: 1.375rem;
  }
}

/* Eliminación de espacios en el documento */
body, html {
  margin: 0;
  padding: 0;
}

/* Accesibilidad: Alto contraste */
@media (prefers-contrast: high) {
  .section-title-inicio-i { color: #2e3f51; }
  .section-content-inicio-i { color: #1a1a1a; }
  .btn-inicio-i { background-color: #2e3f51; }
  .footer-inicio-i p { color: #1a1a1a; }
  .social-label-inicio-i { color: #1a1a1a; }
  .changing-text-inicio-i { color: #ffffff; }
}

/* Animación para el logo */
@keyframes float-logo {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}






 


canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}
 .terms-section-inicio-i {
        margin-top: 20px;
        padding: 10px 0;
        text-align: center;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }
    
    .terms-container-inicio-i {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }
    
    .terms-link-inicio-i {
        color: #666;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.3s ease;
    }
    
    .terms-link-inicio-i:hover {
        color: #333;
        text-decoration: underline;
    }
    
    .terms-separator-inicio-i {
        color: #ccc;
        font-size: 14px;
    }
    
    
    
/* Theme switch wrapper */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.theme-switch-label {
    font-size: 14px;
    color: #1d1d1f;
    font-weight: 400;
}

/* Switch styles */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: #344c64;
}

input:checked + .slider:before {
    transform: translateX(20px);
}


















/* Dark mode styles */
body.dark-mode {
    background-color: #1d1d1f;
    color: #ffffff;
    background-image: url('https://luni.site/wallpaper-luni-site-blue-2.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.dark-mode::before {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .top-navbar {
    background: rgba(58, 79, 100, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.dark-mode .app-name,
body.dark-mode .hamburger-line,
body.dark-mode .dock-text,
body.dark-mode .dock-icon svg {
    color: #ffffff;
}

body.dark-mode .hamburger-line {
    background-color: #ffffff;
}

body.dark-mode .dock {
    background: rgba(58, 79, 100, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.dark-mode .dock-icon {
    background: rgba(58, 79, 100, 0.7);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .dock-icon::after {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
}

body.dark-mode .dock-item.active .dock-icon {
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    background: rgba(58, 79, 100, 0.9);
}

body.dark-mode .dock-item.active::after {
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

body.dark-mode .dropdown-menu {
    background: rgba(58, 79, 100, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.dark-mode .dropdown-item {
    color: #ffffff;
}

body.dark-mode .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .dropdown-item svg {
    color: #ffffff;
}

body.dark-mode .theme-switch-label {
    color: #ffffff;
}

body.dark-mode h1 {
    color: #ffffff;
}

body.dark-mode p {
    color: #ffffff;
}

body.dark-mode .ad-container {
    background: rgba(58, 79, 100, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .ad-wrapper {
    background: rgba(58, 79, 100, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

body.dark-mode .ad-label {
    color: #ffffff;
}

/* Responsive dark mode adjustments */
@media (max-width: 480px) {
    body.dark-mode {
        background-image: url('https://luni.site/wallpaper-luni-site-blue-2.avif');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
}

@media (min-width: 481px) and (max-width: 1024px) {
    body.dark-mode {
        background-image: url('https://luni.site/wallpaper-luni-site-blue-2.avif');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
}

/* Adjust dropdown item padding for switch */
.dropdown-item.theme-switch {
    padding: 12px 18px;
}

/* Asegurar que las imágenes y logos mantengan su opacidad completa */
body.dark-mode .logo,
body.dark-mode img,
body.dark-mode iframe {
    opacity: 1 !important;
}

/* Elementos adicionales con transparencia */
body.dark-mode button,
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: rgba(58, 79, 100, 0.7) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.dark-mode button:hover,
body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    background: rgba(58, 79, 100, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Dark mode styles para el dock */
body.dark-mode .dock-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    width: 100%;
    max-width: 600px;
    z-index: 999;
    padding: 0 10px;
    transition: all 0.3s ease;
}

body.dark-mode .dock {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    background: rgba(58, 79, 100, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .dock-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(58, 79, 100, 0.7);
    border-radius: 14px;
    margin-bottom: 6px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .dock-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    border-radius: 14px 14px 0 0;
    opacity: 0.5;
}

body.dark-mode .dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    transform-origin: bottom;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    cursor: pointer;
    padding: 0 5px;
}

body.dark-mode .dock-item.active .dock-icon {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(58, 79, 100, 0.9);
}

body.dark-mode .dock-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    width: 5px;
    height: 5px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

body.dark-mode .dock-text {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 5px;
    position: static;
    padding: 0;
    white-space: nowrap;
    text-align: center;
    transition: all 0.2s ease;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

body.dark-mode .dock-icon svg {
    width: 36px;
    height: 36px;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Hover mejorado para el ícono en dispositivos no táctiles */
@media (hover: hover) {
    body.dark-mode .dock-item:not(.active):hover .dock-icon {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
        background: rgba(58, 79, 100, 0.8);
    }
    
    body.dark-mode .dock-item:not(.active):hover .dock-text {
        color: #e0e0e0;
        transform: scale(1.05);
    }
}

/* Estilos para el contenido de las diferentes secciones */
body.dark-mode .section-content {
    display: none;
    animation: fadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.dark-mode .section-content.active {
    display: block;
}

/* Desktop layout (above iPad Pro sizes) */
@media (min-width: 1367px) {
    body.dark-mode .dock-container {
        left: 24px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        width: 84px;
        max-width: none;
        max-height: 600px;
        padding: 10px 0;
    }
    
    body.dark-mode .dock {
        flex-direction: column;
        height: 100%;
        width: auto;
        border-radius: 20px;
        padding: 12px 8px;
        background: rgba(58, 79, 100, 0.8);
    }
    
    body.dark-mode .dock-icon {
        margin: 8px 0;
    }
    
    body.dark-mode .dock-item {
        padding: 6px 0;
        transform-origin: center;
    }
    
    body.dark-mode .dock-item.active .dock-icon {
        transform: translateX(10px) scale(1.1);
    }
    
    body.dark-mode .dock-item.active::after {
        right: -5px;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
    }
    
    @media (hover: hover) {
        body.dark-mode .dock-item:not(.active):hover .dock-icon {
            transform: translateX(8px) scale(1.05);
            background: rgba(58, 79, 100, 0.8);
        }
    }
}

/* Para tablets (including iPad Pro) */
@media (max-width: 1366px) {
    body.dark-mode .dock-container {
        bottom: 15px;
        max-width: 520px;
    }
    
    body.dark-mode .dock-icon {
        width: 44px;
        height: 44px;
    }
    
    body.dark-mode .dock-icon svg {
        width: 34px;
        height: 34px;
    }
    
    body.dark-mode .dock-text {
        font-size: 10px;
    }
}

/* Para tablets pequeñas */
@media (max-width: 768px) {
    body.dark-mode .dock-container {
        bottom: 15px;
        max-width: 450px;
    }
    
    body.dark-mode .dock {
        padding: 8px;
        border-radius: 16px;
    }
    
    body.dark-mode .dock-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    
    body.dark-mode .dock-icon svg {
        width: 30px;
        height: 30px;
    }
    
    body.dark-mode .dock-text {
        font-size: 10px;
        margin-top: 4px;
    }
    
    body.dark-mode .dock-item.active .dock-icon {
        transform: translateY(-8px) scale(1.08);
    }
}

/* Para móviles */
@media (max-width: 576px) {
    body.dark-mode .dock-container {
        bottom: 10px;
        max-width: 100%;
        padding: 0 8px;
    }
    
    body.dark-mode .dock {
        padding: 6px 4px;
        border-radius: 15px;
    }
    
    body.dark-mode .dock-item {
        padding: 0 2px;
    }
    
    body.dark-mode .dock-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        margin-bottom: 3px;
    }
    
    body.dark-mode .dock-icon svg {
        width: 28px;
        height: 28px;
    }
    
    body.dark-mode .dock-text {
        font-size: 9px;
        margin-top: 3px;
        letter-spacing: 0;
    }
    
    body.dark-mode .dock-item.active .dock-icon {
        transform: translateY(-5px) scale(1.05);
    }
}

/* Para móviles pequeños */
@media (max-width: 400px) {
    body.dark-mode .dock-icon {
        width: 34px;
        height: 34px;
    }
    
    body.dark-mode .dock-icon svg {
        width: 26px;
        height: 26px;
    }
    
    body.dark-mode .dock-text {
        font-size: 8px;
    }
}

/* Para móviles muy pequeños */
@media (max-width: 320px) {
    body.dark-mode .dock-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }
    
    body.dark-mode .dock-icon svg {
        width: 24px;
        height: 24px;
    }
    
    body.dark-mode .dock-text {
        font-size: 7px;
    }
    
    body.dark-mode .dock {
        padding: 5px 3px;
        border-radius: 12px;
    }
}

/* Orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    body.dark-mode .dock-container {
        bottom: 5px;
    }
    
    body.dark-mode .dock {
        padding: 5px;
    }
    
    body.dark-mode .dock-icon {
        width: 32px;
        height: 32px;
    }
    
    body.dark-mode .dock-text {
        font-size: 7px;
        margin-top: 2px;
    }
    
    body.dark-mode .dock-icon::after {
        height: 30%;
    }
}

/* Deshabilitar efecto hover en dispositivos táctiles */
@media (hover: none) {
    body.dark-mode .dock-item:hover .dock-icon {
        transform: none;
    }
    
    body.dark-mode .dock-item.active .dock-icon {
        transform: translateY(-5px) scale(1.05);
    }
    
    body.dark-mode .dock-item:hover .dock-text {
        transform: none;
    }
}




/* Base styles for cookie consent banner */
#accept-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #f4f5f4;
  color: #3a4f64;
  padding: 24px 40px;
  font-size: 16px;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  box-sizing: border-box;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Dark mode styles for cookie banner */
body.dark-mode #accept-banner {
  background: rgba(58, 79, 100, 0.9);
  color: #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode #accept-banner a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
}

body.dark-mode #accept-button {
  background-color: rgba(58, 79, 100, 0.8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.dark-mode #accept-button:hover {
  background-color: rgba(58, 79, 100, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode #accept-button:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

#accept-banner.show {
  transform: translateY(0);
}

#accept-banner span {
  flex: 1;
  font-weight: 400;
  line-height: 1.6;
  max-width: 80%;
}

#accept-button {
  background-color: #3a4f64;
  color: white;
  border: none;
  padding: 12px 32px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

#accept-button:hover {
  background-color: #2e3f52;
}

#accept-banner a {
  color: #3a4f64;
  text-decoration: underline;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #accept-banner {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  #accept-banner span {
    max-width: 100%;
    margin-bottom: 0;
    font-size: 15px;
  }
  
  #accept-button {
    width: 100%;
    max-width: 200px;
    padding: 10px 24px;
  }
}

@media (max-width: 480px) {
  #accept-banner {
    padding: 16px;
  }
  
  #accept-banner span {
    font-size: 14px;
    line-height: 1.5;
  }
  
  #accept-button {
    font-size: 14px;
    padding: 8px 20px;
    max-width: 180px;
  }
}

/* Accessibility */
#accept-button:focus {
  outline: 3px solid #3a4f64;
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #accept-banner {
    transition: none;
  }
  
  #accept-button {
    transition: none;
  }
}

/* Notch support */
@supports (padding: max(0px)) {
  #accept-banner {
    padding-left: max(40px, env(safe-area-inset-left));
    padding-right: max(40px, env(safe-area-inset-right));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  
  @media (max-width: 768px) {
    #accept-banner {
      padding-left: max(20px, env(safe-area-inset-left));
      padding-right: max(20px, env(safe-area-inset-right));
      padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
  }
  
  @media (max-width: 480px) {
    #accept-banner {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
      padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
  }
}

/* Estilos para el Splash Screen */
.splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
    background: url('https://luni.site/wallpaper-luni-site-blue-2.avif') center/cover no-repeat;
    /* Removido backdrop-filter: blur(5px); */
}

/* Dark mode styles for splash screen */
body.dark-mode .splash-container {
    background: url('https://luni.site/wallpaper-luni-site-blue-2.avif') center/cover no-repeat;
    /* Removido backdrop-filter: blur(8px); */
}

body.dark-mode .splash-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 79, 100, 0.3);
    /* Removido backdrop-filter: blur(10px); */
    /* Removido -webkit-backdrop-filter: blur(10px); */
}

body.dark-mode .splash-image,
body.dark-mode .loading-bar {
    position: relative;
    z-index: 2;
}

body.dark-mode .loading-progress {
    background: rgba(255, 255, 255, 0.8);
}

/* Imagen para tablets (pantallas medianas: 481px a 1024px) */
@media (min-width: 481px) and (max-width: 1024px) {
    .splash-container {
        background: url('https://luni.site/wallpaper-luni-site-blue-2.avif') center/cover no-repeat;
        /* Removido backdrop-filter: blur(5px); */
    }
}

/* Imagen para celulares (pantallas pequeñas: hasta 480px) */
@media (max-width: 480px) {
    .splash-container {
        background: url('https://luni.site/wallpaper-luni-site-blue-2.avif') center/cover no-repeat;
        /* Removido backdrop-filter: blur(5px); */
    }
}

/* Estilo para la imagen del logo */
.splash-image {
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
    border-radius: 35px;
    /* Removido box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); */
    transform: translateY(0);
    animation: float-logo 3s ease-in-out infinite;
    /* Removido border: 6px solid rgba(255, 255, 255, 0.2); */
}

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

/* Loading bar - macOS style */
.loading-bar {
    width: 100px;
    height: 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1.5px;
    margin-top: 30px;
    overflow: hidden;
}

body.dark-mode .loading-bar {
    background: rgba(255, 255, 255, 0.2);
}

.loading-progress {
    height: 100%;
    width: 30%;
    background: rgba(255,255,255, 0.5);
    border-radius: 1.5px;
    animation: loading-animation 1.5s infinite ease-in-out;
}

@keyframes loading-animation {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* Efecto de desvanecimiento del splash después de un tiempo */
.splash-container.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Responsive styles */
@media (max-width: 768px) {
    .splash-image {
        width: 140px;
        height: 140px;
        border-radius: 30px;
    }
    
    .loading-bar {
        width: 90px;
    }
}

@media (max-width: 480px) {
    .splash-image {
        width: 120px;
        height: 120px;
        border-radius: 30px;
    }
    
    .loading-bar {
        width: 80px;
    }
}

/* Minimalist notifications with gradients */
.notifications-container {
    position: fixed;
    top: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px; 
    pointer-events: none;
    width: 100%;
    justify-content: center;
    align-items: center;
    left: 0;
    right: 0;
}

/* Base notification styles */
.notification {
    display: none;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: none;
    padding: 16px 18px;
    width: 90%;
    max-width: 500px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
                transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 999999;
    margin: 0 auto;
    border: none;
    overflow: auto;
}

/* Dark mode notification styles */
body.dark-mode .notification {
    background: rgba(58, 79, 100, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.dark-mode #notification-1 {
    background: rgba(58, 79, 100, 0.9);
    height: 90px;
}

body.dark-mode #notification-2 {
    background: rgba(58, 79, 100, 0.9);
    height: 90px;
}

body.dark-mode #notification-3 {
    background: rgba(58, 79, 100, 0.9);
    height: 90px;
}

body.dark-mode .notification-title,
body.dark-mode .notification-message,
body.dark-mode .notification-icon,
body.dark-mode .close-boton-notificacion svg {
    color: #ffffff;
}

body.dark-mode .notification-icon {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .close-boton-notificacion:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .share-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body.dark-mode .share-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .share-buttons {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Specific gradient for notification 1: blue and green - Light mode only */
body:not(.dark-mode) #notification-1 {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.92) 0%, rgba(64, 207, 169, 0.92) 100%);
    height: 90px;
}

body:not(.dark-mode) #notification-1 .notification-title,
body:not(.dark-mode) #notification-1 .notification-message,
body:not(.dark-mode) #notification-1 .notification-icon,
body:not(.dark-mode) #notification-1 .close-boton-notificacion svg {
    color: white;
}

body:not(.dark-mode) #notification-1 .notification-icon {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Specific gradient for notification 2: pink and yellow - Light mode only */
body:not(.dark-mode) #notification-2 {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.92) 0%, rgba(255, 215, 0, 0.92) 100%);
    height: 90px;
}

body:not(.dark-mode) #notification-2 .notification-title,
body:not(.dark-mode) #notification-2 .notification-message,
body:not(.dark-mode) #notification-2 .notification-icon,
body:not(.dark-mode) #notification-2 .close-boton-notificacion svg {
    color: white;
}

body:not(.dark-mode) #notification-2 .notification-icon {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Specific gradient for notification 3: green and purple - Light mode only */
body:not(.dark-mode) #notification-3 {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.92) 0%, rgba(142, 68, 173, 0.92) 100%);
    height: 90px;
}

body:not(.dark-mode) #notification-3 .notification-title,
body:not(.dark-mode) #notification-3 .notification-message,
body:not(.dark-mode) #notification-3 .notification-icon,
body:not(.dark-mode) #notification-3 .close-boton-notificacion svg {
    color: white;
}

body:not(.dark-mode) #notification-3 .notification-icon {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Special case for notification with share buttons */
#notification-2.notification {
    height: auto;
    min-height: 90px;
}

.notification.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.notification.hide {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
                transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 25px;
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    border-radius: 8px;
    flex-shrink: 0;
    font-size: 16px;
}

.notification-text {
    flex: 1;
    padding: 2px 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-height: 70px;
    overflow-y: auto;
}

.notification-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.notification-message {
    font-size: 14px;
    line-height: 1.4;
}

.close-boton-notificacion {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    z-index: 1000000;
    width: 24px;
    height: 24px;
}

.close-boton-notificacion:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Share buttons styles */
.share-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: transform 0.2s, background-color 0.2s;
    z-index: 1000000;
    flex-shrink: 0;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: none;
}

.share-button:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

/* Clean fade-in animation */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.notification.show {
    animation: fadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .notification {
        padding: 14px 16px;
        width: 95%;
        height: 85px;
    }
    
    #notification-2.notification {
        height: auto;
        min-height: 85px;
    }
    
    .share-button {
        width: 28px;
        height: 28px;
    }
    
    .notification-icon {
        min-width: 34px;
        min-height: 34px;
    }
    
    .notification-text {
        max-height: 65px;
    }
    
    .share-buttons {
        gap: 6px;
    }
}

/* Modal styles with proper z-index */
.modal-contenido {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

/* Dark mode modal styles */
body.dark-mode .modal-contenido {
  background-color: rgba(58, 79, 100, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.dark-mode .modal-content-contenido {
  background: rgba(58, 79, 100, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

body.dark-mode .close-button-contenido {
  background-color: rgba(58, 79, 100, 0.8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .close-button-contenido:hover {
  background-color: rgba(58, 79, 100, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-content-contenido {
  background-color: #ffffff;
  width: 98%;
  height: 98%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.modal-iframe-contenido {
  width: 100%;
  height: 100%;
  border: none;
}

.close-button-contenido {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  z-index: 1001;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.close-button-contenido:hover {
  background-color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
  .close-button-contenido {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}


/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
}

body {
  background-color: #fdfdfd;
  color: #1d1d1f;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-top: 5px;
  transition: all 0.3s ease;
}

/* Dark mode styles */
body.dark-mode {
  background-color: #1d1d1f;
  color: #ffffff;
  background-image: url('https://luni.site/wallpaper-luni-site-blue-2.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.dark-mode::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: -1;
}

/* Main content container */
.content {
  padding-top: 1rem;
  padding-bottom: 120px;
  padding-left: 1px;
  padding-right: 1px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Animation for section content */
.section-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.section-content.active {
  display: block;
}

/* Header styles */
header-contenido {
  margin-bottom: 1.5rem;
}

/* Common styles for both sections */
.search-container-contenido,
.search-container-videos-contenido {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.search-bar-contenido,
.search-bar-videos-contenido {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border: 1px solid #e0e0e5;
  background-color: #ffffff;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-bar-contenido:focus,
.search-bar-videos-contenido:focus {
  border-color: #3a4f64;
  box-shadow: 0 0 0 3px rgba(58, 79, 100, 0.1);
}

/* Dark mode search bars */
body.dark-mode .search-bar-contenido,
body.dark-mode .search-bar-videos-contenido {
  background: rgba(58, 79, 100, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .search-bar-contenido:focus,
body.dark-mode .search-bar-videos-contenido:focus {
  background: rgba(58, 79, 100, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

body.dark-mode .search-bar-contenido::placeholder,
body.dark-mode .search-bar-videos-contenido::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Categories */
.categories-contenido,
.categories-videos-contenido {
  display: flex;
  gap: 0.50rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.categories-contenido::-webkit-scrollbar,
.categories-videos-contenido::-webkit-scrollbar {
  display: none;
}

.category-contenido,
.category-videos-contenido {
  padding: 0.5rem 1.25rem;
  background-color: #f8f8fa;
  border-radius: 1.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.category-contenido:hover,
.category-videos-contenido:hover {
  background-color: #e8e8ed;
}

.category-contenido.active,
.category-videos-contenido.active {
  background-color: #3a4f64;
  color: #ffffff;
  font-weight: 600;
}

/* Dark mode categories */
body.dark-mode .category-contenido,
body.dark-mode .category-videos-contenido {
  background: rgba(58, 79, 100, 0.6);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .category-contenido:hover,
body.dark-mode .category-videos-contenido:hover {
  background: rgba(58, 79, 100, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .category-contenido.active,
body.dark-mode .category-videos-contenido.active {
  background: rgba(58, 79, 100, 0.9);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Content list */
.content-list-contenido,
.content-list-videos-contenido {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-item-contenido,
.content-item-videos-contenido {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-item-contenido:hover,
.content-item-videos-contenido:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode content items */
body.dark-mode .content-item-contenido,
body.dark-mode .content-item-videos-contenido {
  background: rgba(58, 79, 100, 0.7);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .content-item-contenido:hover,
body.dark-mode .content-item-videos-contenido:hover {
  background: rgba(58, 79, 100, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.content-image-contenido,
.content-image-videos-contenido {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  object-fit: cover;
  margin-right: 1rem;
  flex-shrink: 0;
}

/* Ensure images maintain full opacity in dark mode */
body.dark-mode .content-image-contenido,
body.dark-mode .content-image-videos-contenido {
  opacity: 1 !important;
}

.content-info-contenido,
.content-info-videos-contenido {
  flex-grow: 1;
  min-width: 0;
}

.content-title-contenido,
.content-title-videos-contenido {
  font-weight: 500;
  font-size: 1rem;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

/* Dark mode content titles */
body.dark-mode .content-title-contenido,
body.dark-mode .content-title-videos-contenido {
  color: #ffffff;
}

.content-details-contenido,
.content-details-videos-contenido {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6e6e73;
}

/* Dark mode content details */
body.dark-mode .content-details-contenido,
body.dark-mode .content-details-videos-contenido {
  color: rgba(255, 255, 255, 0.8);
}

.content-subject-contenido,
.content-subject-videos-contenido {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

.unam-text-contenido,
.unam-text-videos-contenido {
  font-size: 0.875rem;
  color: #86868b;
}

/* Dark mode UNAM text */
body.dark-mode .unam-text-contenido,
body.dark-mode .unam-text-videos-contenido {
  color: rgba(255, 255, 255, 0.7);
}

/* Announcement */
.announcement-contenido {
  background: #f8f8fa;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6e6e73;
  border: 1px solid #e0e0e5;
}

.announcement-contenido strong {
  color: #3a4f64;
  font-weight: 600;
}

/* Dark mode announcement */
body.dark-mode .announcement-contenido {
  background: rgba(58, 79, 100, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .announcement-contenido strong {
  color: #ffffff;
  font-weight: 600;
}

/* No results */
.no-results-contenido,
.no-results-videos-contenido {
  text-align: center;
  padding: 3rem 0;
  color: #86868b;
  font-size: 1rem;
  display: none;
}

/* Dark mode no results */
body.dark-mode .no-results-contenido,
body.dark-mode .no-results-videos-contenido {
  color: rgba(255, 255, 255, 0.6);
}

/* Subject colors - Enhanced for dark mode */
.subject-matematicas-contenido { background-color: #5a719a; color: #ffffff; }
.subject-fisica-contenido { background-color: #3a6487; color: #ffffff; }
.subject-quimica-contenido { background-color: #4b7781; color: #ffffff; }
.subject-biologia-contenido { background-color: #476a6d; color: #ffffff; }
.subject-historia-contenido { background-color: #6c5c7c; color: #ffffff; }
.subject-literatura-contenido { background-color: #854f64; color: #ffffff; }
.subject-geografia-contenido { background-color: #2d6d78; color: #ffffff; }
.subject-informatica-contenido { background-color: #3a5064; color: #ffffff; }
.subject-economia-contenido { background-color: #4f6472; color: #ffffff; }
.subject-derecho-contenido { background-color: #5d4d64; color: #ffffff; }
.subject-medicina-contenido { background-color: #37647c; color: #ffffff; }
.subject-psicologia-contenido { background-color: #6a5078; color: #ffffff; }

/* Dark mode subject enhancements */
body.dark-mode .subject-matematicas-contenido,
body.dark-mode .subject-fisica-contenido,
body.dark-mode .subject-quimica-contenido,
body.dark-mode .subject-biologia-contenido,
body.dark-mode .subject-historia-contenido,
body.dark-mode .subject-literatura-contenido,
body.dark-mode .subject-geografia-contenido,
body.dark-mode .subject-informatica-contenido,
body.dark-mode .subject-economia-contenido,
body.dark-mode .subject-derecho-contenido,
body.dark-mode .subject-medicina-contenido,
body.dark-mode .subject-psicologia-contenido {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */

/* Large desktop and large iPads (mosaic layout) */
@media (min-width: 1025px) {
  .content {
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 1px;
    padding-right: 1px;
  }
  
  .search-bar-contenido,
  .search-bar-videos-contenido {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }
  
  .category-contenido,
  .category-videos-contenido {
    font-size: 1rem;
    padding: 0.625rem 1.5rem;
  }
  
  .content-list-contenido,
  .content-list-videos-contenido {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
  }
  
  .content-item-contenido,
  .content-item-videos-contenido {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    min-height: 200px;
  }
  
  .content-image-contenido,
  .content-image-videos-contenido {
    width: 100%;
    height: 120px;
    margin-right: 0;
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
  }
  
  .content-info-contenido,
  .content-info-videos-contenido {
    width: 100%;
  }
  
  .content-title-contenido,
  .content-title-videos-contenido {
    font-size: 1rem;
  }
  
  .content-subject-contenido,
  .content-subject-videos-contenido {
    font-size: 0.875rem;
    padding: 0.375rem 1rem;
  }
  
  .unam-text-contenido,
  .unam-text-videos-contenido {
    font-size: 0.9375rem;
  }
  
  .content-details-contenido,
  .content-details-videos-contenido {
    flex-direction: row;
    width: 100%;
  }
  
  .content-item-contenido:hover,
  .content-item-videos-contenido:hover {
    transform: translateY(-4px);
  }
  
  .announcement-contenido {
    margin-bottom: 2rem;
    font-size: 1rem;
  }
}

/* Tablets - using the same grid layout as desktop */
@media (min-width: 768px) and (max-width: 1024px) {
  .content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding-left: 1px;
    padding-right: 1px;
  }
  
  .search-bar-contenido,
  .search-bar-videos-contenido {
    font-size: 0.9375rem;
    padding: 0.75rem 1.25rem;
  }
  
  .category-contenido,
  .category-videos-contenido {
    font-size: 0.9375rem;
    padding: 0.5rem 1.25rem;
  }
  
  /* Apply desktop grid layout for tablets */
  .content-list-contenido,
  .content-list-videos-contenido {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
  }
  
  .content-item-contenido,
  .content-item-videos-contenido {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    min-height: 180px;
  }
  
  .content-image-contenido,
  .content-image-videos-contenido {
    width: 100%;
    height: 100px;
    margin-right: 0;
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
  }
  
  .content-info-contenido,
  .content-info-videos-contenido {
    width: 100%;
  }
  
  .content-title-contenido,
  .content-title-videos-contenido {
    font-size: 1rem;
  }
  
  .content-details-contenido,
  .content-details-videos-contenido {
    flex-direction: row;
    width: 100%;
  }
}

/* Mobile landscape and small tablets */
@media (min-width: 481px) and (max-width: 767px) {
  .content {
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1px;
    padding-right: 1px;
  }
  
  .search-bar-contenido,
  .search-bar-videos-contenido {
    font-size: 0.875rem;
  }
  
  .category-contenido,
  .category-videos-contenido {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  .content-image-contenido,
  .content-image-videos-contenido {
    width: 3.75rem;
    height: 3.75rem;
  }
  
  /* Better spacing for mobile landscape */
  .content-item-contenido,
  .content-item-videos-contenido {
    padding: 0.875rem;
  }
  
  .content-title-contenido,
  .content-title-videos-contenido {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    white-space: normal; /* Allow titles to wrap on smaller screens */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Mobile portrait - MODIFIED */
@media (max-width: 480px) {
  .content {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 1px;
    padding-right: 1px;
  }
  
  .search-container-contenido,
  .search-container-videos-contenido {
    margin-bottom: 1rem;
  }
  
  .search-bar-contenido,
  .search-bar-videos-contenido {
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
    border-radius: 0.875rem;
  }
  
  .categories-contenido,
  .categories-videos-contenido {
    margin-bottom: 1rem;
    gap: 0.5rem;
  }
  
  .category-contenido,
  .category-videos-contenido {
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
  }
  
  .content-list-contenido,
  .content-list-videos-contenido {
    gap: 0.75rem;
  }
  
  .content-item-contenido,
  .content-item-videos-contenido {
    padding: 0.875rem;
    border-radius: 0.875rem;
    align-items: flex-start;
    min-height: 5.5rem; /* Added increased height for content items */
  }
  
  .content-image-contenido,
  .content-image-videos-contenido {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    margin-right: 0.75rem;
  }
  
  .content-title-contenido,
  .content-title-videos-contenido {
    font-size: 0.9375rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.375rem;
  }
  
  .content-subject-contenido,
  .content-subject-videos-contenido {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
  }
  
  /* Modified to position UNAM text to the right */
  .content-details-contenido,
  .content-details-videos-contenido {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.375rem;
  }
  
  /* Styling UNAM text for right alignment */
  .unam-text-contenido,
  .unam-text-videos-contenido {
    font-size: 0.8125rem;
    margin-left: auto; /* Push to the right */
    text-align: right;
  }
  
  /* Better touch targets for mobile */
  .content-item-contenido:active,
  .content-item-videos-contenido:active {
    background-color: #f5f5f7;
  }
  
  /* Dark mode touch targets */
  body.dark-mode .content-item-contenido:active,
  body.dark-mode .content-item-videos-contenido:active {
    background: rgba(58, 79, 100, 0.9);
  }
  
  /* Announcement adjustment for mobile */
  .announcement-contenido {
    padding: 1.25rem;
    margin-top: 1.25rem;
    font-size: 0.8125rem;
  }
}

/* Extra small devices (smaller phones) - MODIFIED */
@media (max-width: 360px) {
  .content {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    padding-left: 1px;
    padding-right: 1px;
  }
  
  .search-bar-contenido,
  .search-bar-videos-contenido {
    padding: 0.5rem 0.875rem;
  }
  
  .content-image-contenido,
  .content-image-videos-contenido {
    width: 3rem;
    height: 3rem;
  }
  
  .content-title-contenido,
  .content-title-videos-contenido {
    font-size: 0.875rem;
  }
  
  .category-contenido,
  .category-videos-contenido {
    padding: 0.3125rem 0.75rem;
  }
  
  /* Increased height for extra small devices */
  .content-item-contenido,
  .content-item-videos-contenido {
    min-height: 5rem;
  }
}

/* Dark mode responsive adjustments */
@media (max-width: 480px) {
  body.dark-mode {
    background-image: url('https://luni.site/wallpaper-luni-site-blue-2.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  body.dark-mode {
    background-image: url('https://luni.site/wallpaper-luni-site-blue-2.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
}

/* Ensure all images maintain opacity */
body.dark-mode img,
body.dark-mode iframe {
  opacity: 1 !important;
}

/* Additional elements with transparency */
body.dark-mode button,
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: rgba(58, 79, 100, 0.7) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.dark-mode button:hover,
body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
  background: rgba(58, 79, 100, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .content-item-contenido,
  .content-item-videos-contenido,
  .category-contenido,
  .category-videos-contenido,
  .search-bar-contenido,
  .search-bar-videos-contenido {
    transition: none;
  }
  
  .section-content {
    animation: none;
  }
}







.btn-convocatoria-inicio-i {
    position: relative;
    z-index: 5; /* Higher than .section-inicio-i-1::before */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background-color: #3a4f64;
    color: #ffffff;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-convocatoria-inicio-i:hover,
.btn-convocatoria-inicio-i:focus {
    background-color: #2e3f51;
    transform: translateY(-0.125rem);
    box-shadow: 0 0 0 0.25rem rgba(58, 79, 100, 0.3);
}

body.dark-mode .btn-convocatoria-inicio-i {
    background: rgba(58, 79, 100, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .btn-convocatoria-inicio-i:hover,
body.dark-mode .btn-convocatoria-inicio-i:focus {
    background: rgba(58, 79, 100, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-0.125rem);
}

/* Ensure overlay doesn’t block clicks */
body.dark-mode .section-inicio-i-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    z-index: 1;
    pointer-events: none; /* Allows clicks to pass through */
}

/* Mobile styles */
@media (max-width: 480px) {
    .btn-convocatoria-inicio-i {
        width: 100%;
        padding: 0.625rem;
        font-size: 0.8125rem;
        z-index: 5;
    }
}
}

/* Contenedor principal */
.container-inicio-i {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-inicio-i-1 {
  background-image: url('https://luni.site/wallpaper-luni-site-blue-2.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 15px;
  margin-top: 0;
  margin-bottom: 15px;
  transition: transform 0.2s ease;

  height: 45vh;
}

/* Dark mode section-inicio-i-1 */
body.dark-mode .section-inicio-i-1 {
  background-image: url('https://luni.site/wallpaper-luni-site-blue-2.avif');
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .section-inicio-i-1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  z-index: 1;
}

.section-inicio-i:first-child {
  margin-top: 0;
}

.section-inicio-i:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Dark mode section hover */
body.dark-mode .section-inicio-i:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.section-title-inicio-i {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #3a4f64;
  font-weight: 600;
}

/* Dark mode section title */
body.dark-mode .section-title-inicio-i {
  color: #ffffff;
}

.section-content-inicio-i {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #333333;
}

/* Dark mode section content */
body.dark-mode .section-content-inicio-i {
  color: rgba(255, 255, 255, 0.9);
}

.section-inicio-i-1:hover {
  transform: translateY(-5px);
}

/* Dark mode section-inicio-i-1 hover */
body.dark-mode .section-inicio-i-1:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.section-title-inicio-i-1 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #1d1d1f;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

/* Dark mode section title-inicio-i-1 */
body.dark-mode .section-title-inicio-i-1 {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-content-inicio-i-1 {
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.5;
  color: #494949;
  position: relative;
  z-index: 2;
}

/* Dark mode section content-inicio-i-1 */
body.dark-mode .section-content-inicio-i-1 {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}



/* Guías */
.guides-grid-inicio-i {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(10rem, 35vw, 16rem), 1fr));
  gap: 0.625rem;
  margin-top: 0;
}

.guide-card-inicio-i {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 0.625rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Dark mode guide card */
body.dark-mode .guide-card-inicio-i {
  background: rgba(58, 79, 100, 0.7);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.guide-card-inicio-i:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Dark mode guide card hover */
body.dark-mode .guide-card-inicio-i:hover {
  background: rgba(58, 79, 100, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-0.25rem);
}

.guide-title-inicio-i {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #3a4f64;
}

/* Dark mode guide title */
body.dark-mode .guide-title-inicio-i {
  color: #ffffff;
}

.guide-description-inicio-i {
  font-size: 0.875rem;
  color: #555555;
  line-height: 1.4;
}

/* Dark mode guide description */
body.dark-mode .guide-description-inicio-i {
  color: rgba(255, 255, 255, 0.8);
}

.guide-image-inicio-i {
  width: 100%;
  height: clamp(6rem, 16vw, 8rem);
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: transform 0.2s ease;
}

/* Dark mode guide image */
body.dark-mode .guide-image-inicio-i {
  opacity: 1 !important;
}

.guide-image-inicio-i:hover {
  transform: scale(1.03);
}

/* Botones */
.btn-inicio-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background-color: #3a4f64;
  color: #ffffff;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  min-width: 5rem;
}

.btn-inicio-i:hover,
.btn-inicio-i:focus {
  background-color: #2e3f51;
  transform: translateY(-0.125rem);
}

.btn-inicio-i:focus {
  box-shadow: 0 0 0 0.25rem rgba(58, 79, 100, 0.3);
}

/* Dark mode button */
body.dark-mode .btn-inicio-i {
  background: rgba(58, 79, 100, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .btn-inicio-i:hover,
body.dark-mode .btn-inicio-i:focus {
  background: rgba(58, 79, 100, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Tips */
.tips-list-inicio-i {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(10rem, 35vw, 16rem), 1fr));
  gap: 0.625rem;
  margin-top: 0;
}

.tip-card-inicio-i {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 0.625rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Dark mode tip card */
body.dark-mode .tip-card-inicio-i {
  background: rgba(58, 79, 100, 0.7);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tip-card-inicio-i:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Dark mode tip card hover */
body.dark-mode .tip-card-inicio-i:hover {
  background: rgba(58, 79, 100, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-0.25rem);
}

.tip-number-inicio-i {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3a4f64;
  margin-bottom: 0.5rem;
}

/* Dark mode tip number */
body.dark-mode .tip-number-inicio-i {
  color: #ffffff;
}

/* Footer */
.footer-inicio-i {
  background-color: #f8f9fa;
  border-radius: 0.75rem;
  padding: 0.75rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-top: 0;
}

/* Dark mode footer */
body.dark-mode .footer-inicio-i {
  background: rgba(58, 79, 100, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-inicio-i p {
  color: #555555;
  font-size: 0.875rem;
}

/* Dark mode footer text */
body.dark-mode .footer-inicio-i p {
  color: rgba(255, 255, 255, 0.8);
}

/* Social Section */
.social-section-inicio-i {
  text-align: center;
  padding: 2rem 0;
  background-color: transparent;
}

.section-title-inicio-i {
  color: #344c64;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Dark mode social section title */
body.dark-mode .section-title-inicio-i {
  color: #ffffff;
}

.social-container-inicio-i {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: transparent;
  border-radius: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 4vw, 35px);
  width: 100%;
  max-width: 600px;
}

.social-icon {
  width: clamp(60px, 12vw, 70px);
  height: clamp(60px, 12vw, 70px);
  border-radius: 50%;
  background-color: white;
  color: #3a4f64;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Dark mode social icon */
body.dark-mode .social-icon {
  background: rgba(58, 79, 100, 0.7);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(0);
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: -1;
}

.social-icon:hover {
  color: white !important;
}

.social-icon:hover::before {
  transform: scale(1.5);
}

.social-icon.facebook::before {
  background-color: #1877F2;
}

.social-icon.whatsapp::before {
  background-color: #25D366;
}

.social-icon.tiktok::before {
  background-color: #000000;
}

.social-icon.youtube::before {
  background-color: #FF0000;
}

.social-icon.gmail::before {
  background-color: #EA4335;
}

.social-icon.instagram::before {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Canvas */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

/* Terms Section */
.terms-section-inicio-i {
  margin-top: 20px;
  padding: 10px 0;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.terms-container-inicio-i {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.terms-link-inicio-i {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.terms-link-inicio-i:hover {
  color: #333;
  text-decoration: underline;
}

/* Dark mode terms */
body.dark-mode .terms-link-inicio-i {
  color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .terms-link-inicio-i:hover {
  color: #ffffff;
}

.terms-separator-inicio-i {
  color: #ccc;
  font-size: 14px;
}

/* Dark mode terms separator */
body.dark-mode .terms-separator-inicio-i {
  color: rgba(255, 255, 255, 0.5);
}

/* Adaptaciones responsive para móviles */
@media (max-width: 480px) {
  body {
    margin-top: 0;
  }
  
  html {
    margin-top: 0;
  }
  
  .container-inicio-i { 
    padding: 0 5px;
  }
  
  .section-inicio-i { 
    padding: 0.625rem; 
    margin-bottom: 0.625rem;
    margin-top: 0;
  }
  
  /* Dark mode mobile section */
  body.dark-mode .section-inicio-i {
    background: rgba(58, 79, 100, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
  }
  
  .section-inicio-i-1 { 
    padding: 12px; 
    margin-bottom: 12px;
    margin-top: 0;
  }
  
  .guides-grid-inicio-i, .tips-list-inicio-i { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.5rem;
  }
  
  .guide-card-inicio-i {
    padding: 0.5rem;
  }
  
  .guide-title-inicio-i {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }
  
  .guide-description-inicio-i {
    font-size: 0.75rem;
  }
  
  .guide-image-inicio-i { 
    height: 4.5rem;
    margin-bottom: 0.25rem;
  }
  
  .section-title-inicio-i { 
    font-size: 1.125rem; 
    margin-bottom: 0.5rem;
  }
  
  .section-title-inicio-i-1 { 
    font-size: 16px; 
    margin-bottom: 8px;
  }
  
  .section-content-inicio-i { 
    font-size: 0.8125rem; 
    line-height: 1.4;
  }
  
  .section-content-inicio-i-1 { 
    font-size: 13px; 
    margin-bottom: 10px;
  }
  
  .welcome-section-inicio-i { 
    padding: 0.5rem 0.75rem 0.75rem;
  }
  
  .welcome-section-inicio-i-1 { 
    padding: 10px 15px 15px;
  }
  
  .changing-text-inicio-i { 
    font-size: 1rem; 
    min-height: 2rem;
  }
  
  .btn-inicio-i { 
    width: 100%; 
    padding: 0.625rem;
  }
  
  .social-container-inicio-i { 
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  .social-label-inicio-i { 
    font-size: 0.625rem; 
  }
  
  .social-icon-inicio-i { 
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.875rem;
  } 
  
  .logo-welcome-inicio-i-1 {
    height: 80px;
    margin-bottom: 10px;
  }
  
  .convocatoria-section-inicio-i {
    padding: 0.75rem;
    margin-bottom: 0.625rem;
  }
  
  .convocatoria-title-inicio-i {
    font-size: 1rem;
    margin-bottom: 0.375rem;
  }
  
  .convocatoria-description-inicio-i {
    font-size: 0.8125rem;
    margin-bottom: 0.625rem;
  }
  
  .btn-convocatoria-inicio-i {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  body, html {
    margin-top: 0;
  }
  
  .container-inicio-i { 
    padding: 0 0.75rem;
  }
  
  .section-inicio-i { 
    padding: 0.75rem; 
    margin-bottom: 0.75rem;
    margin-top: 0;
  }
  
  /* Dark mode tablet section */
  body.dark-mode .section-inicio-i {
    background: rgba(58, 79, 100, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .section-inicio-i-1 {
    padding: 15px;
    margin-bottom: 15px;
    margin-top: 0;
  }
  
  .guides-grid-inicio-i, .tips-list-inicio-i { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.625rem;
  }
  
  .section-title-inicio-i { 
    font-size: 1.125rem; 
    margin-bottom: 0.625rem;
  }
  
  .section-title-inicio-i-1 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  
  /* Change Name Item Styles */
.change-name {
    cursor: pointer;
    padding: 10px;
    color: #333;
    transition: background-color 0.2s ease;
}

.change-name:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Dark mode for .change-name */
body.dark-mode .change-name {
    color: #ffffff;
}

body.dark-mode .change-name:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Name Modal Styles */
.name-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

/* Dark mode for .name-modal */
body.dark-mode .name-modal {
    background-color: rgba(50, 50, 50, 0.7); /* Transparent gray background */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.name-modal-content {
    background-color: #ffffff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 320px;
    width: 90%;
    transform: translateY(-20px);
    animation: slideIn 0.3s ease forwards;
}

/* Dark mode for .name-modal-content */
body.dark-mode .name-modal-content {
    background: rgba(58, 79, 100, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.name-modal-content h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    color: #333;
    font-weight: 500;
}

/* Dark mode for h2 */
body.dark-mode .name-modal-content h2 {
    color: #ffffff;
}

.name-modal-content p {
    margin: 0 0 20px;
    font-size: 1rem;
    color: #666;
}

/* Dark mode for p */
body.dark-mode .name-modal-content p {
    color: rgba(255, 255, 255, 0.7);
}

.name-modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
    background-color: #ffffff;
    color: #333;
}

/* Dark mode for input */
body.dark-mode .name-modal-content input {
    background-color: rgba(58, 79, 100, 0.7);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.name-modal-content input:focus {
    border-color: #315857;
}

/* Dark mode for input:focus */
body.dark-mode .name-modal-content input:focus {
    border-color: #4A90E2;
    background-color: rgba(58, 79, 100, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.name-modal-content button {
    background-color: #315857;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, border 0.2s;
}

/* Dark mode for button */
body.dark-mode .name-modal-content button {
    background-color: #4A90E2;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.name-modal-content button:hover {
    background-color: #264747;
}

/* Dark mode for button:hover */
body.dark-mode .name-modal-content button:hover {
    background-color: #357ABD;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .name-modal-content {
        padding: 15px 20px;
        max-width: 300px;
    }

    .name-modal-content h2 {
        font-size: 1.25rem;
    }

    .name-modal-content p {
        font-size: 0.875rem;
    }

    .name-modal-content input {
        padding: 8px;
        font-size: 0.875rem;
    }

    .name-modal-content button {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
}
