/* Importa la fuente Oswald de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&display=swap');

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url("images/DZ-07.webp") no-repeat center center fixed;
    background-size: cover;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Estilos para el header */
header {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.flag {
    width: 50px;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.header-text {
    text-align: right;
}

.header-text h1 {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.header-text h1 img[alt="Símbolo de reciclaje"] {
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    margin-left: 0.2em;
    margin-right: 0.2em;
}

.contact-number {
    margin: 5px 0 0 0;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

.flag:hover {
    transform: scale(1.1);
}

/* Main content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.content-overlay {
    background-color: rgba(39, 37, 37, 0.7);
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    backdrop-filter: blur(5px);
    transition: all 0.5s ease;
    text-align: justify;
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.content-overlay:hover {
    background-color: rgba(44, 42, 42, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(92, 89, 89, 0.3);
}

.content-overlay h2 {
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    margin-bottom: 1rem;
    color: #cacdf1;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 700;
    font-stretch: expanded;
    letter-spacing: 1px;
}

.content-overlay h2:hover {
    transform: skewX(-5deg);
}

/* Estilos para la lista ordenada */
.content-overlay ul {
    padding-left: 2rem;
    margin: 1.5rem 0;
    line-height: 1.8;
    text-align: center;
    counter-reset: item;
    list-style-type: none;
}

.content-overlay ul li {
    font-size: clamp(1rem, 3vw, 1.1rem);
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    counter-increment: item;
}

.content-overlay ul li::before {
    
    color: #cacdf1;
    font-weight: bold;
    position: absolute;
    left: -1.8rem;
}

.content-overlay ul li:hover {
    color: #cacdf1;
    transform: translateX(8px);
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

/* Botón de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #128C7E;
}

.whatsapp-btn img {
    width: 40px;
    height: 40px;
}

/* Animación de aparición para el contenido principal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .content-overlay {
        padding: 1rem;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-btn img {
        width: 50px;
        height: 50px;
    }

    .flag {
        width: 40px;
    }
    
    .header-left {
        gap: 10px;
    }
}