/* ==================== PANTALLA DE INTRODUCCIÓN ==================== */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe0e9 50%, #fff0f5 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeOut 1s ease-out 4.5s forwards;
}

.intro-screen.hidden {
    display: none;
}

.flowers-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin-bottom: 30px;
    animation: floatFlowers 3s ease-in-out infinite;
}

.flowers-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(255, 105, 180, 0.3));
    animation: revealFlowers 2s ease-out forwards;
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
}

.intro-message {
    text-align: center;
    color: #ff69b4;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    opacity: 0;
    animation: fadeInMessage 1.5s ease-out 1s forwards;
    padding: 0 20px;
    line-height: 1.4;
}

/* Pétalos flotantes */
.petal {
    position: fixed;
    font-size: 2rem;
    opacity: 0;
    animation: floatPetal 4s ease-in-out forwards;
    z-index: 10001;
    pointer-events: none;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: linear-gradient(135deg, #fff 0%, #fff5f8 100%);
    padding: 20px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 105, 180, 0.15), 0 0 30px rgba(255, 192, 203, 0.1);
    margin-bottom: 30px;
    text-align: center;
    border: 2px solid rgba(255, 192, 203, 0.3);
    backdrop-filter: blur(10px);
}

.navbar h1 {
    color: #ff69b4;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(255, 105, 180, 0.2);
}

/* ==================== LED SCROLLER ==================== */
.led-container {
    width: 100%;
    margin: 0 0 40px 0;
    background: linear-gradient(135deg, #fff5f8 0%, #fff0f5 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 50px rgba(255, 105, 180, 0.2), inset 0 0 30px rgba(255, 192, 203, 0.1);
    border: 2px solid rgba(255, 192, 203, 0.4);
    overflow: visible;
    position: relative;
}

.led-sticker {
    position: absolute;
    top: -65px;
    right: 30px;
    width: 120px;
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 5px 15px rgba(255, 105, 180, 0.3));
    cursor: pointer;
    transition: transform 0.1s;
}

.led-sticker:active {
    transform: scale(0.65);
}

.led-display {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 25px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(255, 105, 180, 0.2);
    border: 2px solid rgba(255, 192, 203, 0.2);
}

.led-track {
    display: flex;
    white-space: nowrap;
    animation: ledScroll linear infinite;
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    transform: scaleY(1.1);
    font-kerning: none;
    text-rendering: pixelated;
}

.led-message {
    color: #ff69b4;
    text-shadow: 0 0 15px #ff69b4, 0 0 25px #ff1493, 0 0 35px #ff69b4, 0 0 45px rgba(255, 105, 180, 0.5);
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    padding-right: 10px;
    flex-shrink: 0;
}

.led-separator {
    color: #ff69b4;
    text-shadow: 0 0 15px #ff69b4, 0 0 25px #ff1493, 0 0 35px #ff69b4, 0 0 45px rgba(255, 105, 180, 0.5);
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    padding: 0 30px;
    flex-shrink: 0;
}

.led-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 192, 203, 0.05) 0px,
        rgba(255, 192, 203, 0.05) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 1;
}

.led-display::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 105, 180, 0.1), transparent 60%);
    pointer-events: none;
    animation: ledFlicker 0.15s infinite;
    z-index: 1;
}

/* ==================== IMÁGENES DECORATIVAS ==================== */
.decorative-images {
    position: relative;
    height: 350px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    gap: 40px;
}

.postal-rail-container {
    position: relative;
    width: 280px;
    height: 320px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.rail-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff69b4 0%, #ff1493 100%);
    width: 0%;
    transition: width 0.05s linear;
    border-radius: 3px;
    box-shadow: 0 0 8px #ff69b4, inset 0 0 4px rgba(255, 192, 203, 0.5);
}

.postal {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    cursor: grab;
    user-select: none;
    position: absolute;
    left: 15px;
    flex-shrink: 0;
    transition: box-shadow 0.2s ease;
}

