/* public_html/assets/css/pages/quienes-somos-page.css */

/* ===== HERO PAGE HEADER ===== */
.qsp-hero {
    margin-top: 80px;
    height: 450px;
    position: relative;
    overflow: hidden;
    background: #2b3647;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.qsp-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1600&q=80');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) contrast(1.1);
    z-index: 1;
}

.qsp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.qsp-hero-subtitle {
    font-family: 'Good Times', sans-serif;
    font-size: 14px;
    color: #CAA874;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
    animation: fadeInUp 0.8s ease forwards;
}

.qsp-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    color: var(--white);
    font-weight: 500;
    line-height: 1.2;
    animation: fadeInUp 1s ease forwards;
}

/* ===== HISTORY SECTION ===== */
.qsp-history-section {
    padding: 120px 80px;
    background: var(--white);
}

.qsp-history-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

.qsp-history-text {
    flex: 1.2;
}

.qsp-history-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #2F3B4A;
    margin-bottom: 28px;
    position: relative;
    display: inline-block;
}

.qsp-history-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #CAA874;
}

.qsp-history-text p {
    font-family: 'Avenir Next', 'Avenir', 'Montserrat', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    font-weight: 300;
}

.qsp-history-highlight {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #2F3B4A;
    line-height: 1.6;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 3px solid #CAA874;
    font-style: italic;
}

.qsp-history-image {
    flex: 0.8;
    position: relative;
    height: 480px;
}

.qsp-history-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    z-index: 2;
    position: relative;
    clip-path: polygon(15% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%, 0% 15%);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.qsp-history-img-bg {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 100%;
    height: 100%;
    background: #2F3B4A;
    border-radius: 20px;
    z-index: 1;
    clip-path: polygon(15% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%, 0% 15%);
    opacity: 0.9;
}

/* ===== VALUES SECTION ===== */
.qsp-values-section {
    padding: 100px 80px;
    background: #fdfcf7; /* Fondo beige premium sumamente sutil */
    text-align: center;
}

.qsp-section-header {
    max-width: 800px;
    margin: 0 auto 60px;
}

.qsp-section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #2F3B4A;
    margin-bottom: 16px;
}

.qsp-section-header p {
    font-family: 'Avenir Next', 'Avenir', 'Montserrat', sans-serif;
    font-size: 16px;
    color: #777;
    font-weight: 300;
}

.qsp-values-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.qsp-value-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f1ece1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.qsp-value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #CAA874;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.qsp-value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(47, 59, 74, 0.08);
    border-color: #CAA874;
}

.qsp-value-card:hover::before {
    transform: scaleX(1);
}

.qsp-value-icon {
    font-size: 32px;
    color: #CAA874;
    margin-bottom: 24px;
    display: inline-block;
}

.qsp-value-card h3 {
    font-family: 'Avenir Next', 'Avenir', 'Montserrat', sans-serif;
    font-size: 20px;
    color: #2F3B4A;
    margin-bottom: 16px;
    font-weight: 600;
}

.qsp-value-card p {
    font-family: 'Avenir Next', 'Avenir', 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    font-weight: 300;
}

/* ===== TEAM SECTION ===== */
.qsp-team-section {
    padding: 120px 80px;
    background: var(--white);
    text-align: center;
}

.qsp-team-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.qsp-team-card {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
}

.qsp-team-img-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: visible;
    position: relative;
}

.qsp-team-img-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    background: #f0f0f0;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f1ece1;
}

.qsp-team-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.qsp-team-name-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    background: #ffffff;
    padding: 12px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    width: 82%;
    z-index: 10;
    text-align: center;
    border-radius: 0;
    border: 1px solid #f3eff6;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.qsp-team-name-badge h3 {
    font-family: 'Avenir Next', 'Avenir', 'Montserrat', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.qsp-team-details {
    margin-top: 36px;
    padding: 0 10px;
}

.qsp-team-role {
    font-family: 'Avenir Next', 'Avenir', 'Montserrat', sans-serif;
    font-size: 14px;
    color: #777777;
    font-weight: 400;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.qsp-team-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.qsp-team-socials a {
    color: #1a1a1a;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.qsp-team-socials a:hover {
    color: #CAA874;
    transform: translateY(-2px);
}

/* Hover Animations */
.qsp-team-card:hover {
    transform: translateY(-4px);
}

.qsp-team-card:hover .qsp-team-img-container img {
    transform: scale(1.04);
}

.qsp-team-card:hover .qsp-team-name-badge {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #CAA874;
}

.qsp-team-card:hover .qsp-team-role {
    color: #1a1a1a;
}

/* ===== RESPONSIVE ===== */

/* Tablets Landscape & Nest Hub Max (769px to 1280px) */
@media (min-width: 769px) and (max-width: 1280px) {
    .qsp-hero {
        height: 380px !important;
    }
    
    .qsp-hero-title {
        font-size: 46px !important;
    }
    
    .qsp-history-section {
        padding: 80px 40px !important;
    }
    
    .qsp-history-container {
        gap: 40px !important;
    }
    
    .qsp-history-text h2 {
        font-size: 34px !important;
    }
    
    .qsp-history-text p {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }
    
    .qsp-history-image {
        max-width: 380px !important;
        height: 420px !important;
    }
    
    .qsp-values-section {
        padding: 80px 40px !important;
    }
    
    .qsp-values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
    
    .qsp-team-section {
        padding: 80px 40px !important;
    }
    
    .qsp-team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 36px 24px !important;
    }

    .qsp-team-card {
        max-width: 250px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
}

/* Mobiles and Portrait Tablets (up to 768px) */
@media (max-width: 768px) {
    .qsp-hero {
        height: 300px !important;
        margin-top: 76px !important;
    }
    
    .qsp-hero-title {
        font-size: 36px !important;
    }
    
    .qsp-history-section {
        padding: 60px 20px !important;
    }
    
    .qsp-history-container {
        flex-direction: column !important;
        gap: 40px !important;
    }
    
    .qsp-history-text {
        text-align: left !important;
    }
    
    .qsp-history-text h2 {
        font-size: 30px !important;
        display: block !important;
    }
    
    .qsp-history-text p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    
    .qsp-history-highlight {
        font-size: 18px !important;
    }
    
    .qsp-history-image {
        width: 100% !important;
        max-width: 360px !important;
        height: 380px !important;
        margin: 0 auto !important;
    }
    
    .qsp-values-section {
        padding: 60px 20px !important;
    }
    
    .qsp-section-header h2 {
        font-size: 30px !important;
    }
    
    .qsp-values-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .qsp-value-card {
        padding: 30px 24px !important;
    }
    
    .qsp-team-section {
        padding: 60px 20px !important;
    }
    
    .qsp-team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 36px 16px !important;
    }
    
    .qsp-team-card {
        max-width: 220px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    .qsp-team-name-badge {
        width: 90% !important;
        padding: 8px 6px !important;
    }

    .qsp-team-name-badge h3 {
        font-size: 11px !important;
        letter-spacing: 0.1px !important;
    }

    .qsp-team-details {
        margin-top: 24px !important;
    }

    .qsp-team-role {
        font-size: 11px !important;
        margin-bottom: 8px !important;
        letter-spacing: 0.3px !important;
    }

    .qsp-team-socials {
        gap: 12px !important;
        margin-top: 6px !important;
    }

    .qsp-team-socials a {
        font-size: 12px !important;
        width: 16px !important;
        height: 16px !important;
    }
}

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