* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #FFF3E0 0%, #E0F7FA 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: #3b3b3b;
}

.password-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF3E0 0%, #E0F7FA 100%);
    padding: 20px;
    position: relative;
}

.password-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px 32px;
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    text-align: center;
    max-width: 420px;
    width: 100%;
    animation: slideDown 0.5s ease;
}

#login-rain {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.raindrop {
    position: absolute;
    top: -10%;
    font-size: 18px;
    opacity: 0.9;
    animation: fall linear forwards;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}

@keyframes fall {
    0% { transform: translateY(-10%) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(120vh) rotate(20deg); opacity: 0; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.password-box h1 {
    color: #ff8a65;
    margin-bottom: 12px;
    font-size: 2em;
}

.password-box p {
    color: #666;
    margin-bottom: 20px;
}

.password-box input {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 14px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.password-box input:focus {
    outline: none;
    border-color: #ffbfae;
    box-shadow: 0 0 0 6px rgba(255, 138, 101, 0.12);
}

.password-box button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #FFB88C 0%, #FF8A65 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.password-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 138, 101, 0.35);
}

.password-box button:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(255, 138, 101, 0.25);
}

.error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
}

.main-container {
    padding: 40px 20px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

header {
    text-align: center;
    margin-bottom: 50px;
}

header h1 {
    color: #3b3b3b;
    font-size: 2.6em;
    margin-bottom: 8px;
}

.subtitle {
    color: #6b6b6b;
    font-size: 1.1em;
    font-style: normal;
}

.music-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 12px 0 24px;
}

.music-embed {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.memory-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #eee;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.memory-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
    border-color: #ffd9cc;
}

.memory-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.memory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.memory-card:hover .memory-image img {
    transform: scale(1.06);
    filter: brightness(1.03) saturate(1.02);
}

.memory-title {
    padding: 18px;
    text-align: center;
    font-size: 1.15em;
    font-weight: 800;
    color: #ff8a65;
    background: #fff;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 22px;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: scale(1.2);
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    padding: 40px;
    text-align: center;
}

.modal-text h2 {
    color: #ff8a65;
    font-size: 2em;
    margin-bottom: 16px;
}

.modal-text p {
    color: #555;
    font-size: 1.05em;
    line-height: 1.85;
    margin-bottom: 16px;
}

.modal-quote {
    background: linear-gradient(135deg, #B2EBF2 0%, #FFCCBC 100%);
    padding: 22px;
    border-radius: 16px;
    margin-top: 16px;
}

.modal-quote p {
    color: #3b3b3b;
    font-family: 'Caveat', cursive;
    font-size: 1.4em;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
    }

    .memories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-image {
        height: 250px;
    }

    .modal-text {
        padding: 25px;
    }

    .modal-text h2 {
        font-size: 1.5em;
    }

    .modal-quote p {
        font-size: 1em;
    }
}

.ready-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,243,224,0.95) 0%, rgba(224,247,250,0.95) 100%);
    z-index: 1001;
    padding: 20px;
}



.ready-box {
    background: #fff;
    border-radius: 24px;
    padding: 28px 26px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    animation: slideUp 0.4s ease;
}

.ready-box h2 {
    color: #ff8a65;
    margin-bottom: 8px;
}

.ready-box p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 14px;
}

.ready-box button {
    padding: 12px 22px;
    background: linear-gradient(135deg, #FFB88C 0%, #FF8A65 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(255, 138, 101, 0.25);
}

.ready-box button:disabled { opacity: 0.8; cursor: default; }

.starting-text {
    color: #6b6b6b;
    font-style: italic;
    font-size: 1.8em;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.site-footer {
    margin-top: 40px;
    padding: 20px 16px 28px;
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid #eee;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.site-footer p {
    margin: 4px 0;
    color: #6b6b6b;
    font-size: 0.95em;
}

.footer-note {
    color: #a07a70;
    font-family: 'Caveat', cursive;
    font-size: 1.2em;
}

.footer-btn {
    margin-top: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #FFB88C 0%, #FF8A65 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(255, 138, 101, 0.25);
}

.footer-btn:hover { opacity: 0.95; }
.footer-btn:active { transform: translateY(1px); }

.cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin: 28px 0 8px;
}

.cta-btn {
    padding: 12px 18px;
    border-radius: 14px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.cta-btn--whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1EBE57 100%);
    color: #fff;
}

.cta-btn--whatsapp:hover { filter: brightness(1.03); }
.cta-btn--whatsapp:active { transform: translateY(1px); }

.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 30px rgba(0,0,0,0.12);
    transform: translateY(100%);
    transition: transform 0.35s ease;
    z-index: 1000;
}

.bottom-sheet.show { transform: translateY(0); }
.sheet-overlay.show { opacity: 1; }

.sheet-handle {
    width: 52px;
    height: 6px;
    background: #e9e9e9;
    border-radius: 6px;
    margin: 10px auto 0;
}

.sheet-content {
    padding: 18px 20px 24px;
    text-align: center;
}

.sheet-content h3 {
    color: #ff8a65;
    margin: 4px 0 10px;
}

.sheet-content p {
    color: #555;
    line-height: 1.8;
}

.sheet-close {
    margin-top: 14px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #B2EBF2 0%, #FFCCBC 100%);
    color: #3b3b3b;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}