.postal:active {
    cursor: grabbing;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.postal-left {
    transform: rotate(-8deg);
}

.postal-right {
    transform: rotate(8deg);
    animation: floatRight 4s ease-in-out infinite;
    position: relative;
    left: auto;
    width: 250px;
}

.postal:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.postal-left:hover {
    transform: rotate(-8deg) scale(1.02);
}

.postal-right:hover {
    transform: rotate(8deg) scale(1.05);
}

/* ==================== HERO ==================== */
.hero {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeIn 0.8s ease-in;
}

.hero h2 {
    font-size: 3.5rem;
    color: #ff69b4;
    text-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    margin-bottom: 10px;
    animation: slideDown 0.8s ease-out;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

/* ==================== CARTA MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
    overflow-y: auto;
}

.modal-content {
    background: linear-gradient(135deg, #fff 0%, #fff5f8 100%);
    margin: 30px auto;
    padding: 50px;
    border: 3px solid #ff69b4;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.25);
    animation: slideDown 0.3s ease-out;
    position: relative;
    min-height: 600px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ff69b4;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    background: rgba(255, 192, 203, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 192, 203, 0.3);
}

.close-btn:hover {
    color: #ff1493;
    background: rgba(255, 192, 203, 0.2);
    transform: rotate(90deg);
}

/* Páginas de la carta */
.carta-page {
    display: none;
    padding: 30px;
    min-height: 500px;
    position: relative;
    animation: fadeInPage 0.5s ease-out;
}

.carta-page.active {
    display: block;
}

/* Estilos específicos por página */
.page-1 {
    position: relative;
}

.page-1 .corner-flower {
    position: absolute;
    width: 80px;
    height: auto;
    opacity: 0.7;
    filter: drop-shadow(0 5px 15px rgba(255, 105, 180, 0.2));
}

.page-1 .corner-flower.top-left {
    top: -10px;
    left: -10px;
    transform: rotate(-15deg);
}

.page-1 .corner-flower.top-right {
    top: -10px;
    right: -10px;
    transform: rotate(15deg);
}

.page-1 .corner-flower.bottom-left {
    bottom: -10px;
    left: -10px;
    transform: rotate(15deg);
}

.page-1 .corner-flower.bottom-right {
    bottom: -10px;
    right: -10px;
    transform: rotate(-15deg);
}

.page-2.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.page-2 .uwu-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.page-2 img {
    max-width: 150px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2);
    transition: transform 0.3s;
}

.page-2 img:hover {
    transform: scale(1.1) rotate(5deg);
}

.page-2 h1 {
    font-size: 6rem;
    color: #ff69b4;
    text-shadow: 0 5px 20px rgba(255, 105, 180, 0.4);
    font-weight: 900;
    margin: 0;
}

.page-3 {
    position: relative;
    padding-top: 120px;
}

.page-3 .flower-decoration {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
    z-index: 1;
}

.page-4 {
    position: relative;
}

.page-4.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-4 h1 {
    font-size: 4rem;
    color: #ff69b4;
    text-shadow: 0 5px 20px rgba(255, 105, 180, 0.4);
    font-weight: 900;
    text-align: center;
    z-index: 2;
    position: relative;
}

.heart-animation {
    position: absolute;
    font-size: 2rem;
    opacity: 0;
    animation: floatHeart 4s ease-in-out infinite;
    pointer-events: none;
}

.page-5 {
    position: relative;
}

.page-5 .flower-decoration {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 3rem;
    opacity: 0.7;
    animation: float 4s ease-in-out infinite;
}

.page-6 {
    position: relative;
}

.page-6 .furro-image {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2);
    animation: float 3s ease-in-out infinite;
}

.page-7 {
    position: relative;
}

.page-7 .conejo-image {
    display: block;
    margin: 20px auto;
    width: 200px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2);
}

.page-8 {
    position: relative;
    padding-bottom: 180px;
}

.page-8 .furro2-image {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2);
    animation: float 3.5s ease-in-out infinite;
}

.page-9 {
    position: relative;
}

