/* ===== VARIABLES CSS - PALETA ROJO, NEGRO, ROSA Y GRIS ===== */
:root {
    /* Paleta armonizada profesional */
    --primary-gradient: linear-gradient(135deg, #2C2C2C 0%, #3A3A3A 50%, #1A1A1A 100%);
    --secondary-gradient: linear-gradient(135deg, #E5E5E5 0%, #D0D0D0 100%);
    --accent-color: #A63D40;
    --accent-light: #D4A5A5;
    --accent-dark: #8B2E33;
    --text-primary: #FFFFFF;
    --text-secondary: #F5F5F5;
    --text-muted: #9B9B9B;
    --text-dark: #2C2C2C;
    --shadow-dark: rgba(44, 44, 44, 0.6);
    --shadow-light: rgba(229, 229, 229, 0.4);
    --bubble-color: rgba(212, 165, 165, 0.25);
    --border-light: rgba(229, 229, 229, 0.3);
    --glass-bg: rgba(44, 44, 44, 0.3);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #2C2C2C 0%, #A63D40 30%, #3A3A3A 70%, #1A1A1A 100%);
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== LAYOUT ===== */
.contenedor {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    gap: 1.5rem;
    position: relative;
}

/* ===== IMAGE CONTAINER ===== */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0.5rem;
}

.main-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    box-shadow: 0 8px 30px var(--shadow-dark), 0 4px 15px rgba(166, 61, 64, 0.3);
    transition: all 0.3s ease;
    display: block;
    border: 3px solid var(--border-light);
}

.main-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px var(--shadow-dark), 0 6px 20px rgba(166, 61, 64, 0.5);
    border-color: var(--accent-light);
}

/* ===== BUTTON GROUP ===== */
.button-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    position: relative;
    min-height: 120px;
    padding: 1rem;
}

/* ===== TYPOGRAPHY ===== */
p {
    font-size: 2rem;
    padding: 2rem;
}

/* ===== BUTTONS ===== */
button {
    font-size: 1.5rem;
    padding: 1rem 2.5rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 120px;
}

.btn-yes {
    background: var(--primary-gradient);
    color: var(--text-primary);
    border-radius: 50px;
    box-shadow: 0 4px 15px var(--shadow-dark);
    border: 2px solid var(--text-muted);
    position: relative;
    overflow: hidden;
}

.btn-yes::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 229, 229, 0.4), transparent);
    transition: left 0.5s;
}

.btn-yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-dark);
    border-color: var(--accent-light);
    background: linear-gradient(135deg, #3A3A3A 0%, #A63D40 50%, #2C2C2C 100%);
}

.btn-yes:hover::before {
    left: 100%;
}

.btn-yes:active {
    transform: translateY(0) scale(0.98);
}

.btn-no {
    background: var(--secondary-gradient);
    color: var(--text-dark);
    border-radius: 50px;
    box-shadow: 0 4px 15px var(--shadow-light);
    border: 2px solid var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-no:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px var(--shadow-light);
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #F5F5F5 0%, #E5E5E5 100%);
    color: var(--accent-dark);
}

.btn-no:active {
    transform: translateY(0) scale(0.95);
}

/* Estilos para cuando el botón se mueve */
.btn-no.moving {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== ANIMATIONS ===== */
@keyframes animat {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===== CONTAINER & TEXT EFFECTS ===== */
.container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 60px;
    padding: 3rem;
    text-align: center;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 32px var(--shadow-dark), inset 0 1px 0 rgba(229, 229, 229, 0.2);
    animation: animat 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
}

.letra-neon {
    font-family: "Dancing Script", cursive;
    margin: 0 0 1rem 0;
    font-size: 4rem;
    background: linear-gradient(45deg, var(--accent-light), var(--text-primary), var(--accent-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px var(--shadow-dark);
    animation: glow 2s ease-in-out infinite alternate;
}

.neon3 {
    font-family: monospace;
    margin: 0;
    padding: 1rem;
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-shadow: 0 0 10px rgba(229, 229, 229, 0.5);
}

.flicker1, .flicker2, .flicker3 {
    display: inline-block;
    animation: flicker 2s infinite ease-in-out;
    color: var(--accent-light);
}

.flicker2 {
    animation-delay: 0.5s;
}

.flicker3 {
    animation-delay: 1s;
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--accent-light);
    }
    50% {
        opacity: 0.7;
        text-shadow: none;
    }
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px var(--shadow-dark));
    }
    to {
        filter: drop-shadow(0 0 20px var(--shadow-dark)) drop-shadow(0 0 30px var(--accent-light));
    }
}

