/*===========================================================================
* 1. RESET Y CONFIGURACIÓN BÁSICA
* Configuraciones iniciales para normalizar estilos entre navegadores
* y establecer los parámetros base de la página
===========================================================================*/

/* Reset CSS básico para asegurar consistencia entre navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configuración base para html y body */
html, body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #000000 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Configuración específica del body para manejo de capas */
body {
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: -2;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
}

/* Configuración tipográfica global */
h1, h2, h3, p, button {
    font-family: 'Poppins', sans-serif;
}

/*===========================================================================
* 2. LAYOUT Y CONTENEDORES
* Configuración de los contenedores principales y su comportamiento responsive
===========================================================================*/

/* Contenedor principal */
.container {
    max-width: 100%;
    padding: 0 20px; /* Añade padding para evitar que el contenido toque los bordes */
    margin: 0 auto; /* Asegura que el contenido esté centrado */
}

/* Configuración común para todas las secciones principales */
.content-layer, .audio-player-card, .final-card, .carousel-section, .video-section, .spotify-playlist-section, .love-clock-section {
    will-change: transform, opacity;
    width: 100%;
    max-width: 100%; /* Asegura que el contenido ocupe todo el ancho disponible */
    margin: 0 auto;
    padding: 10px 20px;
    box-sizing: border-box; /* Incluye el padding y borde en el tamaño del contenedor */
}

/* Configuración para las cartas de mensajes */
.letters, .letter {
    width: 100%; /* Cartas ocuparán todo el ancho de la pantalla en móviles */
    max-width: 100%;
}

/* Configuración base para botones y modales */
button, .modal {
    max-width: 100%;
    margin: 0 auto; /* Centrar el botón y modal */
}

/*===========================================================================
* 3. RESPONSIVE DESIGN
* Ajustes para diferentes tamaños de pantalla
===========================================================================*/

/* Extra Large Screens (1400px y más) */
@media only screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
        padding: 0 40px;
    }
    
    .audio-player-card, .video-section, .spotify-playlist-section, .carousel-section {
        max-width: 1000px;
        padding: 60px;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 3rem;
    }
}

/* Large Screens (1200px - 1399px) */
@media only screen and (max-width: 1399px) and (min-width: 1200px) {
    .container {
        max-width: 1140px;
        padding: 0 30px;
    }
    
    .audio-player-card, .video-section, .spotify-playlist-section, .carousel-section {
        max-width: 900px;
        padding: 50px;
    }
}

/* Medium Screens (992px - 1199px) */
@media only screen and (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 960px;
        padding: 0 25px;
    }
    
    .audio-player-card, .video-section, .spotify-playlist-section, .carousel-section {
        max-width: 800px;
        padding: 40px;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    h2 {
        font-size: 2.4rem;
    }
    
    .letter {
        width: 48%;
        margin-bottom: 20px;
    }
}

/* Small Screens (768px - 991px) */
@media only screen and (max-width: 991px) and (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
    
    .audio-player-card, .video-section, .spotify-playlist-section, .carousel-section {
        max-width: 100%;
        padding: 35px;
        margin: 30px auto;
    }
    
    h1 {
        font-size: 2.8rem;
        margin-bottom: 25px;
    }
    
    h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .letter {
        width: 100%;
        margin-bottom: 25px;
    }
    
    /* Carrusel mejorado para tablets - estilos removidos */
    
    /* Estilos antiguos del carrusel removidos */
}

