/* ============================================
   ABOUT US - DISEÑO MODERNO
   ============================================ */

/* Contenedor Principal */
.about-container {
    background: #ffffff;
    min-height: 100vh;
}

/* ============================================
   HERO SECTION
   ============================================ */

.about-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 128, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.about-title {
    font-size: 4rem;
    font-weight: 700;
    color: #008000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #008000 0%, #00b300 100%);
    border-radius: 2px;
    margin-top: 10px;
}

.logo-showcase {
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* ============================================
   INTRO SECTION
   ============================================ */

.about-intro {
    background: #ffffff;
}

.about-intro-video {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.about-intro-video .row {
    min-height: 400px;
}

.intro-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-left: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.intro-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
}

/* ============================================
   VIDEO SECTION
   ============================================ */

.about-video {
    background: #f8f9fa;
}

.video-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.video-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.video-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #008000;
    margin-bottom: 20px;
}

.video-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    flex-grow: 1;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 15px;
    object-fit: cover;
}

.video-description {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: auto;
}

/* ============================================
   FEATURES GRID
   ============================================ */

.features-grid {
    background: #ffffff;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #008000 0%, #00b300 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #008000 0%, #00b300 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.feature-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-image {
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.shadow-hover:hover {
    transform: scale(1.05);
}

/* ============================================
   IMAGE MODAL
   ============================================ */

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: scaleIn 0.3s ease;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: #008000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #00b300;
    transform: rotate(90deg);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .about-title {
        font-size: 3rem;
    }

    /* En tablets, mantener lado a lado pero ajustar */
    .about-intro-video .row {
        min-height: auto;
    }

    .intro-card,
    .video-card {
        padding: 30px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .video-title {
        font-size: 1.3rem;
    }

    .feature-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 60px 0 40px;
    }

    .about-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .title-underline {
        margin: 10px auto;
    }

    /* En móviles, apilar verticalmente */
    .about-intro-video .col-lg-6 {
        margin-bottom: 0;
    }

    .about-intro-video .col-lg-6:first-child {
        margin-bottom: 1.5rem;
    }

    .intro-card {
        padding: 25px;
        min-height: auto;
    }

    .video-card {
        padding: 25px;
        min-height: auto;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .modal-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 576px) {
    .about-title {
        font-size: 2rem;
    }

    .logo-showcase {
        padding: 20px;
    }

    .intro-card {
        padding: 20px;
        border-left-width: 3px;
    }

    .video-card {
        padding: 20px;
    }

    .intro-text {
        font-size: 0.95rem;
    }

    .video-title {
        font-size: 1.2rem;
    }

    .video-description {
        font-size: 0.85rem;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
    .about-container {
        background: #1a1a1a;
    }

    .about-hero {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }

    .intro-card,
    .video-card,
    .feature-card {
        background: #2a2a2a;
        color: #e0e0e0;
    }

    .about-title,
    .section-title,
    .feature-title {
        color: #00b300;
    }

    .intro-text,
    .video-description,
    .feature-description {
        color: #b0b0b0;
    }
}
