/*TAROT*/
/*header*/
header {
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px;
    position: relative;
}
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%; /* Margen izquierdo */
    right: 10%; /* Margen derecho */
    height: 3px; /* Grosor fino */
    background: white;
    opacity: 50%;
}
nav {
    flex: 2; /* Ocupa más espacio para centrar */
    display: flex;
    justify-content: center; /* Centrar el menú */
}
nav ul {
    display: flex;
    list-style: none;
    gap: 5rem;
    margin: 0;
    padding: 0;
}
nav a {
    text-decoration: none;
    color: white;
    font-family: 'Cormorant Garamond';
    font-weight: 500;
    font-size: 1.7rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    cursor: pointer;
    transition: all 0.3s ease; /* Transición para todos los efectos */
    display: inline-block; /* Necesario para transform */
}
nav a:hover {
    color: #fa356d;
    transform: scale(1.1); /* Efecto de agrandamiento */
    text-shadow: 0 2px 8px rgba(91, 91, 91); /* Sombra sutil para profundidad */
}
.user-menu {
    display: flex;
    justify-content: center;
}
.user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}
.user-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.user-icon svg {
    transition: transform 0.3s ease;
}

.user-icon:hover svg {
    transform: scale(1.1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/*video de fondo*/
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80vh;
    z-index: -1;
    overflow: hidden;
}
.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Oscurece un poco el video para mejor legibilidad */
    position: absolute;
}
.video-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* CONTENEDOR PRINCIPAL */
.content-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}
/*intro*/
.videos-hero {
    padding: 1rem 2rem 4rem;
    text-align: center;
    height: 80vh; /* Misma altura que el video */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.videos-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: white;
}
.videos-hero .subtitle {
    font-family: 'Cormorant Garamond';
    font-weight: 550;
    font-size: 1.17rem;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    text-align: center;
    margin: 0 auto; /* Esto lo centra */
}
/* BOTÓN LECTURA ALEATORIA */
.boton-lectura {
    margin-top: 2rem;
}
.btn-aleatorio {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.btn-aleatorio:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-aleatorio:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.btn-aleatorio:hover .btn-icon {
    transform: scale(1.2) rotate(15deg);
}

/* Efecto de brillo al hover */
.btn-aleatorio {
    position: relative;
    overflow: hidden;
}
.btn-aleatorio::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-aleatorio:hover::before {
    left: 100%;
}
/* RESPONSIVE */
@media (max-width: 768px) {
    .tarot-hero {
        padding: 6rem 1rem 2rem;
    }
    
    .tarot-hero h1 {
        font-size: 2.8rem;
    }
    
    .tarot-hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .tarot-texto {
        margin-bottom: 2rem;
    }
      .tarot-texto p {
        font-size: 1rem;
    }
    
    .btn-aleatorio {
        padding: 0.9rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .tarot-hero h1 {
        font-size: 2.3rem;
    }
      .btn-aleatorio {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-icon {
        font-size: 1.3rem;
    }
}
/* CATEGORÍAS DE LECTURAS */
.categorias-lecturas {
    padding: 3rem 4rem;
    background-color: #fefefe;
    position: relative;
    z-index: 2;
}

.categoria-container {
    margin-bottom: 4rem;
}

.categoria-container:last-child {
    margin-bottom: 0;
}

/* HEADER DE CATEGORÍA */
.categoria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.categoria-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #333;
    margin: 0;
    margin-left: 2rem;
}

/* BOTÓN SELECCIÓN ALEATORIA */
.btn-seleccion-aleatoria {
    background: transparent;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-seleccion-aleatoria:hover {
    background: #f8f8f8;
    border-color: #ccc;
    color: #333;
    transform: translateY(-1px);
}

/* CARRUSEL DE VIDEOS */
.videos-carrusel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.carrusel-container {
    flex: 1;
    overflow: hidden;
}

.carrusel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease;
    padding: 0.5rem 0;
}

/* VIDEO ITEM */
.video-item {
    flex: 0 0 auto;
    width: 280px; /* Más pequeños que los carruseles anteriores */
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

/* MINIATURA DEL VIDEO */
.video-miniatura {
    position: relative;
    width: 280px;
    height: 160px; /* Formato 16:9 más compacto */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-miniatura img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-miniatura img {
    transform: scale(1.05);
}

/* OVERLAY Y BOTÓN PLAY */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .video-overlay {
    opacity: 1;
}

.play-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* INFORMACIÓN DEL VIDEO */
.video-info {
    padding: 1rem 0.5rem 0;
}

.video-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #333;
    margin: 0 0 0.3rem 0;
    line-height: 1.3;
}

.video-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* FLECHAS DEL CARRUSEL */
.carrusel-arrow {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    flex-shrink: 0;
}

.carrusel-arrow:hover {
    background: white;
    border-color: #ccc;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .categorias-lecturas {
        padding: 2rem 1rem;
    }
    
    .categoria-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .categoria-header h2 {
        font-size: 1.7rem;
    }
    
    .video-item {
        width: 240px;
    }
    
    .video-miniatura {
        width: 240px;
        height: 135px;
    }
    
    .carrusel-arrow {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .video-item {
        width: 200px;
    }
    
    .video-miniatura {
        width: 200px;
        height: 112px;
    }
    
    .video-info h3 {
        font-size: 0.9rem;
    }
    
    .video-desc {
        font-size: 0.75rem;
    }
    
    .btn-seleccion-aleatoria {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}