
/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* Colores */
:root {
    --primary-color: #1f4e79;
    --secondary-color: #f5f5f5;
    --accent-color: #2ecc71;
    --text-color: #333;
}
/*Foto de portada*/
.hero {
    background: url('../images/portada_guasare.jpg') center 100%/cover no-repeat;
    height: 70vh;           /* 🔽 antes: 70vh */
    max-height: 600px;      /* 🔽 antes: 600px */
    min-height: 400px;      /* 🔽 antes: 400px */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

/* Colores */
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    background-color: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #27ae60;
}

/* Sección servicios */
.services {
    padding: 4rem 2rem;
    background-color: var(--secondary-color);
    text-align: center;
}

.services h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.service-item {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.service-item p {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* CTA */
.cta {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Responsivo 
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .service-grid {
        flex-direction: column;
        align-items: center;
    }
}
*/

@media (max-width: 768px) {
    .hero {
        background-position: center 0%;
        background-size: cover;
        height: 60vh;
        min-height: 300px;
    }


    .hero-content {
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

/* whatsapp-float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.whatsapp-float img {
    width: 85%;
    margin-top: 7%;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Animación */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}


/* Tooltip */
.whatsapp-float::after {
    content: "Chatea con nosotros";
    position: absolute;
    bottom: 75px;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 1; /* Siempre visible */
    pointer-events: none;
    animation: pulse 2s infinite; /* Aplica el mismo efecto */
    z-index: 101;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Tamaño del icino de whatsapp solo para desktop */
@media (min-width: 769px) {
    .whatsapp-float img {
        width: 80%;
        margin-top: 10%;
    }

    .whatsapp-float {
        width: 70px;
        height: 70px;
    }
}

/* Boton WhatsaApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    font-weight: bold;
    padding: 12px 18px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: background 0.3s ease;
  }
  
  .whatsapp-float:hover {
    background-color: #1ebe5d;
  }
