/* ===== ESTILOS GENERALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-color: transparent transparent;
    scrollbar-width: 0px;
}

body {
    background-image: url("imagenes/fondos/blanco1.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: 'Quicksand', sans-serif;
    min-height: 100vh;
}

*::-webkit-scrollbar {
    width: 0;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: transparent;
    border: none;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-image: url("imagenes/fondos/blanco1.jpg");
    border-radius: 50%;
    width: 100px;
    /* Más grande */
    height: 100px;
    /* Más grande */
    font-size: 50px;
    /* Más grande */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle.playing {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===== HEADER ===== */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '🎉';
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    top: 10%;
    left: -50px;
    animation: float 6s ease-in-out infinite;
}

header::after {
    content: '🎂';
    position: absolute;
    font-size: 150px;
    opacity: 0.1;
    bottom: 10%;
    right: -30px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

header h1 {
    font-family: 'Pacifico', cursive;
    font-size: 4rem;
    color: #ecb0de;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.3);
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header h1 .highlight {
    color: #ffd700;
}

header p {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 40px;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

header div span {
    display: inline-block;
    font-size: 1.2rem;
    color: #ce5cce;
    margin-bottom: 10px;
}

.arrow {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #fff;
    margin: 0 auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* ===== CARRUSEL ===== */
ol,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ===== SECCIÓN DE GALERÍA ===== */
.gallery-section {
    margin: 60px auto;
    padding: 0 20px;
    max-width: 1000px;
    max-height: 1600px;
}

.gallery-title {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel {
    position: relative;
    filter: drop-shadow(0 0 10px #0003);
    perspective: 100px;
    margin: 0 auto;
}

/* Carrusel Horizontal - Proporción 16:9 */
.carousel-horizontal {
    padding-top: 56.25%;
    /* 16:9 */
    max-width: 800px;
}

/* Carrusel Vertical - Proporción 9:16 */
.carousel-vertical {
    padding-top: 133.33%;
    /* 9:16 */
    max-width: 650px;
}

/* Carrusel de Videos - Proporción 16:9 */
.carousel-videos {
    padding-top: 56.25%;
    /* 16:9 */
    max-width: 800px;
}

.carousel__viewport {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    overflow-x: scroll;
    counter-reset: item;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.carousel__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    background-color: #eee4e4;
    counter-increment: item;
}

/* Imágenes y videos dentro del carrusel */
.carousel__slide img,
.carousel__slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel__snapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
}

@media (hover: hover) {
    .carousel__snapper {
        animation-name: tonext, snap;
        animation-timing-function: ease;
        animation-duration: 4s;
        animation-iteration-count: infinite;
    }

    .carousel__slide:last-child .carousel__snapper {
        animation-name: tostart, snap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel__snapper {
        animation-name: none;
    }
}

.carousel:hover .carousel__snapper,
.carousel:focus-within .carousel__snapper {
    animation-name: none;
}

.carousel__navigation {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
}

.carousel__navigation-list,
.carousel__navigation-item {
    display: inline-block;
}

.carousel__navigation-button {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    background-color: #fff;
    background-clip: content-box;
    border: 0.25rem solid transparent;
    border-radius: 50%;
    font-size: 0;
    transition: transform 0.1s;
}

.carousel__navigation-button:hover {
    transform: scale(1.2);
}

.carousel::before,
.carousel::after,
.carousel__prev,
.carousel__next {
    position: absolute;
    top: 50%;
    width: 4rem;
    height: 4rem;
    transform: translateY(-50%);
    border-radius: 50%;
    font-size: 0;
    outline: 0;
}

.carousel::before,
.carousel__prev {
    left: -1rem;
}

.carousel::after,
.carousel__next {
    right: -1rem;
}

.carousel::before,
.carousel::after {
    content: '';
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.8);
    background-size: 1.5rem 1.5rem;
    background-repeat: no-repeat;
    background-position: center center;
    color: #fff;
    font-size: 2.5rem;
    line-height: 4rem;
    text-align: center;
    pointer-events: none;
}

.carousel::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,50 80,100 80,0' fill='%23333'/%3E%3C/svg%3E");
}

.carousel::after {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='100,50 20,100 20,0' fill='%23333'/%3E%3C/svg%3E");
}

@keyframes tonext {
    75% {
        left: 0;
    }

    95% {
        left: 100%;
    }

    98% {
        left: 100%;
    }

    99% {
        left: 0;
    }
}

@keyframes tostart {
    75% {
        left: 0;
    }

    95% {
        left: -300%;
    }

    98% {
        left: -300%;
    }

    99% {
        left: 0;
    }
}

@keyframes snap {
    96% {
        scroll-snap-align: center;
    }

    97% {
        scroll-snap-align: none;
    }

    99% {
        scroll-snap-align: none;
    }

    100% {
        scroll-snap-align: center;
    }
}

/* ===== SECCIÓN DE MENSAJE ===== */
.message-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.container {
    max-width: 600px;
    width: 100%;
}

.gift-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== CAJA DE REGALO ===== */
.gift-box {
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.gift-box:hover {
    transform: scale(1.05);
}

.gift-lid {
    width: 150px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border-radius: 10px 10px 0 0;
    position: relative;
    transition: transform 0.6s ease;
}

.gift-box.open .gift-lid {
    transform: translateY(-80px) rotateX(-45deg);
}

.gift-bow {
    width: 60px;
    height: 60px;
    background: #ffd700;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
}

.gift-bow::before,
.gift-bow::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: #ffd700;
    border-radius: 50%;
    top: 10px;
}

.gift-bow::before {
    left: -30px;
}

.gift-bow::after {
    right: -30px;
}

.gift-body {
    width: 150px;
    height: 120px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-radius: 0 0 10px 10px;
    position: relative;
}

.gift-body::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    left: 50%;
    transform: translateX(-50%);
}

.click-hint {
    margin-top: 20px;
    color: #ff6b6b;
    font-size: 1.2rem;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ===== VIDEO DE BROMA ===== */
.prank-video-container {
    margin-top: 40px;
    transition: opacity 0.5s ease;
}

.prank-video-container video {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== MENSAJE DE TRANSICIÓN ===== */
.transition-message {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: opacity 0.5s ease;
}

.transition-message p {
    font-size: 1.3rem;
    color: #667eea;
    font-weight: 600;
}

/* ===== TARJETA DE MENSAJE ===== */
.message-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    margin-top: 40px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.message-card.hidden {
    opacity: 0;
    transform: scale(0.8);
}

.stitch-border {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px dashed #667eea;
    border-radius: 15px;
    pointer-events: none;
}

.message-card h2 {
    font-family: 'Pacifico', cursive;
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.message-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ecb0de;
    text-align: center;
}

.heart-icon {
    font-size: 3rem;
    color: #ff6b6b;
    text-align: center;
    margin-top: 20px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }
}

.hidden {
    display: none;
}

/* ===== FOOTER ===== */
footer {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 1rem;
}

footer p {
    margin: 5px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1.2rem;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .carousel-vertical {
        max-width: 300px;
    }

    .message-card {
        padding: 30px 20px;
    }

    .message-card h2 {
        font-size: 1.5rem;
    }

    .message-text {
        font-size: 1rem;
    }
}