/* ---------- GLOBAL ---------- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #2E2E2E;
}

a {
    text-decoration: none;
    color: #2E2E2E;
}

header {
    display: flex;
    justify-content: space-between;
    height: 70px;
    background-color: #CADAE0;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

nav a {
    font-weight: 600;
    padding-right: 10px;
    color: #2E2E2E;
}

.nav-link:hover {
    background: linear-gradient(90deg, red, orange, yellow, green, blue, purple);
    -webkit-background-clip: text;
    color: transparent;
    transition: 0.3s ease-in-out;
}

/* ---------- HERO ---------- */

.hero {
    background-color: #CADAE0;
    min-height: 100vh;      /* NO height fijo */
    display: flex;
    align-items: center;
    padding: 80px 20px;
    gap: 40px;
}


.hero-img {
  max-width: 500px;
   position: relative;
}
 


.hero-img img {
    height: auto;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.centro {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: black;
    margin-top: -40px;
    margin-left: 80px;
    max-width: 400px;
}

.titulo-hero {
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 700;
    margin-bottom: 20px;
    color: #2E2E2E;
    letter-spacing: 0.5px;
}

.beneficios.premium {
    font-size: clamp(18px, 2.5vw, 24px);
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 34px;
    line-height: 1.8;
    color: #2E2E2E;
}

.beneficios.premium li::before {
    content: "✓";
    margin-right: 12px;
    color: #1abc9c;
    font-weight: bold;
}

/* ---------- CONTACTO ---------- */
.contacto {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 18px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 260px;
    z-index: 10;
}

.contacto-titulo {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1F3A4B;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contacto p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #2E2E2E;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contacto .correo {
    color: #0A66C2;
    font-weight: 600;
}

.contacto .telefono {
    font-size: 24px;
    margin-top: 10px;
    font-weight: 700;
}

/* ---------- PLANES ---------- */
.contenido {
    background-color: white;
    color: black;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.contenido h2 {
    width: 100%;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.plan {
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.plan img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.plan:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

.plan:hover img {
    transform: scale(1.1);
}

/* ---------- TRABAJOS ---------- */
.trabajos {
    padding: 50px 20px;
    background-color: #E3C9B9;
    text-align: center;
}

.trabajos h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color:#5A4B42;
}

.trabajos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    justify-items: center;
}

.trabajo {
    background: #F7EFE9;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.trabajo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.trabajo .imagenes {
    display: flex;
    gap: 10px;
}

.trabajo .imagenes img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    image-rendering: auto;
}

.trabajo .imagenes img:hover {
    transform: scale(1.05);
}

.img-contenedor {
    flex: 1;
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 1024px) {
    .plan {
        width: 45%;
    }
    .trabajos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .titulo-hero {
        font-size: 32px;
    }
    .beneficios.premium {
        font-size: 18px;
        line-height: 1.6;
    }
    .contacto {
        position: relative;
        right: 0;
        top: 0;
        margin-top: 25px;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .plan {
        width: 90%;
    }
    .trabajos-grid {
        grid-template-columns: 1fr;
    }
    .trabajo .imagenes {
        justify-content: center;
    }
}
#aspiradora {
    position: fixed;            /* Fija al viewport */
    bottom: 20px;               /* Se queda 20px del borde inferior */
    left: 0;                    /* Inicio en la izquierda */
    width: 100px;               /* Ajusta tamaño */
    display: none;              /* Oculta hasta llegar al final */
    z-index: 1000;              /* Sobre todo */
    animation: aspirar 3s ease-in-out infinite alternate; /* Animación ida y vuelta */
}

/* Animación de ida y vuelta */
@keyframes aspirar {
    0% {
        left: 0;
    }
    100% {
        left: calc(100% - 120px); /* Hasta la esquina derecha */
    }
}
@media (max-width: 768px) {

    /* HERO en columna */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .centro {
        margin: 0;
        align-items: center;
        max-width: 100%;
    }

    .hero-img {
        margin: 0;
        width: 100%;
        max-width: 350px;
    }

    /* Tarjeta contacto */
    .contacto {
        position: static;
        transform: none;
        width: 100%;
        max-width: 350px;
        margin-top: 20px;
    }

    /* Beneficios */
    .beneficios.premium {
        font-size: 18px;
    }

    /* HEADER */
    header {
        flex-direction: column;
        height: auto;
        gap: 10px;
    }

    nav {
        margin-bottom: 10px;
    }
}