/* ===== BUBBLES ===== */
.burbujas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.burbuja {
    position: absolute;
    bottom: -100px;
    border-radius: 50%;
    background: var(--bubble-color);
    animation: bubbleFloat linear infinite;
    border: 1px solid rgba(212, 165, 165, 0.3);
}

/* Using nth-child with CSS variables for better efficiency */
.burbuja:nth-child(1) { left: 5%; width: 80px; height: 80px; animation-duration: 3s; animation-delay: 3s; }
.burbuja:nth-child(2) { left: 15%; width: 40px; height: 40px; animation-duration: 4s; animation-delay: 4s; }
.burbuja:nth-child(3) { left: 25%; width: 60px; height: 60px; animation-duration: 5s; animation-delay: 5s; }
.burbuja:nth-child(4) { left: 35%; width: 100px; height: 100px; animation-duration: 3s; animation-delay: 5s; }
.burbuja:nth-child(5) { left: 45%; width: 70px; height: 70px; animation-duration: 4s; animation-delay: 1s; }
.burbuja:nth-child(6) { left: 55%; width: 20px; height: 20px; animation-duration: 4s; animation-delay: 5s; }
.burbuja:nth-child(7) { left: 65%; width: 50px; height: 50px; animation-duration: 3s; animation-delay: 3s; }
.burbuja:nth-child(8) { left: 75%; width: 80px; height: 80px; animation-duration: 5s; animation-delay: 5s; }
.burbuja:nth-child(9) { left: 85%; width: 30px; height: 30px; animation-duration: 6s; animation-delay: 2s; }
.burbuja:nth-child(10) { left: 95%; width: 65px; height: 65px; animation-duration: 3s; animation-delay: 2s; }

@keyframes bubbleFloat {
    0% {
        bottom: -100px;
        opacity: 0;
        transform: translateX(0);
    }
    10% {
        opacity: 0.6;
    }
    30% {
        transform: translateX(30px);
    }
    90% {
        opacity: 0.4;
    }
    100% {
        bottom: 100vh;
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .contenedor {
        padding: 1rem;
        gap: 1rem;
    }

    .container {
        padding: 1.5rem;
        margin: 0;
    }

    .letra-neon {
        font-size: 2.5rem;
    }

    .neon3 {
        font-size: 1.2rem;
    }

    .image-container {
        max-width: 90%;
    }

    .main-image {
        max-height: 200px;
    }

    .button-group {
        flex-direction: column;
        gap: 1rem;
        min-height: 200px;
    }

    button {
        font-size: 1.3rem;
        padding: 0.9rem 2rem;
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .contenedor {
        padding: 0.8rem;
    }

    .container {
        padding: 1.2rem;
        border-radius: 40px;
    }

    .letra-neon {
        font-size: 2rem;
        line-height: 1.2;
    }

    .neon3 {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .image-container {
        max-width: 95%;
        margin: 0 auto;
    }

    .main-image {
        max-height: 180px;
        border-radius: 15px;
    }

    .button-group {
        width: 100%;
        min-height: 180px;
    }

    button {
        font-size: 1.2rem;
        padding: 0.8rem 1.8rem;
        min-width: 100px;
    }
}

@media (max-width: 360px) {
    .letra-neon {
        font-size: 1.6rem;
    }

    .neon3 {
        font-size: 0.9rem;
    }

    .main-image {
        max-height: 150px;
    }

    button {
        font-size: 1.1rem;
        padding: 0.7rem 1.5rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body {
        animation: none;
    }
}