@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
    position: relative;
}

#leaves-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Permite hacer clic a través de las hojas */
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 450px;
    backdrop-filter: blur(10px); /* Efecto vidrio */
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #e57373;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.tree-container {
    width: 130px;
    height: 130px;
    margin: 0 auto 1.5rem auto;
    animation: gentleSway 4s ease-in-out infinite alternate;
}

.tree-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.15));
}

@keyframes gentleSway {
    0% { transform: rotate(-3deg); }
    100% { transform: rotate(3deg); }
}

.counter-box h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.time-block {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    flex: 1 1 30%; /* Responsivo en móviles */
    min-width: 70px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
}

.time-block span {
    display: block;
    font-size: 1.6rem;
    font-weight: 600;
    color: #e57373;
    margin-bottom: 2px;
}

.total-box {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #ddd;
}

.total-text {
    font-size: 1rem;
    color: #666;
}

.total-highlight {
    font-size: 1.2rem;
    color: #444;
    margin-top: 0.5rem;
}

.total-highlight strong {
    font-size: 1.8rem;
    color: #d32f2f;
    display: block;
}

/* Forma pura en CSS para las hojas */
.leaf {
    position: absolute;
    background-color: #A5D6A7;
    border-radius: 0 50% 50% 50%; /* Forma de gota/hoja */
    transform: rotate(45deg);
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(30px) rotate(225deg);
        opacity: 0;
    }
}