.page-9 .carta-sticker {
    display: block;
    margin: 20px auto;
    font-size: 5rem;
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.page-10 {
    position: relative;
    min-height: 500px;
}

.page-10.active {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-10 .signature-container {
    margin-top: auto;
    text-align: right;
    padding-right: 30px;
}

.page-10 .signature {
    font-size: 1.5rem;
    color: #ff69b4;
    font-style: italic;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-10 .wilde-hug {
    width: 120px;
    height: auto;
    display: block;
    margin-left: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2);
}

.page-11 {
    position: relative;
}

.page-11 .comment-section {
    background: rgba(255, 192, 203, 0.1);
    border: 2px solid rgba(255, 192, 203, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.page-11 textarea {
    width: 100%;
    min-height: 150px;
    border: 2px solid rgba(255, 192, 203, 0.3);
    border-radius: 10px;
    padding: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 15px;
    background: white;
}

.page-11 textarea:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.2);
}

.page-11 .comment-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.page-11 button {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.page-11 button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.page-11 .success-message {
    display: none;
    background: rgba(144, 238, 144, 0.2);
    border: 2px solid rgba(144, 238, 144, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    color: #2d7a2d;
    font-weight: 600;
    text-align: center;
}

/* Navegación de páginas */
.carta-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 192, 203, 0.2);
}

.carta-nav-btn {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.carta-nav-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.carta-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carta-page-counter {
    color: #ff69b4;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 2px 5px rgba(255, 105, 180, 0.2);
}

/* Texto de carta */
.carta-text {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: justify;
}

.carta-text p {
    margin-bottom: 15px;
}

/* ==================== BOTÓN DE CARTA ==================== */
.carta-button-container {
    text-align: center;
    margin: 60px auto;
    perspective: 1000px;
}

.carta-envelope {
    position: relative;
    width: 280px;
    height: 180px;
    margin: 0 auto 20px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carta-envelope:hover {
    transform: translateY(-15px) scale(1.05);
}

.carta-envelope:active {
    transform: translateY(-10px) scale(1.02);
}

.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff 0%, #fff5f8 100%);
    border-radius: 10px;
    box-shadow: 0 15px 50px rgba(255, 105, 180, 0.3);
    border: 3px solid #ffb6c1;
}

.envelope-front {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.envelope-flap {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 140px solid transparent;
    border-right: 140px solid transparent;
    border-top: 90px solid #ff69b4;
    top: 0;
    left: 0;
    transform-origin: top center;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 5px 15px rgba(255, 105, 180, 0.4));
}

.carta-envelope:hover .envelope-flap {
    transform: rotateX(-180deg);
}

.love-letter {
    position: absolute;
    width: 240px;
    height: 150px;
    background: linear-gradient(135deg, #fffef9 0%, #fff9f0 100%);
    top: 15px;
    left: 20px;
    border-radius: 5px;
    box-shadow: inset 0 0 20px rgba(255, 105, 180, 0.1), 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    z-index: 1;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 182, 193, 0.3);
}

.carta-envelope:hover .love-letter {
    transform: translateY(-30px);
}

.letter-header {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 105, 180, 0.2);
}

.letter-title {
    color: #ff69b4;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(255, 105, 180, 0.2);
    font-family: 'Brush Script MT', cursive;
}

.letter-date {
    color: #999;
    font-size: 0.7rem;
    font-style: italic;
}

.letter-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.letter-lines::before,
.letter-lines::after {
    content: '';
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 105, 180, 0.3), transparent);
    border-radius: 2px;
}

.envelope-seal {
    position: absolute;
    top: 35px;
    right: 25px;
    font-size: 2rem;
    z-index: 3;
    animation: heartbeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 3px 8px rgba(255, 105, 180, 0.4));
}

