﻿/* ==========================================================================
   COMYVO - Página Sobre Nosotros
   Estilos específicos para /sobre-nosotros, /about-us, etc.
   ========================================================================== */

/* ==========================================================================
   Variables específicas de esta página
   ========================================================================== */
:root {
    --about-hero-height: 60vh;
    --about-hero-min-height: 450px;
    --about-section-padding: 100px 0;
    --about-section-padding-mobile: 60px 0;
}

/* ==========================================================================
   Body de la página
   ========================================================================== */
.page-about {
    background: var(--bg-page);
}

/* ==========================================================================
   HERO - Cabecera de la página
   ========================================================================== */
.about-hero {
    min-height: var(--about-hero-height);
    min-height: var(--about-hero-min-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 140px 0 80px;
    position: relative;
}

    .about-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(63, 127, 140, 0.85) 0%, rgba(31, 45, 61, 0.9) 100%);
        z-index: 1;
    }

    .about-hero .container {
        position: relative;
        z-index: 2;
    }

.about-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.about-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease;
}

.about-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 25px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.about-hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.about-section {
    padding: var(--about-section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

    .section-header .section-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
        color: var(--text-dark);
    }

    .section-header .section-subtitle {
        font-size: 1.2rem;
        color: var(--text-medium);
        max-width: 600px;
        margin: 0 auto;
    }

.section-badge {
    width: 70px;
    height: 70px;
    background: var(--bg-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: var(--shadow-primary);
}

    .section-badge i {
        font-size: 1.8rem;
        color: var(--white);
    }

.section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 25px;
}

/* ==========================================================================
   GRID TEXTO + IMAGEN
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-grid-reverse {
    direction: rtl;
}

    .about-grid-reverse > * {
        direction: ltr;
    }

.about-image {
    position: relative;
}

    .about-image img {
        width: 100%;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .about-image::before {
        content: '';
        position: absolute;
        top: -20px;
        left: -20px;
        right: 20px;
        bottom: 20px;
        background: var(--bg-gradient);
        border-radius: var(--radius-lg);
        z-index: -1;
        opacity: 0.2;
    }

    .about-image:hover img {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg), 0 30px 60px rgba(63, 127, 140, 0.2);
    }

.about-content {
    padding: 20px 0;
}

.about-text {
    color: var(--text-medium);
    line-height: 1.9;
}

    .about-text p {
        margin-bottom: 20px;
    }

        .about-text p:last-child {
            margin-bottom: 0;
        }

    .about-text strong {
        color: var(--text-dark);
        font-weight: 600;
    }

    .about-text em {
        color: var(--primary);
        font-style: normal;
        font-weight: 500;
    }

/* ==========================================================================
   SECCIÓN: VALORES (Cards)
   ========================================================================== */
.about-values {
    background: linear-gradient(180deg, #f8fafc 0%, var(--bg-page) 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .value-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--bg-gradient);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s ease;
    }

    .value-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

        .value-card:hover::before {
            transform: scaleX(1);
        }

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

    .value-icon i {
        font-size: 2rem;
        transition: var(--transition);
    }

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.value-text {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ==========================================================================
   SECCIÓN: POR QUÉ COMYVO (Lista)
   ========================================================================== */
.about-why {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.why-item {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: var(--bg-page);
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

    .why-item:hover {
        background: var(--white);
        border-color: var(--border-color);
        box-shadow: var(--shadow);
        transform: translateX(10px);
    }

.why-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(63, 127, 140, 0.15);
    transition: var(--transition);
}

    .why-icon i {
        font-size: 1.5rem;
    }

.why-item:hover .why-icon {
    background: var(--bg-gradient);
    transform: rotate(5deg);
}

    .why-item:hover .why-icon i {
        color: var(--white) !important;
    }

.why-content {
    flex: 1;
}

.why-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.why-text {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ==========================================================================
   SECCIÓN: CTA
   ========================================================================== */
.about-cta {
    background: var(--bg-gradient);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .about-cta::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
        animation: pulse 15s ease-in-out infinite;
    }

    .about-cta .cta-content {
        position: relative;
        z-index: 2;
    }

    .about-cta .cta-title {
        font-size: 2.8rem;
        color: var(--white);
        margin-bottom: 15px;
    }

    .about-cta .cta-subtitle {
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 10px;
    }

    .about-cta .cta-text {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 35px;
    }

    .about-cta .btn-white {
        background: var(--white);
        color: var(--primary-dark);
        padding: 18px 40px;
        font-size: 1.1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

        .about-cta .btn-white:hover {
            background: var(--text-dark);
            color: var(--white);
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(180deg);
    }
}

/* Animaciones al hacer scroll */
.about-section .about-grid,
.about-section .values-grid,
.about-section .why-grid,
.about-section .section-header {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.about-section.animate-in .about-grid,
.about-section.animate-in .values-grid,
.about-section.animate-in .why-grid,
.about-section.animate-in .section-header {
    opacity: 1;
    transform: translateY(0);
}

/* Delay escalonado para cards */
.value-card,
.why-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.about-section.animate-in .value-card:nth-child(1),
.about-section.animate-in .why-item:nth-child(1) {
    transition-delay: 0.1s;
}

.about-section.animate-in .value-card:nth-child(2),
.about-section.animate-in .why-item:nth-child(2) {
    transition-delay: 0.2s;
}

.about-section.animate-in .value-card:nth-child(3),
.about-section.animate-in .why-item:nth-child(3) {
    transition-delay: 0.3s;
}

.about-section.animate-in .value-card:nth-child(4),
.about-section.animate-in .why-item:nth-child(4) {
    transition-delay: 0.4s;
}

.about-section.animate-in .value-card,
.about-section.animate-in .why-item {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablets */
@media (max-width: 1024px) {
    .about-hero-title {
        font-size: 2.8rem;
    }

    .about-hero-subtitle {
        font-size: 1.3rem;
    }

    .about-grid {
        gap: 50px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        padding: 80px 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .about-hero {
        min-height: auto;
        padding: 120px 0 60px;
        background-attachment: scroll;
    }

    .about-hero-title {
        font-size: 2.2rem;
    }

    .about-hero-subtitle {
        font-size: 1.15rem;
    }

    .about-hero-text {
        font-size: 1rem;
    }

    .about-section {
        padding: var(--about-section-padding-mobile);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-grid-reverse {
        direction: ltr;
    }

    .about-image {
        order: -1;
    }

        .about-image::before {
            top: -10px;
            left: -10px;
            right: 10px;
            bottom: 10px;
        }

    .section-header .section-title,
    .section-title {
        font-size: 1.8rem;
    }

    .section-badge {
        width: 60px;
        height: 60px;
    }

        .section-badge i {
            font-size: 1.5rem;
        }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .value-card {
        padding: 30px 25px;
    }

    .value-icon {
        width: 70px;
        height: 70px;
    }

    .why-item {
        padding: 25px;
        flex-direction: column;
        text-align: center;
    }

    .why-icon {
        margin: 0 auto;
    }

    .why-item:hover {
        transform: translateY(-5px);
    }

    .about-cta {
        padding: 70px 0;
    }

        .about-cta .cta-title {
            font-size: 2rem;
        }

        .about-cta .cta-subtitle {
            font-size: 1.1rem;
        }

        .about-cta .btn-white {
            padding: 16px 35px;
            font-size: 1rem;
        }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .about-hero-title {
        font-size: 1.8rem;
    }

    .about-hero-subtitle {
        font-size: 1rem;
    }

    .section-header .section-title,
    .section-title {
        font-size: 1.5rem;
    }

    .section-header .section-subtitle,
    .section-subtitle {
        font-size: 1rem;
    }

    .value-card {
        padding: 25px 20px;
    }

    .value-title {
        font-size: 1.1rem;
    }

    .why-item {
        padding: 20px;
    }

    .why-icon {
        width: 50px;
        height: 50px;
    }

        .why-icon i {
            font-size: 1.2rem;
        }

    .why-title {
        font-size: 1.1rem;
    }

    .about-cta .cta-title {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   UTILIDADES ESPECÍFICAS
   ========================================================================== */

/* Efecto parallax suave */
@media (min-width: 769px) {
    .about-hero {
        background-attachment: fixed;
    }
}

/* Accesibilidad - Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .about-hero-title,
    .about-hero-subtitle,
    .about-hero-text,
    .value-card,
    .why-item,
    .about-section .about-grid,
    .about-section .values-grid,
    .about-section .why-grid {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }

    .about-cta::before {
        animation: none;
    }
}

/* Print styles */
@media print {
    .about-hero {
        background: var(--primary) !important;
        min-height: auto;
        padding: 40px 0;
    }

    .about-section {
        padding: 30px 0;
    }

    .value-card,
    .why-item {
        break-inside: avoid;
    }

    .about-cta {
        background: var(--text-dark) !important;
    }
}
