/* --- Quienes Somos Page Styles --- */

.compania-layout {
    position: relative;
    overflow-x: hidden;
    background-color: #020202;
}

/* Re-using background blobs for consistency */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(253, 136, 49, 0.12) 0%, rgba(253, 136, 49, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: blobFloat 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -15%;
    right: -10%;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.08) 0%, transparent 70%);
}

.blob-2 {
    bottom: -10%;
    left: -5%;
    animation-delay: -7s;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(5%, 5%) rotate(10deg);
    }
}

/* Content Sections */
.compania-page {
    padding-top: 100px;
}

.compania-hero {
    padding: 0;
}

.about-story-section {
    padding: 40px 0 100px;
}

.about-text-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.about-text-container p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 30px;
    text-align: justify;
}

.about-text-container p:last-child {
    margin-bottom: 0;
    text-align: center;
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-top: 50px;
}

/* Team Grid Section */
.team-section {
    padding: 100px 0;
    background: rgba(5, 5, 5, 0.5);
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}


.member-card {
    flex: 0 1 calc(33.333% - 27px);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.member-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.member-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-10px);
    border-color: rgba(253, 136, 49, 0.3);
}

.member-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* Prioritize the top of portraits */
    transition: transform 0.5s ease;
}

.member-card:hover .member-photo img {
    transform: scale(1.1);
}

.member-info h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.member-info span {
    display: block;
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.member-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.member-social:hover {
    background: var(--accent-color);
    color: var(--footer-bg);
}

/* Animations */
@keyframes revealTitle {
    from {
        opacity: 0;
        filter: blur(15px);
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

@keyframes revealAbout {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.compania-hero .section-title {
    animation: revealTitle 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.compania-hero .stagger {
    display: block;
    opacity: 0;
    animation: revealTitle 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.compania-hero .stagger[style*="--i:1"] {
    animation-delay: 0.3s;
}

.compania-hero .stagger[style*="--i:2"] {
    animation-delay: 0.5s;
}

.compania-hero .stagger[style*="--i:3"] {
    animation-delay: 0.7s;
}

.about-text-container {
    animation: revealAbout 1.2s ease-out 0.8s forwards;
    /* Slight delay after title */
    opacity: 0;
    /* Start invisible for animation */
}

/* Responsive */
@media (max-width: 1100px) {
    .member-card {
        flex: 0 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .about-text-container {
        padding: 40px 25px;
    }

    .about-text-container p {
        font-size: 1.05rem;
        text-align: left;
    }

    .compania-page {
        padding-top: 70px;
    }
}

@media (max-width: 576px) {
    .member-card {
        flex: 0 1 100%;
    }

    .team-section {
        padding: 60px 0;
    }
}
