/* --- CSS Variables --- */
:root {
    --kala-near-black: #262220;
    --kala-white: #FFFFFF;
    --kala-background-light: #F8F8F8;
    --font-logo-alt: 'Poppins', sans-serif;
    --font-text: 'Jura', sans-serif;
}

/* --- Basic Reset & Body --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: var(--font-text);
    color: var(--kala-white);
    
    overflow: hidden;
}

/* --- Background Video Placeholder & Overlay --- */
.video-background-placeholder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--kala-near-black); /* Fallback if video fails */
}

/* --- Styling for the actual video element --- */
.video-background-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire area, cropping if needed */
    position: absolute; /* Position within the container */
    top: 0;
    left: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 34, 32, 0.6); /* Semi-transparent overlay */
    z-index: 0; /* Above video, below content */
}


/* --- Content Area --- */
.content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically centers the content block */
    align-items: center; /* Horizontally centers the content */
    min-height: calc(100vh - 60px); /* Full height minus footer */
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* --- Logo Styling (Container) --- */
.logo {
    margin-bottom: 1.5rem;
    width: 100%;
    text-align: center;
}

/* --- Logo Image Styling --- */
.logo img {
    display: block;
    /* --- LOGO SIZE REDUCED --- */
    max-width: clamp(120px, 25vw, 200px); /* Smaller: min 120px, scales up to 200px max */
    width: 100%;
    height: auto;
    margin: 0 auto; /* Center horizontally */
}


/* --- Mascot Styling (Optional) --- */
/* Uncomment this section if you use the mascot */
/*
.mascot {
    width: clamp(50px, 10vw, 80px);
    height: auto;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}
*/

/* --- Slogan & Subtitle Styling --- */
.slogan {
    font-family: var(--font-text);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--kala-white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    margin-top: 1rem; /* Added slight space above slogan */
}

.subtitle {
    font-family: var(--font-text);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* --- Footer --- */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    font-family: var(--font-text);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

/* --- Simple Responsiveness --- */
@media (max-width: 600px) {
    .logo {
        margin-bottom: 1rem;
    }
    .logo img {
         /* Optional: you might want slightly different clamp values for mobile */
         /* max-width: clamp(100px, 30vw, 180px); */
    }
    .slogan {
        margin-bottom: 0.3rem;
        margin-top: 0.5rem; /* Adjust space on mobile */
    }
}
/* --- Estilos para la Animación del Pastel --- */

/* NUEVO: Contenedor para el pastel SVG */
.cake-container {
    text-align: center; /* Centra el SVG horizontalmente */
    margin-top: 0.8rem;   /* Espacio entre el slogan y el pastel */
    margin-bottom: 0.8rem; /* Espacio entre el pastel y el subtítulo */
    line-height: 0; /* Evita espacios verticales extraños */
}

/* MODIFICADO: Ya no necesita alinear con texto */
.cake-animation {
    display: inline-block; /* Permite aplicar tamaño pero se centra por el padre */
    /* Ya no se necesitan: vertical-align, margin-right, line-height */
}

/* ESTA REGLA PERMANECE IGUAL */
.cake-animation svg {
    /* Puedes ajustar el tamaño aquí si quieres */
    /* width: 30px; */
    /* height: 36px; */
    display: block;
    color: var(--kala-white);
}

/* ESTA REGLA PERMANECE IGUAL (Controla la animación) */
#cake-group {
    animation-name: cake-cycle;
    animation-duration: 6s; /* Duración total del ciclo */
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    opacity: 0; /* Empieza invisible */
}

/* ESTA REGLA PERMANECE IGUAL (Define la animación) */
@keyframes cake-cycle {
    /* Aparece/Cocina (0% a 30%) */
    0% {
        opacity: 0;
        transform: scale(0.8); /* Empieza pequeño */
    }
    10% {
        opacity: 1;
        transform: scale(1.05); /* Crece un poco más */
    }
    30% {
        opacity: 1;
        transform: scale(1); /* Tamaño normal */
    }

    /* Se come (30% a 65%) */
    65% {
        opacity: 1;
        transform: scaleY(0.2); /* Se encoge verticalmente (comido) */
    }

    /* Desaparece (65% a 90%) */
    75% {
        opacity: 0;
        transform: scaleY(0.2); /* Empieza a desaparecer mientras está encogido */
    }
    90% {
        opacity: 0;
        transform: scaleY(0.1); /* Termina de desaparecer */
    }

    /* Pausa antes de reiniciar (90% a 100%) */
    100% {
        opacity: 0;
        transform: scaleY(0.1); /* Permanece invisible */
    }
}