/*--------------------------------------------------------------
# Landing Home
--------------------------------------------------------------*/

.page {
    margin: 0;
}

/* -- Secciones de pantalla completa -- */
.landing-page #masthead,
.landing-page #colophon,
.landing-page .site-branding,
.landing-page .skip-link {
    display: none;
}

.landing-page #page {
    margin: 0;
    padding: 0;
}

.landing-home {
    padding: 0;
    margin: 0;
}

.landing-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 2rem;
    overflow: hidden;
    position: relative;
}

.landing-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
    pointer-events: none;
}

.landing-section>* {
    position: relative;
    z-index: 2;
}

.landing-home {
    position: relative;
}

.landing-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
    pointer-events: none;
    transition: background 0.1s linear;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Menú hero */
.hero-menu {
    flex: 1;
}

.hero-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-end;
}

.hero-menu-list li a {
    text-decoration: none;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.25rem;
    text-shadow:
        0 0 7px #ff1a1a,
        0 0 10px #ff1a1a,
        0 0 21px #ff1a1a,
        0 0 42px #e60000,
        0 0 82px #e60000,
        0 0 92px #e60000;
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

.hero-menu-list li a:hover {
    color: #fff;
    text-shadow:
        0 0 10px #ff4d4d,
        0 0 20px #ff4d4d,
        0 0 40px #ff1a1a,
        0 0 80px #e60000,
        0 0 120px #e60000,
        0 0 150px #e60000;
}

/* Imagen hero */
.hero-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4 / 3;
    border: 2px solid #222;
    background: #fff;
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
}

/* -- Quiénes Somos Section -- */
.quienes-somos-section {
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin: 0 0 1rem;
}

.team-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
    max-width: 1600px;
    width: 100%;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 33.333%;
    flex: 0 0 33.333%;
    min-width: 0;
    max-width: 33.333%;
    height: 80vh;
}

.member-name {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 2;
    text-shadow:
        0 0 7px #ff1a1a,
        0 0 10px #ff1a1a,
        0 0 21px #ff1a1a,
        0 0 42px #e60000,
        0 0 82px #e60000,
        0 0 92px #e60000;
}

/* -- Flip Card -- */
.flip-card {
    width: 100%;
    flex: 1;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
}

.flip-card-front {
    background: #000;
}

.flip-card-back .member-name {
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    text-shadow:
        0 0 7px #ff1a1a,
        0 0 10px #ff1a1a,
        0 0 21px #ff1a1a,
        0 0 42px #e60000,
        0 0 82px #e60000,
        0 0 92px #e60000;
}

.flip-card-back p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

.member-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.member-image-placeholder {
    width: 100%;
    height: 100%;
    border: 2px solid #222;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.flip-card-back {
    background: #222;
    color: #fff;
    transform: rotateY(180deg);
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-sizing: border-box;
}

.flip-card-back-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 8px;
    z-index: 1;
}

.flip-card-back .member-name,
.flip-card-back p {
    z-index: 2;
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

/* -- Botones -- */
.member-buttons {
    display: flex;
    gap: 0;
    justify-content: center;
    width: 100%;
    flex: 0 0 auto;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.member-buttons::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    padding: 1rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    z-index: 1;
    background: transparent;
    color: #fff;
    border: none;
    border-right: 1px solid rgba(255, 26, 26, 0.4);
    text-shadow:
        0 0 7px #ff1a1a,
        0 0 10px #ff1a1a,
        0 0 21px #ff1a1a,
        0 0 42px #e60000;
    transition: text-shadow 0.3s ease;
}

.btn:last-child {
    border-right: none;
}

.btn:hover {
    text-shadow:
        0 0 10px #ff4d4d,
        0 0 20px #ff4d4d,
        0 0 40px #ff1a1a,
        0 0 80px #e60000,
        0 0 120px #e60000;
}

.btn-icon {
    width: 1.4em;
    height: 1.4em;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px #ff1a1a) drop-shadow(0 0 8px #e60000);
}

.btn-primary {
    color: #fff;
}

.btn-primary:hover {
    color: #fff;
}

.btn-secondary {
    color: #fff;
}

.btn-secondary:hover {
    color: #fff;
}

/* -- Logo Fijo Superior -- */
.fixed-logo {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 80px;
    height: 80px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s ease 0.4s, opacity 0.6s ease 0.4s;
    cursor: pointer;
}

.fixed-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fixed-logo.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.fixed-logo.active:hover {
    transform: translateX(-50%) scale(1.1);
}

/* -- Animaciones de Apertura del Hero -- */
@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-150%);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(150%);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-150%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(150%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-section.opening .hero-menu {
    animation: slideOutLeft 0.8s ease forwards;
}

.hero-section.opening .hero-image {
    animation: slideOutRight 0.8s ease forwards;
}

.hero-section.opening {
    pointer-events: none;
}

.hero-section.returning .hero-menu {
    animation: slideInLeft 0.8s ease forwards;
}

.hero-section.returning .hero-image {
    animation: slideInRight 0.8s ease forwards;
}

/* -- Botón Conóceme (oculto en desktop) -- */
.btn-conoceme {
    display: none;
}

/* -- Responsive (tablet y abajo) -- */
@media (max-width: 768px) {

    /* Hero */
    .hero-container {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
        align-items: center;
    }

    .hero-menu {
        width: 100%;
    }

    .hero-menu-list {
        align-items: center;
    }

    .hero-menu-list li a {
        font-size: 1.4rem;
    }

    .hero-logo {
        max-width: 250px;
    }

    .hero-image {
        flex: none;
    }

    .hero-image-placeholder {
        max-width: 250px;
    }

    /* Quiénes Somos */
    .quienes-somos-section {
        height: auto;
        min-height: 100vh;
        padding: 2rem 1rem;
    }

    .team-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .team-member {
        width: 80%;
        max-width: 320px;
        flex: none;
        height: auto;
    }

    .flip-card {
        width: 100%;
        aspect-ratio: 3 / 4;
        flex: none;
    }

    /* Desactivar hover flip en mobile */
    .flip-card:hover .flip-card-inner {
        transform: none;
    }

    /* Flip por clase JS */
    .flip-card-inner.flipped {
        transform: rotateY(180deg);
    }

    /* Botón Conóceme visible */
    .btn-conoceme {
        display: block;
        width: 100%;
        padding: 0.8rem 1rem;
        border: none;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.65);
        color: #fff;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        text-transform: uppercase;
        text-shadow:
            0 0 7px #ff1a1a,
            0 0 10px #ff1a1a,
            0 0 21px #ff1a1a,
            0 0 42px #e60000;
        box-shadow:
            0 0 5px #ff1a1a,
            0 0 10px #e60000,
            inset 0 0 5px rgba(255, 26, 26, 0.2);
        border: 1px solid rgba(255, 26, 26, 0.5);
        transition: text-shadow 0.3s ease, box-shadow 0.3s ease;
    }

    .btn-conoceme:active {
        text-shadow:
            0 0 10px #ff4d4d,
            0 0 20px #ff4d4d,
            0 0 40px #ff1a1a;
        box-shadow:
            0 0 10px #ff4d4d,
            0 0 20px #e60000,
            inset 0 0 10px rgba(255, 26, 26, 0.3);
    }

    .member-buttons {
        width: 100%;
        border-radius: 8px;
    }

    .section-title {
        font-size: 2rem;
    }
}