@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: "Poppins", sans-serif;
}

img {
    max-width: 100%;
}

.container{
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background-color: #1ccf60;
    display: flex;
    align-items: center;
    min-height: 70vh;
    padding: 100px 0;
}

.menu{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #252525;
    font-size: 25px;
    font-weight: 800;
    text-transform: uppercase;
}

.menu .navbar ul li {
    position: relative;
    float: left;
}

.menu .navbar ul li a {
    font-size: 18px;
    padding: 20px;
    color: #099c58;
    display: block;
    font-weight: 600;
}

#menu {
    display: none;
}

.menu-icono {
    width: 25px;
}

.menu label {
    cursor: pointer;
    display: none;
}

.submenu {
    position: relative;
}

.submenu #carrito {
    display: none;
}

.submenu:hover #carrito {
    display: block;
    position: absolute;
    right: 0;
    backdrop-filter: blur(10px);
    top: 100%;
    z-index: 1;
    background-color: #4E4B5076;
    padding: 20px;
    min-width: 400px;
}

table {
    width: 100%;
}

th, td {
    color: #252525;
}

.borrar {
    background-color: #252525;
    border-radius: 50%;
    padding: 5px 10px;
    color: #335594;
    font-weight: 800;
    cursor: pointer;
}

.header-content {
    display: flex;
}

.header-txt {
    flex-basis: 50%;
}

.header-txt span {
    font-size: 16px;
    color: #252525;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.header-txt h1 {
    font-size: 55px;
    line-height: 1;
    color: #333128;
    margin-bottom: 25px;
}

P {
    font-size: 16px;
    color: #181713;
    margin-bottom: 45px;
}

.btn-1 {
    display: inline-block;
    padding: 13px 25px;
    color: #252525;
    border-radius: 25px;
    background-color: #1bbcd8;
    text-transform: capitalize;
}

.header-img {
    flex-basis: 50%;
    text-align: center;
}

.header-img img {
    width: 400px;
}

.information {
    width: 70%;
    box-shadow: 0 0 20px  rgba(20, 20, 20, 0.1);
    padding: 25px 75px;
    margin-top: -75px;
    background-color: #2078a1;
}

.information-content {
    text-align: center;
    display: flex;
    justify-content: space-between;
}

.information-1 img {
    width: 35px;
}

h3 {
    font-size: 17px;
    color: #181713;
    text-transform: capitalize;
}

.information-1 p {
    margin-bottom: 0;
}

.oferts {
    padding: 100px 0;
    display: flex;
    justify-content: space-between;
}

.oferts-1 {
    text-align: center;
    flex-basis: calc(25% - 40px);
    box-shadow: 0 0 40px  rgba(0, 0, 0, 0.1);
    background-color: #2078a1;
    padding: 45px;
}

.oferts-1 img {
    width: 140px;
    margin-bottom: 10px;
}

.oferts-1 p {
    font-size: 15px;
    margin: 0;
    font-weight: 600;
    color: #000000;
}

.products {
    padding: 0 0 100px 0;
    text-align: center;
    background-color: #2078a1;
}

.products h2 {
    font-size: 40px;
    color: #181713;
    text-transform: capitalize;
    margin-bottom: 55px;
}

.product-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}

.products {
    text-align: center;
    box-shadow: 0 0 20px  rgba(0, 0, 0, 0.1);
    padding: 35px;
}

.products img {
    width: 150px;
    height: 130px;
    margin-bottom: 10px;
}

.products h3 {
    color: #10130e;
}

.products p {
    font-size: 15px;
    margin: 0;
    color: #181713;
    font-weight: 600;
}

.btn-2 {
    display: inline-block;
    margin-top: 15px;
    padding: 7px 25px;
    border-radius: 5px;
    color: #0e0c0c;
    background-color: #1bbcd8;
}

.service {
    padding-bottom: 100px;
    display: flex;
    justify-content: space-between;
}

.service-1 {
    flex-basis: 30%;
    padding: 25px;
    background-color: #2078a1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.store {
    width: 300px;
    height: 250px;
}

