* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow: hidden;
    background: #0a1929;
    color: white;
    height: 100vh;
    width: 100vw;
}

/* Pantalla de inicio */
#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: linear-gradient(135deg, #0a1929 0%, #0d2438 30%, #102c44 70%, #0a1929 100%);
    overflow: hidden;
    transition: transform 1.5s ease;
}

.start-screen-hidden {
    transform: translateY(-100%);
}

/* Corazones flotantes en el fondo */
.hearts-background {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.heart {
    position: absolute;
    font-size: 28px;
    opacity: 0.3;
    animation: floatHearts 20s infinite linear;
}

.heart:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.heart:nth-child(2) { top: 20%; left: 80%; animation-delay: 4s; }
.heart:nth-child(3) { top: 60%; left: 15%; animation-delay: 8s; }
.heart:nth-child(4) { top: 80%; left: 70%; animation-delay: 12s; }
.heart:nth-child(5) { top: 40%; left: 90%; animation-delay: 16s; }

@keyframes floatHearts {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0.3; }
}

.start-content {
    text-align: center;
    z-index: 10;
    padding: 20px;
    max-width: 800px;
}

/* Títulos */
.title-container {
    margin-bottom: 50px;
}

.main-title {
    font-size: 3.8rem;
    font-weight: 700;
    color: #e3f2fd;
    text-shadow: 0 0 20px rgba(33, 150, 243, 0.5);
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-family: 'Quicksand', 'Segoe UI', sans-serif;
}

.highlight {
    color: #4fc3f7;
    text-shadow: 0 0 25px rgba(79, 195, 247, 0.8);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #4fc3f7, transparent);
    animation: pulseUnderline 2.5s infinite;
}

@keyframes pulseUnderline {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Contenedor del pez logo */
#fish-logo-container {
    width: 300px;
    height: 300px;
    position: relative;
    margin: 40px auto;
    filter: drop-shadow(0 0 25px rgba(79, 195, 247, 0.7));
    animation: floatLove 4s ease-in-out infinite;
}

#fish-logo-canvas {
    width: 100%;
    height: 100%;
}

@keyframes floatLove {
    0%, 100% { 
        transform: translateY(0) scale(1); 
    }
    50% { 
        transform: translateY(-30px) scale(1.06); 
    }
}

/* Botón de inicio */
#start-button {
    background: linear-gradient(45deg, #1565c0, #1e88e5);
    border: none;
    border-radius: 50px;
    padding: 22px 55px;
    font-size: 1.9rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.4s;
    box-shadow: 0 12px 30px rgba(21, 101, 192, 0.4);
    position: relative;
    overflow: hidden;
    margin: 40px 0;
    letter-spacing: 0.5px;
    font-family: 'Quicksand', sans-serif;
}

#start-button:hover {
    transform: scale(1.08);
    box-shadow: 0 18px 35px rgba(21, 101, 192, 0.6);
    background: linear-gradient(45deg, #0d47a1, #1565c0);
}

#start-button:active {
    transform: scale(0.98);
}

#start-button i {
    margin: 0 12px;
    color: #bbdefb;
}

/* Pantalla del océano */
#ocean-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 90;
    background: linear-gradient(to bottom, #071421, #0a1929, #0d2438);
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* Botón de regresar */
#back-button {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 95;
    background: rgba(30, 136, 229, 0.85);
    border: none;
    border-radius: 25px;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(187, 222, 251, 0.3);
    font-family: 'Quicksand', sans-serif;
}

#back-button:hover {
    background: rgba(21, 101, 192, 0.95);
    transform: translateX(-5px);
}

#back-button i {
    margin-right: 10px;
}

.ocean-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Contenedor del pez interactivo */
#fish-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 80;
}

#fish-canvas {
    width: 100%;
    height: 100%;
}

/* Mensaje de cumpleaños */
#birthday-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 85;
    width: 90%;
    max-width: 750px;
}

.message-container {
    background: rgba(10, 25, 41, 0.94);
    border-radius: 20px;
    padding: 45px;
    text-align: center;
    border: 3px solid #1e88e5;
    box-shadow: 0 0 45px rgba(30, 136, 229, 0.5),
                inset 0 0 35px rgba(79, 195, 247, 0.15);
    animation: messageAppear 0.8s ease-out;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

@keyframes messageAppear {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.3);
    }
    70% { 
        transform: translate(-50%, -50%) scale(1.05); 
    }
    100% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1);
    }
}

.birthday-text {
    font-size: 2.9rem;
    font-weight: 700;
    color: #e3f2fd;
    text-shadow: 0 0 18px rgba(33, 150, 243, 0.6);
    line-height: 1.3;
    margin-bottom: 25px;
    font-family: 'Quicksand', sans-serif;
}

#compliment {
    color: #4fc3f7;
    text-shadow: 0 0 22px rgba(79, 195, 247, 0.9);
    display: inline-block;
    animation: complimentGlow 2.2s infinite alternate;
    padding: 0 12px;
    font-weight: 700;
}

@keyframes complimentGlow {
    0% { 
        color: #4fc3f7;
        transform: scale(1);
    }
    100% { 
        color: #bbdefb;
        transform: scale(1.06);
    }
}

.heart-effect {
    font-size: 3.2rem;
    margin-top: 25px;
    animation: heartbeat 1.6s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.35); }
}

/* Instrucción para ella */
.instruction-for-her {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 136, 229, 0.18);
    padding: 18px 35px;
    border-radius: 35px;
    font-size: 1.4rem;
    font-weight: 500;
    z-index: 85;
    border: 2px solid rgba(79, 195, 247, 0.35);
    backdrop-filter: blur(8px);
    color: #bbdefb;
    text-align: center;
    min-width: 380px;
    animation: pulseInstruction 2.5s infinite;
    font-family: 'Quicksand', sans-serif;
}

@keyframes pulseInstruction {
    0%, 100% { 
        box-shadow: 0 0 18px rgba(79, 195, 247, 0.25);
        transform: translateX(-50%) scale(1);
    }
    50% { 
        box-shadow: 0 0 28px rgba(79, 195, 247, 0.55);
        transform: translateX(-50%) scale(1.03);
    }
}

/* Confeti */
#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 90;
}

/* Burbujas */
#bubbles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 70;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(187, 222, 251, 0.12);
    bottom: -100px;
    animation: bubbleRise linear infinite;
    border: 1px solid rgba(79, 195, 247, 0.25);
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(60px);
        opacity: 0;
    }
}

/* Olas */
#waves {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 130px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,70 C200,25 400,95 600,70 C800,45 1000,95 1200,70 L1200,120 L0,120 Z" fill="rgba(30,136,229,0.15)"/></svg>');
    background-size: 1200px 100%;
    animation: waveMove 28s linear infinite;
    z-index: 75;
    opacity: 0.5;
}

@keyframes waveMove {
    0% { background-position-x: 0; }
    100% { background-position-x: 1200px; }
}

/* Fondo del océano */
.deep-ocean {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to top, #05111f, #071421);
    z-index: 60;
    box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.8);
}