body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f2faff; /* Fondo blanco suave con un toque celeste */
    color: #333;
    overflow-x: hidden;
}


main {
    flex: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(45deg, #7066a2cd, #8c47b4c0); /* Azul y Violeta */
    color: white;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease;
}

.logo {
    font-family: 'Baloo', cursive;
    font-size: 24px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.back-button {
    text-decoration: none;
    color: white;
    background-color: #64b3f4;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #45d3a1;
}

.age-section {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #7066a2cd, #8c47b4c0);
    border-radius: 20px;
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
    max-width: 800px;
}

.age-section h1 {
    font-family: 'Baloo', cursive;
    color: #fff;
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.age-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.age-buttons button {
    background: linear-gradient(135deg, #8c47b4, #ff8c42);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.age-buttons button:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        font-size: 20px;
    }

    .age-section {
        padding: 40px 10px;
    }

    .age-section h1 {
        font-size: 28px;
    }

    .age-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .age-buttons button {
        font-size: 18px;
        padding: 12px 25px;
    }

    /* Evitar que el botón "Volver" cambie de lugar */
    .back-button {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px;
    }

    .logo {
        font-size: 18px;
    }

    .back-button {
        font-size: 14px;
        padding: 6px 12px;
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .age-section {
        padding: 30px 10px;
    }

    .age-section h1 {
        font-size: 24px;
    }

    .age-buttons button {
        font-size: 16px;
        padding: 10px 20px;
    }
}
.mascota {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 150px;
    height: 150px;
    animation: bounce 2s ease-in-out infinite;
    z-index: 10; /* Aseguramos que la mascota se muestre sobre el footer */
}

@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.mascota img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

footer {
    text-align: center;
    padding: 25px;
    background-color: #45d3a1; /* Verde suave */
    color: white;
    font-size: 22px;
    margin-top: 200px;
    border-radius: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    footer {
        font-size: 18px; /* Ajusta el tamaño de la fuente en pantallas pequeñas */
        padding: 20px;
    }
}

@media (max-width: 480px) {
    footer {
        font-size: 16px; /* Ajusta el tamaño de la fuente aún más en pantallas muy pequeñas */
        padding: 15px;
    }
}