/* Extra Small Screens (576px - 767px) */
@media only screen and (max-width: 767px) and (min-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    .audio-player-card, .video-section, .spotify-playlist-section, .carousel-section {
        padding: 30px 20px;
        margin: 25px auto;
        border-radius: 20px;
    }
    
    h1 {
        font-size: 2.4rem;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }
    
    h2 {
        font-size: 1.9rem;
        margin-bottom: 18px;
    }
    
    p {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    button {
        font-size: 1rem;
        padding: 12px 24px;
        margin: 10px 5px;
    }
    
    .heart-image {
        width: 90px;
    }
    
    /* Estilos antiguos del carrusel removidos */
}

/* Mobile Screens (hasta 575px) */
@media only screen and (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    .audio-player-card, .video-section, .spotify-playlist-section, .carousel-section {
        padding: 25px 15px;
        margin: 20px auto;
        border-radius: 15px;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 15px;
        letter-spacing: 0.5px;
    }
    
    h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    button {
        font-size: 0.9rem;
        padding: 10px 20px;
        margin: 8px 3px;
        width: 100%;
        max-width: 280px;
    }
    
    .letter {
        width: 100%;
        margin-bottom: 20px;
        padding: 20px;
        font-size: 0.95rem;
    }
    
    .letter-image {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .heart-image {
        width: 70px;
    }
    
    .space-image {
        width: 100%;
    }
    
    /* Estilos antiguos del carrusel removidos */
    
    /* Más estilos antiguos del carrusel removidos */
    
    .audio-player-body {
        flex-direction: column;
        gap: 15px;
    }
    
    .song-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 20px;
        margin: 10px;
    }
    
    .spotify-embed-container {
        height: 280px;
        padding: 20px;
    }
    
    .video-container {
        padding: 20px;
    }
    
    .video-container iframe {
        width: 100%;
        height: 200px;
    }
}

/*===========================================================================
* 4. PRELOADER
* Estilos para la pantalla de carga inicial
===========================================================================*/

/* Contenedor principal del preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/*===========================================================================
* 5. ANIMACIONES
* Definición de animaciones utilizadas en la página
===========================================================================*/

/* Animación de entrada desde abajo */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Elemento de carga giratorio */
.loader {
    border: 8px solid #f3f3f3; /* Color del borde externo */
    border-top: 8px solid #3498db; /* Color del borde giratorio */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite; /* Animación de giro */
}

/* Animación de rotación para el preloader */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/*===========================================================================
* 6. FONDO DE VIDEO
* Configuración del video de fondo y sus capas
===========================================================================*/

/* Capa de fondo que contendrá el video */
.background-layer {
    position: fixed; /* El fondo permanece fijo mientras se desplaza el contenido */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Evita que el video se desborde */
    z-index: -1; /* Asegura que el video quede detrás de otros elementos */
}

/* El video de fondo */
.background-video {
    position: absolute; /* Hace que el video ocupe todo el contenedor */
    top: 50%; /* Centra el video verticalmente */
    left: 50%; /* Centra el video horizontalmente */
    min-width: 100%; /* Se asegura que el video cubra todo el ancho */
    min-height: 100%; /* Se asegura que el video cubra toda la altura */
    width: auto;
    height: auto;
    transform: translate(-50%, -50%); /* Centrado exacto del video */
    opacity: 10; /* Aplica opacidad al video para efecto de transparencia */
    object-fit: cover; /* Asegura que el video mantenga sus proporciones */
}

/*===========================================================================
* 6.5 EFECTOS DE PARTÍCULAS FLOTANTES
===========================================================================*/

/* Contenedor de partículas flotantes */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Partículas individuales */
.particle {
    position: absolute;
    opacity: 0.7;
    animation: floatUp 15s linear infinite;
}

.particle img {
    width: 20px;
    height: 20px;
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(255, 221, 153, 0.8));
}

/* Posiciones y delays únicos para cada partícula */
.particle-1 {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle-2 {
    left: 25%;
    animation-delay: 3s;
    animation-duration: 18s;
}

.particle-3 {
    left: 50%;
    animation-delay: 6s;
    animation-duration: 15s;
}

.particle-4 {
    left: 75%;
    animation-delay: 9s;
    animation-duration: 20s;
}

.particle-5 {
    left: 90%;
    animation-delay: 12s;
    animation-duration: 14s;
}

/* Animación de partículas flotantes mejorada */
@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

/*===========================================================================
* 7. CAPA DE CONTENIDO PRINCIPAL
* Estilos para la capa que contiene el contenido principal sobre el fondo
===========================================================================*/

/* Capa de contenido que se coloca sobre el fondo */
.content-layer {
    will-change: transform;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out forwards;
    transition: transform 0.3s ease-out;
}

/* Títulos principales */
h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #fff, #f0f0f0, #fff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeIn 2s ease-in-out, shimmer 3s ease-in-out infinite;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 1px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #fff;
    text-align: center;
    font-weight: 300;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #fff, #e0e0e0, #fff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 2s ease-in-out, shimmer 4s ease-in-out infinite;
}

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

