/* =====================================================
   4D Gestión - Custom Styles
   ===================================================== */

/* Variables CSS */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #353a3f;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, rgba(13, 110, 253, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    --gradient-cta: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-4 {
    font-weight: 700;
    line-height: 1.1;
}

.display-5 {
    font-weight: 600;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* Navigation */
.navbar {
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-stats .stat-item {
    padding: 1rem;
}

.hero-stats h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    display: inline-block;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Features Section */
.feature-card {
    padding: 2rem 1rem;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Service Cards */
.service-card {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-features li:last-child {
    border-bottom: none;
}

/* Workflow Section */
.workflow-container {
    padding: 2rem 0;
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.workflow-step {
    text-align: center;
    flex: 0 0 auto;
    min-width: 120px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
    box-shadow: var(--box-shadow);
}

.workflow-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex: 0 0 auto;
}

.step-content h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* About Section */
.about-content {
    padding: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon-small {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Technology Section */
.tech-card {
    padding: 2rem 1rem;
    background: var(--white-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    height: 100%;
}

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

.tech-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tech-card h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-cta);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

/* Contact Section */
.contact-form-container {
    background: var(--white-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form .form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.contact-form .form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 1rem;
}

.contact-form .btn {
    padding: 1rem 3rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.contact-info-item {
    padding: 2rem 1rem;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.footer-brand h4 {
    color: var(--white-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

footer a {
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--white-color) !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1050;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    animation: bounce-in 0.5s ease;
}

.back-to-top:hover {
    transform: translateX(-50%) translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(13, 110, 253, 0.4);
    background: linear-gradient(135deg, #0b5ed7, #6741a6);
}

.back-to-top:active {
    transform: translateX(-50%) translateY(-1px) scale(1.02);
}

/* Animación de entrada del botón */
@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .workflow-steps {
        flex-direction: column;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Back to Top Button Tablet */
    .back-to-top {
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .back-to-top:hover {
        transform: translateX(-50%) translateY(-3px) scale(1.05);
    }
    
    .back-to-top:active {
        transform: translateX(-50%) translateY(-1px) scale(1.02);
    }
}

@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
    
    .hero-stats .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .workflow-step {
        min-width: 100px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Back to Top Button Mobile */
    .back-to-top {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .back-to-top:hover {
        transform: translateX(-50%) translateY(-3px) scale(1.05);
    }
    
    .back-to-top:active {
        transform: translateX(-50%) translateY(-1px) scale(1.02);
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    /* Back to Top Button Small Mobile */
    .back-to-top {
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }
    
    .back-to-top:hover {
        transform: translateX(-50%) translateY(-3px) scale(1.05);
    }
    
    .back-to-top:active {
        transform: translateX(-50%) translateY(-1px) scale(1.02);
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-form-container {
        padding: 1.5rem 1rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   VIDEOS SECTION
   ===================================================== */

/* Video Container */
.video-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.video-container:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* Play Buttons */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(13, 110, 253, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(13, 110, 253, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.play-button-small:hover {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Info Overlays */
.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 20px 20px;
    color: white;
}

.video-info-small {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 15px 10px;
    color: white;
}

/* Main Video */
.main-video {
    height: 400px;
}

.main-video .video-thumbnail {
    height: 100%;
}

.main-video .video-thumbnail img {
    height: 100%;
    object-fit: cover;
}

/* Secondary Videos */
.secondary-video {
    height: 120px;
    margin-bottom: 15px;
}

.secondary-video .video-thumbnail {
    height: 100%;
}

.secondary-video .video-thumbnail img {
    height: 100%;
    object-fit: cover;
}

/* Testimonial Video */
.testimonial-video {
    border-left: 4px solid var(--primary-color);
}

.testimonial-avatar img {
    border: 3px solid var(--primary-color);
}

/* =====================================================
   PRICING SECTION
   ===================================================== */

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px 25px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

/* Featured Plan */
.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

/* Pricing Badge */
.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Pricing Header */
.pricing-header {
    margin-bottom: 30px;
}

.pricing-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.pricing-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pricing-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Pricing Price */
.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 10px;
}

.currency {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.period {
    font-size: 16px;
    color: var(--secondary-color);
    margin-left: 5px;
}

.amount-custom {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-billing {
    margin-bottom: 0;
}

/* Pricing Features */
.pricing-features {
    flex-grow: 1;
    margin-bottom: 30px;
}

.pricing-features ul li {
    padding: 8px 0;
    font-size: 15px;
}

.pricing-features ul li.text-muted {
    opacity: 0.6;
}

/* Pricing Footer */
.pricing-footer {
    margin-top: auto;
}

/* Pricing Benefits */
.pricing-benefits {
    border-top: 3px solid var(--primary-color);
}

.benefit-item i {
    font-size: 24px;
    display: block;
}

.benefit-item h6 {
    margin-top: 10px;
    margin-bottom: 5px;
}

/* =====================================================
   RESPONSIVE DESIGN - VIDEOS & PRICING
   ===================================================== */

@media (max-width: 768px) {
    /* Videos Mobile */
    .main-video {
        height: 250px;
        margin-bottom: 20px;
    }
    
    .secondary-video {
        height: 100px;
        margin-bottom: 10px;
    }
    
    .video-info {
        padding: 20px 15px 15px;
    }
    
    .video-info h4 {
        font-size: 18px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .play-button-small {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    /* Pricing Mobile */
    .pricing-card.featured {
        transform: none;
        margin-bottom: 20px;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .pricing-price .amount {
        font-size: 36px;
    }
    
    .pricing-benefits .row > div {
        margin-bottom: 15px;
    }
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

/* Static Icons - No movement on scroll or hover */
.feature-icon,
.service-icon,
.tech-icon,
.contact-icon,
.feature-icon-small,
.fas,
.fab,
.far,
.fal,
.fad {
    transform: none !important;
    transition: color 0.3s ease, background-color 0.3s ease !important;
}

/* Ensure icons don't move during card animations */
.feature-card:hover .feature-icon,
.service-card:hover .service-icon,
.tech-card:hover .tech-icon,
.contact-info-item:hover .contact-icon,
.feature-item:hover .feature-icon-small {
    transform: none !important;
}

/* Allow only color/background transitions for icons */
.feature-icon i,
.service-icon i,
.tech-icon i,
.contact-icon i,
.feature-icon-small i {
    transform: none !important;
    transition: color 0.3s ease !important;
}

.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    display: block;
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

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

/* Focus Styles */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .cta-section {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .hero-section * {
        color: black !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .service-card,
    .contact-form-container,
    .tech-card {
        background: #1a1a1a;
        color: white;
    }
    
    .text-muted {
        color: #ccc !important;
    }
}

/* =====================================================
   VIDEO MODAL
   ===================================================== */

/* Modal personalizado para videos */
#videoModal .modal-content {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

#videoModal .modal-body {
    background: #000;
    padding: 0;
}

#videoModal video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    background: #000;
    outline: none;
    border-radius: var(--border-radius);
}

/* Asegurar que el modal se cierre correctamente */
#videoModal.modal.fade {
    transition: opacity 0.3s ease;
}

#videoModal.modal.show {
    display: block !important;
}

/* Backdrop personalizado más oscuro */
#videoModal ~ .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.85);
}

/* Tamaño modal-lg responsive */
@media (min-width: 992px) {
    #videoModal .modal-lg {
        max-width: 800px;
    }
}

/* Responsive para el modal */
@media (max-width: 991px) {
    #videoModal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    #videoModal video {
        max-height: 70vh;
    }
}

@media (max-width: 768px) {
    #videoModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    #videoModal video {
        max-height: 60vh;
    }
}

/* Animación suave para el modal */
#videoModal .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: scale(0.8);
}

#videoModal.show .modal-dialog {
    transform: scale(1);
}

/* Efecto hover en el backdrop para indicar que se puede cerrar */
#videoModal .modal-backdrop {
    cursor: pointer;
}

/* Loading spinner para cuando carga el video */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    z-index: 10;
}
