/* style.css */

/* CSS Variables for consistency */
:root {
    --primary-color: #8B0000;
    --secondary-color: #DC143C;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 10px;
    --max-width: 1200px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Libre Baskerville', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    color: #000;
    text-decoration: none;
}

/* Accessibility: Skip to main content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes drift {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(20px, 20px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fade-in-up 0.8s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

.header-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.header-content p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    opacity: 0.9;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: #ffffff;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.book-cover {
    text-align: center;
    position: relative;
}

.book-cover img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.book-cover::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    z-index: 0;
    opacity: 0.3;
    transition: var(--transition);
}

.book-cover:hover img {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.book-cover:hover::after {
    opacity: 0.5;
    transform: scale(1.02);
}

.book-info h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.book-info h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.book-info:hover h2::after {
    width: 100%;
}

.book-info p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: var(--text-light);
}

.author-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
    transform: translateX(0);
    transition: var(--transition);
}

.author-info:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.author-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Audio Section */
.audio-section {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.audio-player {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.audio-player h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.custom-audio audio {
    width: 100%;
    border-radius: 25px;
    margin: 2rem 0;
}

.audio-quote {
    font-style: italic;
    opacity: 0.8;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 2rem;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    position: relative;
    display: inline-block;
    width: 100%;
}

.gallery-section h2::before,
.gallery-section h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    transform: translateY(-50%);
}

.gallery-section h2::before {
    left: calc(50% - 180px);
}

.gallery-section h2::after {
    right: calc(50% - 180px);
}

/* CARRUSELES - ESTRUCTURA GENERAL */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin: 0 80px; /* Espacio para las flechas por defecto */
    padding: 20px; /* Padding uniforme para todos los carruseles */
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* GALERÍA PRINCIPAL */
.gallery-section .carousel-container {
    max-width: 1000px;
    max-height: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.gallery-section .carousel-slide {
    min-width: 100%;
    height: 500px;
    background: #f0f0f0;
    position: relative;
}

.gallery-section .carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.carousel-caption {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(139, 0, 0, 0.9));
    color: white;
    padding: 20px 30px;
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 20px;
    border-radius: var(--border-radius);
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.dot:hover {
    background: #999;
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.dot.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

/* HEMEROTECA */
.hemeroteca-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.hemeroteca-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.hemeroteca-section .carousel-container {
    overflow: visible;
    background: #fafafa;
    border-radius: var(--border-radius);
}

.hemeroteca-section .carousel-track {
    gap: 20px;
}

.hemeroteca-section .carousel-slide {
    min-width: 200px;
    max-width: 250px;
    height: 280px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hemeroteca-section .carousel-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hemeroteca-section .carousel-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.hemeroteca-section .carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hemeroteca-section .carousel-slide img:hover {
    transform: scale(1.05);
}

/* TESTIMONIOS */
.testimonials {
    background: var(--bg-light);
    padding: -0.5rem 0;
    position: relative;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.testimonials .carousel-slide {
    min-width: 100%;
    min-height: 300px;
    padding: 20px;
}

.testimonials .testimonial {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 400px;
    text-align: center;
    min-height: 500px;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    min-height: 500px;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial blockquote {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial cite {
    color: var(--primary-color);
    font-weight: bold;
    font-style: normal;
}

/* FLECHAS DE NAVEGACIÓN */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: fadeInScale 0.6s ease-out;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.carousel-nav:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

.carousel-nav.prev {
    left: -70px;
}

.carousel-nav.next {
    right: -70px;
}

/* Flechas específicas para galería */
.gallery-section .carousel-nav.prev {
    left: -70px;
}

.gallery-section .carousel-nav.next {
    right: -70px;
}

/* Flechas específicas para hemeroteca */
.hemeroteca-section .carousel-nav {
    width: 45px;
    height: 45px;
    font-size: 16px;
    background: rgba(220, 53, 69, 0.8);
}

.hemeroteca-section .carousel-nav:hover {
    background: rgba(220, 53, 69, 0.95);
}

.hemeroteca-section .carousel-nav.prev {
    left: -65px;
}

.hemeroteca-section .carousel-nav.next {
    right: -65px;
}

/* Flechas específicas para testimonios */
.testimonials .carousel-nav {
    background: rgba(40, 167, 69, 0.8);
}

.testimonials .carousel-nav:hover {
    background: rgba(40, 167, 69, 0.95);
}

.testimonials .carousel-nav.prev {
    left: -70px;
}

.testimonials .carousel-nav.next {
    right: -70px;
}

/* PRECIOS */
.pricing-section {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    padding: 4rem 0;
    text-align: center;
}

.price-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 10px 10px 0 var(--secondary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0 var(--secondary-color);
}

.price-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 1rem 0;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.price-details {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.price-details li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 30px;
}

.price-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2rem;
}

/* BOTONES */
.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.6s, height 0.6s;
}

.btn-primary {
    background: black;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-primary::before {
    background: white;
}

.btn-primary:hover {
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary {
    background: white;
    color: black;
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.btn-secondary::before {
    background: black;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.4);
}

.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-buy {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    font-size: 1.2rem;
    padding: 20px 50px;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.4);
}

.btn-buy:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn span {
    position: relative;
    z-index: 1;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Mensajes */
.success-message {
    background: #4CAF50;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.success-message.show {
    display: block;
}

.error-message {
    background: #f44336;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
    text-align: center;
}

.error-message.show {
    display: block;
}

/* Modal */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.payment-modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    animation: fadeIn 0.3s ease-out;
}

/* Footer */
.footer {
    position: relative;
    background: #000000 !important;
    color: white !important;
    padding: 2rem 0 !important;
    text-align: center !important;
}

.footer a {
    color: white;
    text-decoration: underline;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--secondary-color);
}

/* RESPONSIVE DESIGN */

/* Hover para desktop */
@media (min-width: 769px) {
    .carousel-container .carousel-nav {
        opacity: 0.7;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .carousel-container:hover .carousel-nav {
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    .carousel-container {
        margin: 0 60px !important;
    }
    
    .carousel-nav.prev {
        left: -55px !important;
    }
    
    .carousel-nav.next {
        right: -55px !important;
    }
}

@media (max-width: 992px) {
    .carousel-container {
        margin: 0 50px !important;
    }
    
    .carousel-nav {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
    
    .carousel-nav.prev {
        left: -45px !important;
    }
    
    .carousel-nav.next {
        right: -45px !important;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-cover::after {
        display: none;
    }

    .carousel-container {
        margin: 0 20px !important;
    }
    
    .carousel-nav {
        width: 35px !important;
        height: 35px !important;
        font-size: 12px !important;
        background: rgba(0, 0, 0, 0.8) !important;
    }
    
    .carousel-nav.prev {
        left: -15px !important;
    }
    
    .carousel-nav.next {
        right: -15px !important;
    }
    
    .hemeroteca-section .carousel-nav,
    .testimonials .carousel-nav {
        background: rgba(0, 0, 0, 0.6) !important;
    }

    .gallery-section h2::before,
    .gallery-section h2::after {
        display: none;
    }

    .hemeroteca-section .carousel-slide {
        min-width: 160px;
        max-width: 180px;
        height: 220px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        margin: 0 10px !important;
    }
    
    .carousel-nav {
        width: 30px !important;
        height: 30px !important;
        font-size: 10px !important;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .carousel-nav.prev {
        left: 5px !important;
    }
    
    .carousel-nav.next {
        right: 5px !important;
    }
    
    .carousel-container:hover .carousel-nav,
    .carousel-container:active .carousel-nav,
    .carousel-container:focus-within .carousel-nav {
        opacity: 0.8;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .hemeroteca-section .carousel-slide {
        min-width: 140px;
        max-width: 160px;
        height: 200px;
        padding: 8px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    header, .audio-section, .gallery-section, .pricing-section {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .book-cover img {
        max-width: 300px;
    }
}
/* Eliminar transiciones para carruseles continuos */
.hemeroteca-section .carousel-track,
.testimonials .carousel-track {
    transition: none !important;
}

/* Mantener transición solo para galería principal */
.gallery-section .carousel-track {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Asegurar que el contenido no se desborde */
.hemeroteca-section .carousel-container,
.testimonials .carousel-container {
    overflow: hidden;
}

/* Optimización para animaciones suaves */
.carousel-track {
    will-change: transform;
}
video-player {
    margin: 0;
}
/* Sección de Video */
.video-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.video-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.video-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.video-player h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    text-align: center;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-player video {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #000;
    border: 2px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-player video:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Estilos para controles de video */
.video-player video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

.video-player video::-webkit-media-controls-play-button,
.video-player video::-webkit-media-controls-fullscreen-button {
    filter: brightness(1.2);
}

/* Mensaje de fallback */
.video-player video p {
    color: #666;
    font-size: 1rem;
    margin: 2rem;
    text-align: center;
}

.video-player video p a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.video-player video p a:hover {
    border-bottom-color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-section {
        padding: 3rem 0;
    }
    
    .video-section .container {
        padding: 0 1rem;
    }
    
    .video-player {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .video-player h3 {
        font-size: 1.6rem;
    }
    
    .video-player video {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .video-section {
        padding: 2rem 0;
    }
    
    .video-player {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .video-player h3 {
        font-size: 1.4rem;
    }
    
    .video-player video {
        border-radius: 6px;
        border-width: 1px;
    }
}

/* Animación de entrada */
.video-player {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de hover en el contenedor */
.video-player:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Estados de carga del video */
.video-player video[preload="metadata"] {
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    background-size: 400% 400%;
    animation: loadingGradient 2s ease-in-out infinite;
}

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

/* Accesibilidad */
.video-player video:focus {
    outline: 3px solid #e74c3c;
    outline-offset: 2px;
}

/* Para usuarios que prefieren movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .video-player {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .video-player:hover {
        transform: none;
    }
    
    .video-player video:hover {
        transform: none;
    }
    
    .video-player video[preload="metadata"] {
        animation: none;
    }
}