/* Variables CSS para control fácil del Logo */
:root {
    --logo-height-desktop: 140px;
    --logo-height-mobile: 90px;
    --logo-section-margin-top-desktop: 50px;
    --logo-section-margin-bottom-desktop: 20px;
    --logo-section-margin-top-mobile: 35px;
    --logo-section-margin-bottom-mobile: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    /* White Background */
    color: #000000;
    /* Black Text */
    -webkit-text-size-adjust: 100%;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 100vw;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 0 10px 0;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Sección del logo superior */
.logo-section {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: var(--logo-height-desktop);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: var(--logo-section-margin-top-desktop);
    margin-bottom: var(--logo-section-margin-bottom-desktop);
}

/* Imagen del logo */
#main-logo {
    width: 80%;
    max-width: 400px;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Sección de botones */
.buttons-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 35px;
    /* More spacing for better distribution */
    justify-content: center;
    padding: 0 8px;
    margin-top: 0;
}

.menu-button {
    width: 85%;
    max-width: 300px;
    height: 62px;
    border: 2px solid #87212E;
    border-radius: 16px;
    background-color: #87212E;
    /* Red */
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    font-weight: 700;
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    position: relative;
    overflow: hidden;
    font-family: 'Arial Black', Arial, sans-serif;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
    opacity: 0;
    /* For fade-in animation */
    animation: fadeIn 0.5s ease-out forwards;
}

.menu-button::before {
    display: none;
}

.menu-button:hover::before {
    left: 100%;
}

.menu-button i {
    font-size: 22px;
    color: #ffffff;
    z-index: 2;
    transition: color 0.3s ease;
}

.menu-button span {
    z-index: 2;
    transition: color 0.3s ease;
}

.menu-button:hover, .menu-button:active {
    background-color: #ffffff;
    color: #87212E;
    border-color: #87212E;
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(135, 33, 46, 0.4);
}

.menu-button:hover i, .menu-button:active i {
    color: #87212E;
}

.menu-button:hover span, .menu-button:active span {
    color: #87212E;
}

.menu-button:focus {
    outline: none;
    box-shadow: none;
}

.menu-button::-moz-focus-inner {
    border: 0;
}

/* Sección de redes sociales (Burbujas) */
.social-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 200px; /* Ancho exacto para forzar 3 iconos (3x50px) + 2 gaps (2x20px) = 190px. El 4º y 5º bajarán obligatoriamente. */
    max-width: none;
    margin: 45px auto 35px auto;
    gap: 20px;
    padding: 0;
}

.social-bubble {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #87212E;
    border: 2px solid #87212E;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    /* For fade-in animation */
    animation: fadeIn 0.5s ease-out forwards;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.social-bubble i {
    font-size: 24px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.social-bubble:focus {
    outline: none;
}

.social-bubble:hover, .social-bubble:active {
    background-color: #ffffff;
    transform: translateY(-5px) scale(1.1);
    border-color: #87212E;
    box-shadow: 0 0 15px rgba(135, 33, 46, 0.4);
}

.social-bubble:hover i, .social-bubble:active i {
    color: #87212E;
}

/* Sección inferior */
.footer-section {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 60px;
    max-height: 80px;
}

.footer-section p {
    font-size: 13px;
    color: #000000;
    margin: 0;
    opacity: 0.8;
    font-weight: 500;
}

.creator-logo {
    max-width: 90px;
    max-height: 45px;
    object-fit: contain;
    filter: brightness(1.1);
}

/* Deslizador del creador desde abajo */
.creator-slider {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 80px;
    z-index: 1000;
    background: rgba(135, 33, 46, 0.95);
    /* Red background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid #87212E;
    border-bottom: none;
    border-left: none;
    border-radius: 0 12px 0 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.creator-trigger {
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: rgba(135, 33, 46, 0.8);
    border-radius: 0 10px 0 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    border-bottom: none;
}

.creator-trigger:hover {
    background-color: rgba(135, 33, 46, 0.9);
}

.creator-arrow {
    color: #ffffff;
    font-size: 14px;
}

.creator-content {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    -webkit-transform: translateY(20px);
    transition: all 0.3s ease;
}

.creator-content.show {
    height: 85px;
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
}

.creator-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    gap: 6px;
    height: 100%;
}

.creator-info .creator-logo {
    max-width: 70px;
    max-height: 45px;
    object-fit: contain;
    filter: brightness(1.2);
    /* Brighter for dark background */
    order: 2;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.creator-info .creator-logo:hover {
    transform: scale(1.1);
    filter: brightness(1.4);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animations */
.menu-button:nth-child(1) {
    animation-delay: 0.1s;
}

.menu-button:nth-child(2) {
    animation-delay: 0.2s;
}

.menu-button:nth-child(3) {
    animation-delay: 0.3s;
}

.menu-button:nth-child(4) {
    animation-delay: 0.4s;
}

.social-bubble:nth-child(1) {
    animation-delay: 0.5s;
}

.social-bubble:nth-child(2) {
    animation-delay: 0.6s;
}

.social-bubble:nth-child(3) {
    animation-delay: 0.7s;
}

/* Responsive para pantallas más pequeñas */
@media (max-width: 480px) {
    .container {
        padding: 0 0 8px 0;
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        height: 100dvh;
    }

    .menu-button {
        height: 52px;
        width: 90%;
        max-width: 280px;
        font-size: 20px;
        gap: 10px;
        letter-spacing: 1.2px;
        font-family: 'Arial Black', Arial, sans-serif;
    }

    .logo-section {
        height: var(--logo-height-mobile);
        flex: none;
        align-items: center;
        padding: 0;
        margin-top: var(--logo-section-margin-top-mobile);
        margin-bottom: var(--logo-section-margin-bottom-mobile);
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
    }

    #main-logo {
        width: 90%;
        height: var(--logo-height-mobile);
        max-height: var(--logo-height-mobile);
    }

    .buttons-section {
        padding: 0 6px;
        gap: 25px;
        margin-top: 0;
    }

    .menu-button i {
        font-size: 18px;
        color: #ffffff;
    }

    .social-section {
        gap: 15px;
        margin: 35px auto 25px auto;
        width: 170px; /* Exactamente el ancho para 3 iconos de 45px + 2 gaps de 15px (45+45+45+15+15=165px + algo de margen) y obliga al resto a bajar */
        max-width: none;
    }

    .social-bubble {
        width: 45px;
        height: 45px;
    }

    .social-bubble i {
        font-size: 20px;
    }

    .creator-slider {
        left: 0;
        width: 70px;
    }

    .creator-trigger {
        height: 30px;
    }

    .creator-arrow {
        font-size: 12px;
        color: #ffffff;
    }

    .creator-content.show {
        height: 75px;
    }

    .creator-info {
        padding: 6px;
        gap: 4px;
    }

    .creator-info .creator-logo {
        max-width: 60px;
        max-height: 38px;
        object-fit: contain;
        filter: brightness(1.2);
        transition: transform 0.3s ease, filter 0.3s ease;
    }
}