.service-2 {
    flex-basis: 40%;
    padding: 25px;
    background-color: #2078a1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-3 {
    flex-basis: 30%;
    padding: 25px;
    background-color: #2078a1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact {
    padding-bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

form {
    display: flex;
}

input {
    padding: 17px 35px;
    border-radius: 25px;
    border: 1px solid #1bbcd8;
    outline: none;
}

.btn-3 {
    margin-left: 10px;
    color: #FFFFFF;
    background-color: #1bbcd8;
}

.footer {
    padding: 50px 0;
    background-color: #1bbcd8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.link h3 {
    color: #252525;
    font-size: 17px;
    margin-bottom: 10px;
}

.link a {
    color: #252525;
    font-size: 15px;
    display: block;
    margin-bottom: 10px;
}

.link a:hover {
    color: #252525;
}

/* ===================== */
/* Estilos para Nuestros Servicios */
/* ===================== */
.servicios {
    padding: 50px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    background: #f8f8f8;
    border-radius: 12px;
    text-align: center;
    padding: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.icon {
    font-size: 70px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 10px;
    color: #2b7a2b;
}

.service-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    background: #f8f8f8;
    border-radius: 12px;
    text-align: center;
    padding: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.service-card h3 {
    margin-bottom: 10px;
    color: #2b7a2b;
}

.service-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

/* Banner de servicios */

.header-servicios {
    position: relative;
    padding: 40px 20px; /* espacio interno */
    background: linear-gradient(rgba(0, 100, 180, 0.6), rgba(0, 100, 180, 0.6)),
                url('images/banner-reciclaje.jpg..png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

/* Texto de bienvenida */

/* Texto de bienvenida */
.header-servicios .welcome-text {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Título principal */
.header-servicios .welcome-text h1 {
    font-size: 48px; /* un poco más grande */
    margin-bottom: 15px;
    font-weight: bold;
    color: #3cb371; /* verde ecológico */
    text-shadow: 3px 3px 12px rgba(0,0,0,0.6); /* más contraste */
    letter-spacing: 2px; /* más espacio entre letras */
    animation: fadeZoom 2.5s ease forwards; /* animación de entrada */
}

/* Subtítulo */
.header-servicios .welcome-text p {
    font-size: 22px;
    font-weight: 400;
    color: #f1f1f1; /* más claro para destacar */
    text-shadow: 1px 1px 8px rgba(0,0,0,0.5);
    animation: fadeIn 3s ease forwards;
}

/* Animación de entrada */
@keyframes fadeZoom {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fondo del header */
.hero-servicios {
    position: relative;
    width: 100%;
    height: 350px; /* puedes ajustar */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), 
                url('images/fondo-reciclaje.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Contenedor de la frase */
.frase-bienvenida {
    text-align: center;
    padding: 50px 20px;
    position: relative;
    z-index: 2;
    overflow: hidden; /* 👉 evita que la frase se salga del recuadro */
    background: rgba(0,0,0,0.4); /* sombreado sutil */
    border-radius: 10px;
    max-width: 900px; /* opcional: limita el ancho del bloque */
    margin: 0 auto;   /* centra el bloque */
}

/* Estilos de la frase */
.frase-bienvenida h1 {
    color: #3cb371; /* verde ecológico */
    font-size: 2.2rem; /* ajusta aquí el tamaño */
    font-weight: bold;
    display: block; /* 👈 permite que sea en bloque y multilínea */
    position: relative;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
    animation: ola 15s infinite ease-in-out;
    line-height: 1.4; /* 👈 mejora la lectura en bloque */
    padding: 0 10px;
}

/* Animación tipo ola (vaivén suave en bloque) */
@keyframes ola {
    0% {
        transform: translateX(0) scale(1);
    }
    25% {
        transform: translateX(-10px) scale(1.05); /* se mueve a la izquierda */
    }
    50% {
        transform: translateX(0) scale(1.1); /* vuelve al centro y sobresale */
    }
    75% {
        transform: translateX(10px) scale(1.05); /* se mueve a la derecha */
    }
    100% {
        transform: translateX(0) scale(1); /* regresa al centro */
    }
}

/*prueba*/

/* Bloque de bienvenida debajo del banner */
.container.servicios {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Título principal */
.container.servicios h1 {
    font-size: 46px;
    font-weight: bold;
    color: #2b7a2b; /* verde ecológico oscuro */
    text-shadow: 2px 2px 10px rgba(0,0,0,0.4);
    margin-bottom: 15px;
    animation: fadeZoom 2s ease forwards;
}

/* Subtítulo */
.container.servicios > p {
    font-size: 20px;
    font-weight: 400;
    color: #444;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.3);
    margin-bottom: 30px;
    animation: fadeIn 2.5s ease forwards;
}

/* Título "Nuestros Servicios" */
.container.servicios h2 {
    font-size: 34px;
    font-weight: bold;
    color: #3cb371; /* verde brillante */
    margin-top: 40px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: slideUp 2s ease forwards;
}

/* Descripción de servicios */
.container.servicios .text-muted {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    animation: fadeIn 3s ease forwards;
}

/* Animaciones */
@keyframes fadeZoom {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media(max-width:991px) {

    .menu {
        padding: 30px;
    }

    .menu label {
        display: initial;
    }

    .menu .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #303030;
        display: none;
    }

    .menu .navbar ul li {
        width: 100%;
    }

    .menu .navbar ul li a {
        color: #252525;
    }

    .logo {
        display: none;
    }
    
    #menu:checked ~ .navbar {
        display: initial;
    }

    .submenu:hover #carrito {
        min-width: 340px;
    }

    .header {
        min-height: 0vh;
        padding: 100px 30px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-txt {
        margin-bottom: 20px;
    }

    .header-img img {
        width: 300px;
    }
    
    .information {
        display: none;
    }

    .oferts {
        padding: 30px;
        flex-direction: column;
    }

    .oferts-1 {
        margin-bottom: 25px;
    }

    .products {
        padding: 30px;
    }

    .products-content {
        grid-template-columns: repeat(1, 1fr);
    }

    .service {
        flex-direction: column;
    }

    .footer {
        padding: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    

}