/* Estilos para los párrafos de texto */
p {
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    color: #f1f1f1;
}

/* Media queries consolidadas arriba en la sección 3. RESPONSIVE DESIGN */


/*===========================================================================
* 8. COMPONENTES ESPECÍFICOS
* Estilos para los diferentes componentes y secciones de la página
===========================================================================*/

/*---------------------------------------------------------------------------
* 8.1 Reproductor de Audio
---------------------------------------------------------------------------*/

/* Estilo para la tarjeta del reproductor de audio (estilo Spotify) */
.audio-player-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 25px;
    width: 100%;
    max-width: 700px;
    margin: 20px auto; /* Centramos la tarjeta */
    color: white;
    display: flex;
    flex-direction: column; /* Organiza las secciones en columnas */
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

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

.audio-player-card:hover::before {
    left: 100%;
}

.audio-player-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Sección del título dentro de la tarjeta */
.audio-player-title {
    text-align: center;
    margin-bottom: 10px;
}

/* Estilo del título dentro de la tarjeta */
.audio-player-title h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #fff;
}

/* Sección del logo y reproductor dentro de la tarjeta */
.audio-player-body {
    display: flex;
    align-items: center;
}

/* Estilo para la miniatura del logo de la canción */
.song-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin-right: 20px; /* Separación entre logo y reproductor */
    object-fit: cover; /* Mantener las proporciones */
}

/* Contenedor del reproductor de audio */
.audio-player-container {
    flex-grow: 1;
}

/* Estilos para el reproductor de audio */
#audioPlayer {
    width: 100%;
    height: 40px; /* Alto del reproductor */
    background-color: rgba(0, 0, 0, 0.6); /* Fondo oscuro */
    border-radius: 15px;
    outline: none;
}

/* Personalización de los controles del reproductor */
#audioPlayer::-webkit-media-controls-panel {
    background-color: rgba(124, 124, 124, 0.6); /* Fondo oscuro para el panel */
    border-radius: 15px;
}

/* Cambiamos el color de los botones a gris oscuro */
#audioPlayer::-webkit-media-controls-play-button,
#audioPlayer::-webkit-media-controls-pause-button,
#audioPlayer::-webkit-media-controls-mute-button {
    filter: invert(60%); /* Cambia los botones a un gris oscuro */
}

/* Estilo para el selector de canciones */
.song-selector {
    margin-top: 10px;
    padding: 5px;
    font-size: 1rem;
    border-radius: 5px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}



/*---------------------------------------------------------------------------
* 8.2 Contenedor Principal y Elementos Generales
---------------------------------------------------------------------------*/

.container {
    position: relative;
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 5%; /* Añadir padding para márgenes en pantallas pequeñas */
}

h1 {
    font-size: 4rem;
    margin-top: 20px; /* Reducido de 100px a 20px */
    margin-bottom: 20px; /* Reducido el margen inferior para ahorrar espacio */
    animation: fadeIn 2s ease-in-out;
}


h2 {
    font-size: 3rem;
    margin-top: 30px;
    animation: fadeIn 3s ease-in-out;
}

p {
    font-size: 1.5rem;
    margin: 20px auto;
    width: 100%;
    max-width: 800px; /* Limitar el ancho máximo para que el texto no se extienda demasiado */
    animation: fadeIn 4s ease-in-out;
}

/*---------------------------------------------------------------------------
* 8.3 Tarjeta de Introducción
---------------------------------------------------------------------------*/

.intro-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin: 50px auto;
    max-width: 800px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.intro {
    font-size: 1.5rem;
    line-height: 1.8;
    margin: 0;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}


/*---------------------------------------------------------------------------
* 8.4 Sección de Cartas
---------------------------------------------------------------------------*/

/* Contenedor de las cartas */
.letters {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin-top: 50px;
    gap: 20px;
}

.letter {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 20px;
    width: 30%;
    min-width: 280px;
    font-size: 1.2rem;
    animation: slideIn 3s ease-in-out;
    margin: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.letter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.letter:hover::before {
    transform: translateX(100%);
}

.letter:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Contenedor de las imágenes de las cartas */
.letter-image-container {
    margin-top: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Estilo de las imágenes en las cartas */
.letter-image {
    width: 100%;
    max-width: 200px;
    border-radius: 15px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    filter: brightness(0.9) contrast(1.1);
}

.letter-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.2) saturate(1.1);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.2);
}