.carta-subtitle {
    color: #ff69b4;
    font-size: 1rem;
    font-style: italic;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(255, 105, 180, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.carta-envelope::before,
.carta-envelope::after {
    content: '✨';
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.6s ease-out;
    pointer-events: none;
}

.carta-envelope::before {
    top: -20px;
    left: -20px;
}

.carta-envelope::after {
    bottom: -20px;
    right: -20px;
}

.carta-envelope:hover::before,
.carta-envelope:hover::after {
    opacity: 1;
}

.carta-envelope:hover::before {
    transform: translate(-10px, -10px) rotate(-15deg);
}

.carta-envelope:hover::after {
    transform: translate(10px, 10px) rotate(15deg);
}

/* ==================== STICKERS DECORATIVOS ==================== */
.sticker {
    position: fixed;
    font-size: 3rem;
    opacity: 0.7;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.sticker3 {
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.sticker3:hover {
    transform: scale(1.2) rotate(15deg);
    opacity: 1;
}

.sticker3:active {
    transform: scale(0.9) rotate(-15deg);
}

.sticker1 { top: 10%; left: 5%; animation-delay: 0s; }
.sticker2 { top: 20%; right: 8%; animation-delay: 1s; }
.sticker3 { bottom: 20%; left: 8%; animation-delay: 2s; }

/* ==================== GIFS DE MIKU ==================== */
.miku-gif {
    position: fixed;
    bottom: 20px;
    width: 150px;
    height: auto;
    z-index: 999;
    display: none;
    pointer-events: none;
    animation: mikuEntrance 0.6s ease-out forwards;
}

.miku-gif-left {
    left: 20px;
    width: 500px;
    height: auto;
}

.miku-gif-right {
    right: 20px;
    width: 300px;
}

.miku-gif.exit {
    animation: mikuExit 0.6s ease-out forwards;
}

/* ==================== GALERÍA MODAL ==================== */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.gallery-container {
    position: fixed;
    z-index: 1002;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe0e9 50%, #fff0f5 100%);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 30px 80px rgba(255, 105, 180, 0.3), 0 0 60px rgba(255, 192, 203, 0.2);
    border: 3px solid rgba(255, 192, 203, 0.5);
    animation: slideDown 0.4s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gallery-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 192, 203, 0.2);
}

.gallery-close {
    position: absolute;
    top: -5px;
    right: 0;
    color: #ff69b4;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 192, 203, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 192, 203, 0.3);
}

.gallery-close:hover {
    color: #ff1493;
    background: rgba(255, 192, 203, 0.2);
    transform: rotate(90deg);
    border-color: #ff1493;
}

.gallery-title {
    color: #ff69b4;
    font-size: 1.8rem;
    font-weight: 800;
    text-shadow: 0 3px 10px rgba(255, 105, 180, 0.2);
    margin: 0;
    line-height: 1.3;
}

.gallery-title::before {
    display: block;
    content: '';
    height: 60px;
}

.gallery-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-right: 10px;
}

.gallery-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: fadeIn 0.5s ease-out;
    scroll-behavior: smooth;
}

.gallery-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(255, 105, 180, 0.2);
    border: 2px solid rgba(255, 192, 203, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.3);
    border-color: #ff69b4;
}

.gallery-image-number {
    color: #ff69b4;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(255, 105, 180, 0.1);
}

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 192, 203, 0.2);
}

.gallery-nav-btn {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.gallery-nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.gallery-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gallery-counter {
    color: #ff69b4;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 2px 5px rgba(255, 105, 180, 0.2);
    min-width: 120px;
    text-align: center;
}

.gallery-content::-webkit-scrollbar {
    width: 8px;
}

.gallery-content::-webkit-scrollbar-track {
    background: rgba(255, 192, 203, 0.1);
    border-radius: 10px;
}

.gallery-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    border-radius: 10px;
}

.gallery-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
}

