/* ===== About Video Component ===== */
.about-video-section {
    padding: 5rem 0;
    background: var(--bg-light);
    overflow-x: hidden;
    width: 100%;
}

.about-video-section .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
}

.about-video-content-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Texto */
.about-video-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 4rem 2rem;
    border: none;
    background: transparent;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
    position: relative;
    z-index: 1;
}

.about-video-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    font-family: var(--font-body);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    align-items: flex-start;
}

.features-list li {
    font-size: 0.95rem;
    color: var(--text-medium);
    padding-left: 0;
    position: relative;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: var(--font-body);
}

.features-list li::before {
    display: none;
}

/* Desktop - solo centrar */
@media (min-width: 969px) {
    .about-video-text {
        text-align: center !important;
    }

    .about-video-text p {
        text-align: center !important;
        margin: 0 auto;
    }

    .features-list {
        text-align: center !important;
        align-items: center !important;
        width: 100%;
        justify-content: center;
    }

    .features-list li {
        text-align: center !important;
        padding-left: 0;
        padding-right: 0;
        width: auto;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }
}


/* Video Container */
.about-video-wrapper {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.about-video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0;
    background: #000;
}

/* Loader para video de YouTube */
.video-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.video-loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.about-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Overlay de error 153 */
.youtube-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 2rem;
}

.youtube-error-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.youtube-error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.youtube-error-content h3 {
    color: #d32f2f;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.youtube-error-content p {
    color: #666;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.youtube-error-actions {
    margin: 1.5rem 0;
}

.youtube-error-btn {
    display: inline-block;
    background: #ff0000;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.youtube-error-btn:hover {
    background: #cc0000;
}

.youtube-error-help {
    margin-top: 1.5rem;
    text-align: left;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.youtube-error-help summary {
    cursor: pointer;
    color: #666;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.youtube-error-help ol {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
    color: #666;
    line-height: 1.8;
}

.youtube-error-help li {
    margin-bottom: 0.5rem;
}

.youtube-error-help a {
    color: #1976d2;
    text-decoration: none;
}

.youtube-error-help a:hover {
    text-decoration: underline;
}

/* Placeholder cuando no hay video */
.about-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-beige) 100%);
    color: var(--text-medium);
}

.video-placeholder-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.video-placeholder-text {
    font-size: 1rem;
    color: var(--text-medium);
    margin: 0;
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 968px) {
    .about-video-section {
        padding: 4rem 0;
    }

    .about-video-section .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .about-video-content-grid {
        gap: 3rem;
    }

    .about-video-text {
        order: 2;
        padding: 3rem 2rem;
    }

    .about-video-wrapper {
        order: 1;
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 0;
    }

    .about-video-container {
        aspect-ratio: 16 / 9;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .about-video-section {
        padding: 3rem 0;
    }

    .about-video-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .about-video-content-grid {
        gap: 2.5rem;
        padding: 0;
    }

    .about-video-text {
        padding: 0 1rem;
    }

    .about-video-text p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .features-list {
        padding: 0 1rem;
    }

    .features-list li {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .about-video-wrapper {
        border-radius: 0;
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-video-text {
        padding: 3rem 1rem;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .about-video-section {
        padding: 2.5rem 0;
    }

    .about-video-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .about-video-content-grid {
        gap: 2rem;
        padding: 0;
    }

    .about-video-text {
        padding: 0 0.5rem;
    }

    .about-video-text p {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .features-list {
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .features-list li {
        font-size: 0.9rem;
        padding-left: 1.5rem;
        line-height: 1.65;
    }

    .video-placeholder-icon {
        width: 48px;
        height: 48px;
    }

    .video-placeholder-text {
        font-size: 0.9rem;
    }
}