/*---------------------------------------------------------------------------
* 8.5 Imágenes y Elementos Decorativos
---------------------------------------------------------------------------*/

/* Imagen de corazón con animación */
.heart-image {
    width: 150px;
    animation: heartbeat 2s infinite;
    transition: all 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 0 10px rgba(255, 182, 193, 0.7));
}

.heart-image:hover {
    animation: heartbeat 0.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 182, 193, 1)) 
            drop-shadow(0 0 30px rgba(255, 105, 180, 0.8));
    transform: scale(1.1);
}

button {
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 40px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8a9b 25%, #ffa8b6 50%, #ff69b4 75%, #ff1493 100%);
    border: none;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(255, 105, 147, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

button:hover::before {
    left: 100%;
}

button:hover {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 25%, #ffa8b6 50%, #ff8a9b 75%, #ff6b9d 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(255, 105, 147, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

button:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

.space-image {
    width: 80%;
    margin-top: 50px;
    animation: fadeIn 3s ease-in-out;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.space-image:hover {
    transform: scale(1.05) rotate(2deg);
    filter: brightness(1.1) saturate(1.2);
    box-shadow: 0 8px 25px rgba(255, 221, 153, 0.4);
}

/* Elementos decorativos de fondo */
.stars, .twinkling, .planets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

/*===========================================================================
* 9. ANIMACIONES ADICIONALES
* Definiciones de animaciones utilizadas en diferentes elementos
===========================================================================*/

/* Animación de aparición gradual */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes moveStars {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

@keyframes moveTwinkling {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

@keyframes movePlanets {
    from { background-position: 0 0; }
    to { background-position: -5000px 2500px; }
}

/* Nuevas animaciones mejoradas */
@keyframes floatUp {
    0% { transform: translateY(0px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

@keyframes sparkle {
    0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1) rotate(180deg); opacity: 1; }
}

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 221, 153, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 221, 153, 0.8), 0 0 30px rgba(255, 221, 153, 0.6); }
}

/*===========================================================================
* 10. MEDIA QUERIES ADICIONALES
* Ajustes responsivos para diferentes tamaños de pantalla
===========================================================================*/

/* Media queries duplicadas eliminadas - ver sección 3. RESPONSIVE DESIGN para configuración completa */

/*===========================================================================
* 11. MODAL
* Estilos para el modal de poema y sus componentes
===========================================================================*/

/* Contenedor principal del modal */
.modal {
    display: none; /* Oculto inicialmente */
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #000000;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 600px;
    width: 90%;
    margin: auto;
    color: #ffffff;
}

.modal-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInText 3s forwards; /* El texto se mostrará en 2 segundos */
}

.modal-content .heart-animation {
    width: 150px;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInHeart 2s forwards, heartbeat 2s infinite; /* Primero aparecerá, luego comenzará a latir */
    animation-delay: 1s; /* Aparece después del texto */
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #ff1493;
}

/* Animaciones específicas del modal */
@keyframes fadeInText {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animación de desvanecimiento del corazón */
@keyframes fadeInHeart {
    from { opacity: 0; transform: scale(0.8); } /* Comienza más pequeño */
    to { opacity: 1; transform: scale(1); } /* Aparece a tamaño normal */
}

/*===========================================================================
* 12. COMPONENTES ADICIONALES
* Estilos para componentes específicos como banner, carrusel, etc.
===========================================================================*/

/*---------------------------------------------------------------------------
* 12.1 Banner
---------------------------------------------------------------------------*/

.banner-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.banner-image {
    width: 100%;
    max-width: 1200px; /* Limitar el tamaño máximo para mantener la calidad */
    height: auto; /* Mantener las proporciones de la imagen */
}

/* Banner responsive - integrado en media queries principales */

/*---------------------------------------------------------------------------
* 12.2 Carrusel Tipo Libro
---------------------------------------------------------------------------*/

/* Contenedor principal del carrusel */
/* ===== CARRUSEL DE LIBRO - NUEVA IMPLEMENTACIÓN ===== */

/* Sección principal del carrusel */
.carousel-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px;
    border-radius: 25px;
    margin: 40px auto;
    max-width: 900px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

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

.carousel-section:hover::before {
    left: 100%;
}

.carousel-section:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Título del carrusel */
.carousel-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Contenedor principal del carrusel */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

/* Wrapper del carrusel */
.carousel-wrapper {
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Track del carrusel */
.carousel-track {
    display: flex;
    width: 300%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Cada slide del carrusel */
.carousel-slide {
    width: 33.333333%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    padding: 20px;
    box-sizing: border-box;
}

/* Contenido del slide */
.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    gap: 20px;
    height: 100%;
}

/* Texto del slide */
.slide-text {
    flex: 1;
    max-width: 45%;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: left;
}

.slide-text p {
    margin: 0;
    word-wrap: break-word;
    hyphens: auto;
}

/* Imagen del slide */
.slide-image {
    flex: 1;
    max-width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-photo {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.carousel-photo:hover {
    transform: scale(1.05);
}

/* Botones de navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    user-select: none;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: -25px;
}

.carousel-btn-next {
    right: -25px;
}

.btn-icon {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

/* Indicadores de página */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator:hover {
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.indicator.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.indicator.active::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Estilos antiguos del carrusel removidos */



/*---------------------------------------------------------------------------
* 12.3 Sección de Video
---------------------------------------------------------------------------*/

/* Contenedor principal de la sección de video */
.video-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px;
    border-radius: 25px;
    margin: 40px auto;
    max-width: 900px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

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

.video-section:hover::before {
    left: 100%;
}

.video-section:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Estilo del título en la sección del video */
.video-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Contenedor del video */
.video-container {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilo del video */
.styled-video {
    width: 100%;
    max-width: 700px; /* Tamaño máximo del video */
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.6); /* Fondo del reproductor */
    outline: none;
}

/* Personalización de los controles del video */
.styled-video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro para los controles */
    border-radius: 10px;
}

/* Cambiar el color de los botones a tonos grises oscuros */
.styled-video::-webkit-media-controls-play-button,
.styled-video::-webkit-media-controls-fullscreen-button,
.styled-video::-webkit-media-controls-mute-button,
.styled-video::-webkit-media-controls-timeline {
    filter: invert(60%); /* Cambia los botones a un gris oscuro */
}

/* Responsividad para pantallas pequeñas */
@media only screen and (max-width: 480px) {
    .styled-video {
        max-width: 100%; /* El video se ajustará completamente en pantallas pequeñas */
    }
}


/*---------------------------------------------------------------------------
* 12.4 Sección de Playlist de Spotify
---------------------------------------------------------------------------*/

/* Contenedor principal de la sección de Spotify */
.spotify-playlist-section {
    background: linear-gradient(135deg, rgba(30, 215, 96, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(30, 215, 96, 0.2);
    padding: 50px;
    border-radius: 25px;
    margin: 40px auto;
    max-width: 900px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(30, 215, 96, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.spotify-playlist-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 215, 96, 0.1), transparent);
    transition: left 0.8s;
}

.spotify-playlist-section:hover::before {
    left: 100%;
}

.spotify-playlist-section:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(30, 215, 96, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Título de la sección de Spotify */
.spotify-playlist-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Contenedor del iframe de Spotify */
.spotify-embed-container {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 215, 96, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(30, 215, 96, 0.1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 352px;
    overflow: hidden;
}

/* Spotify responsive - integrado en media queries principales */

/*===========================================================================
* 4. OPTIMIZACIONES PARA DISPOSITIVOS TÁCTILES
* Mejoras específicas para interacción táctil y accesibilidad móvil
===========================================================================*/

/* Mejoras para elementos interactivos en dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    /* Botones más grandes para toque */
    button {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
    }
    
    /* Eliminar efectos hover en dispositivos táctiles */
    .audio-player-card:hover,
    .video-section:hover,
    .spotify-playlist-section:hover,
    .carousel-section:hover,
    .intro-card:hover,
    .letter:hover {
        transform: none;
    }
    
    /* Efectos de toque activo */
    button:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Mejorar área de toque para imágenes */
    .letter-image {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    }
}

/* Optimizaciones para orientación landscape en móviles - estilos antiguos removidos */
@media only screen and (max-height: 500px) and (orientation: landscape) {
    /* Estilos antiguos del carrusel removidos */
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    h2 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .audio-player-card,
    .video-section,
    .spotify-playlist-section {
        padding: 20px 15px;
        margin: 15px auto;
    }
}

/* Mejoras para accesibilidad y contraste */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-particle {
        animation: none;
    }
    
    .shimmer {
        animation: none;
    }
}

/* Optimización para pantallas de alta densidad */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi) {
    .letter-image,
    .song-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Mejoras para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
    /* Los estilos ya están optimizados para modo oscuro */
    body {
        color-scheme: dark;
    }
}

/* Optimización adicional para landscape en tablets y móviles grandes - estilos antiguos removidos */
@media only screen and (min-width: 568px) and (max-width: 1024px) and (orientation: landscape) {
    /* Estilos antiguos del carrusel removidos */
    
    /* Botones antiguos del carrusel removidos */
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
}







/*---------------------------------------------------------------------------
* 12.5 Sección del Reloj de Amor
---------------------------------------------------------------------------*/

/* Contenedor principal de la sección del reloj */
.love-clock-section {
    position: relative; /* Necesario para usar el pseudo-elemento */
    background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro opaco */
    padding: 40px;
    border-radius: 15px;
    margin: 40px auto;
    max-width: 500px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); /* Sombra para dar profundidad */
    z-index: 1; /* Asegura que el contenido esté por encima de la imagen */
    overflow: hidden; /* Evita que el contenido salga del contenedor */
}

/* Añade un pseudo-elemento con la imagen de fondo */
.love-clock-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../assets/media/images/backgrounds/Fondo_Reloj.png');
    background-size: cover;
    background-position: center;
    opacity: 0.5; /* Ajusta la opacidad de la imagen de fondo */
    z-index: -1; /* Coloca la imagen detrás del contenido */
    border-radius: 15px; /* Asegura que la imagen tenga el mismo radio que el contenedor */
}



.love-clock-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

/* Contenedor del reloj y mensaje */
.love-clock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Estilo del reloj digital */
.love-clock {
    opacity: 1; /* Inicialmente, el reloj se muestra completamente */
    font-size: 2.5rem; /* Tamaño más grande */
    color: #ffdd99; /* Color dorado claro para el reloj */
    text-shadow: 0 0 10px #fff, 0 0 20px #ffdd99, 0 0 30px #ffdd99;
    transition: opacity 0.5s ease-in-out; /* Transición suave */
    animation: pulseGlow 3s ease-in-out infinite;
    font-family: 'Orbitron', monospace;
    letter-spacing: 2px;
}

/* Estilo del mensaje de amor */
.love-message {
    opacity: 1; /* Inicialmente, el mensaje se muestra completamente */
    font-size: 1.5rem; /* Tamaño más pequeño */
    color: #ffd1dc; /* Color rosado */
    text-shadow: 0 0 10px #fff, 0 0 20px #ffd1dc, 0 0 30px #ffd1dc;
    transition: opacity 0.5s ease-in-out; /* Transición suave */
}

/* Estilo del botón de pausa */
.clock-control {
    background-color: #ff69b4;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clock-control:hover {
    background-color: #ff1493;
}

/* Efecto de fade-in para el reloj y mensaje */
.fade-in {
    opacity: 0;
    animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}




/*---------------------------------------------------------------------------
* 12.7 Efectos de Aparición Gradual
---------------------------------------------------------------------------*/

/* Secciones con efecto de aparición */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-section.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para la tarjeta de la sección final */
.final-card {
    background-color: rgba(0, 0, 0, 0.6); /* Fondo oscuro */
    padding: 40px;
    border-radius: 15px;
    margin: 40px auto;
    max-width: 800px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra para dar profundidad */
}

.final-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Estilo del texto en la tarjeta final */
.final-card h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.final-card p {
    font-size: 1.5rem;
    margin: 20px auto;
    width: 100%;
    max-width: 800px;
    line-height: 1.8;
    color: #f1f1f1;
}

/* Estilo para la imagen dentro de la tarjeta */
.image-container {
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.space-image {
    width: 100%;
    max-width: 600px; /* Ajusta el tamaño máximo de la imagen */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Sombra para dar profundidad */
    object-fit: cover;
}