/* ==================== LLUVIA DE FRESAS ==================== */
.strawberry {
    position: fixed;
    font-size: 2rem;
    z-index: 9999;
    pointer-events: none;
    animation: fallStrawberry linear forwards;
    opacity: 0;
    top: -100px;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, #fff 0%, #fff5f8 100%);
    padding: 40px 20px;
    margin-top: 80px;
    border-top: 3px solid rgba(255, 192, 203, 0.3);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(255, 105, 180, 0.1);
    text-align: center;
    position: relative;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer h3 {
    color: #ff69b4;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(255, 105, 180, 0.2);
}

.footer-date {
    color: #666;
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.footer-stats {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-stats strong {
    color: #ff69b4;
    font-weight: 700;
}

.footer-secrets {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-style: italic;
}

.footer-carta-container {
    position: relative;
    display: inline-block;
    margin-top: 15px;
}

.footer-carta-sticker {
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
}

.footer-carta-sticker:hover {
    transform: scale(1.2) rotate(15deg);
}

.footer-carta-sticker:active {
    transform: scale(0.9) rotate(-15deg);
}

.cupon-note {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: linear-gradient(135deg, #fffacd 0%, #fff8dc 100%);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid #ffd700;
    min-width: 300px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
}

.cupon-note.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.cupon-note::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffd700;
}

.cupon-text {
    color: #8b4513;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    font-family: 'Courier New', monospace;
    text-shadow: 0 1px 2px rgba(255, 215, 0, 0.3);
}

.cupon-ribbon {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
    padding: 5px 15px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 15px;
    transform: rotate(15deg);
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.4);
}

/* Botón del Regalo */
.gift-box-button {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gift-box-button:hover {
    transform: translateY(-10px) scale(1.05);
}

.gift-lid-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
    z-index: 2;
}

.gift-bow-button {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
}

.gift-body-button {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #0f8b4d 0%, #0a6b3a 100%);
    border-radius: 0 0 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(15, 139, 77, 0.3);
}

.gift-ribbon-button {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 100%;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.gift-emoji {
    font-size: 5rem;
    z-index: 1;
}

/* Estilos navideños para el modal del regalo */
.modal-content-christmas {
    background: linear-gradient(135deg, #fff5f8 0%, #ffe8e8 25%, #e8f5e8 50%, #ffe0e9 75%, #fff0f5 100%) !important;
    border: 5px solid #c41e3a !important;
    position: relative;
    overflow: hidden;
}

.modal-content-christmas::before {
    content: '🎄';
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    top: -20px;
    right: -20px;
    transform: rotate(15deg);
}

.modal-content-christmas::after {
    content: '🎅';
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    bottom: -20px;
    left: -20px;
    transform: rotate(-15deg);
}

/* Contador de tiempo */
.countdown-item {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    min-width: 100px;
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    display: block;
}

/* Animación de error para el botón */
@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.gift-reveal-btn.error {
    animation: shakeError 0.5s ease-in-out;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%) !important;
}

/* Responsive para el contador */
@media (max-width: 768px) {
    .countdown-item {
        min-width: 80px;
        padding: 12px 15px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
}

/* Estilos del modal del regalo */
.gift-reveal-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b4513;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.gift-reveal-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.game-code-container {
    display: none;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s;
}

.game-code-container.revealed {
    transform: scale(1);
    opacity: 1;
}

.game-code {
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 20px #ffd700;
    letter-spacing: 5px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
}

.copy-code-btn {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    margin-top: 15px;
}

.copy-code-btn:hover {
    transform: translateY(-3px);
}

/* ==================== CARTA DEL REGALO DE NAVIDAD ==================== */

/* Decoraciones navideñas románticas */
.regalo-decoration {
    position: absolute;
    font-size: 3rem;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
    z-index: 1;
}

.regalo-decoration-img {
    position: absolute;
    width: 80px;
    height: auto;
    opacity: 0.8;
    filter: drop-shadow(0 5px 15px rgba(196, 30, 58, 0.3));
}

/* Animación de renos saltando */
.jumping-reindeer {
    animation: jumpReindeer 2s ease-in-out infinite;
}

@keyframes jumpReindeer {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* Esferas navideñas girando suavemente */
.spinning-ornament {
    animation: spinOrnament 4s ease-in-out infinite;
}

@keyframes spinOrnament {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

/* Pino navideño con efecto de brillo */
.glowing-tree {
    animation: glowTree 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(22, 91, 51, 0.5));
}

@keyframes glowTree {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Corazones navideños cayendo */
.christmas-heart {
    position: absolute;
    font-size: 2rem;
    animation: fallChristmasHeart 5s ease-in-out infinite;
    opacity: 0;
}

@keyframes fallChristmasHeart {
    0% {
        top: -50px;
        opacity: 0;
        transform: rotate(0deg);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
        transform: rotate(360deg);
    }
}

/* Luces navideñas titilantes */
.twinkling-lights {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        #ffd700 0%, 
        #c41e3a 25%, 
        #165b33 50%, 
        #ff69b4 75%, 
        #ffd700 100%);
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Responsive para decoraciones */
@media (max-width: 768px) {
    .regalo-decoration {
        font-size: 2rem;
    }
    
    .regalo-decoration-img {
        width: 50px;
    }
}

/* Página especial - Te deseo una hermosa navidad */
.regalo-page-special {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.navidad-wish-title {
    font-size: 4rem;
    color: #c41e3a;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
    line-height: 1.3;
    animation: wishEntrance 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

@keyframes wishEntrance {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.1) rotate(3deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Estrellas brillantes alrededor del texto */
.wish-star {
    position: absolute;
    font-size: 2rem;
    animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navidad-wish-title {
        font-size: 2.5rem;
        padding: 0 20px;
    }
    
    .wish-star {
        font-size: 1.5rem;
    }
}