@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');


/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body y fondo */
body {
    font-family: 'Playfair Display', serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
}

/* Estilos para el header */
header {
    background-color: transparent;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    transition: background-color 0.3s ease-in-out;
    z-index: 100;
}

header.blue {
    background-color: #a0522d;
}

/* Logo */
.logo img {
    height: 70px;
    width: auto;
}

/* Navegación */
nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Sección Hero */
.hero {
    position: relative;
    height: 100vh;
    background-image: url('fondo.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Botones en el Hero */
.hero .btn-group {
    margin-top: 20px;
}

.hero .btn {
    display: inline-block;
    background-color:  #f6c8ad;
    color: #a0522d;
    padding: 10px 20px;
    margin: 5px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.hero .btn:hover {
    background-color: #ffffff;
}

/* Sección Servicios */
#servicios {
    padding: 50px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

#servicios h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #a0522d;
}

.servicios-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.servicio {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio h3 {
    font-size: 24px;
    color: #a0522d;
    margin-bottom: 10px;
}

.servicio:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Sección Testimonios */
.testimonios {
    text-align: center;
    padding: 50px;
    background-color: #f4f4f4;
}

.testimonios-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.testimonial {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    transition: transform 0.3s;
}

.testimonial:hover {
    transform: scale(1.05);
}

.testimonial h4 {
    margin-top: 10px;
    color:  #a0522d;
}

/* Sección Estadísticas */
.estadisticas {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 50px;
    background-color: #a0522d;
    color: white;
    text-align: center;
}

.stat h3 {
    font-size: 48px;
    color: #ffbe98;
}

.stat p {
    font-size: 18px;
}

/* Sección Beneficios */
.beneficios {
    text-align: center;
    padding: 50px;
    background-color: white;
}

.beneficio-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.beneficio {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 250px;
    transition: transform 0.3s, background-color 0.3s;
}

.beneficio i {
    font-size: 40px;
    color: #a0522d;
    margin-bottom: 10px;
}

.beneficio:hover {
    transform: scale(1.05);
    background-color: #004080;
    color: white;
}

.beneficio h4 {
    color: #004080;
    margin-bottom: 10px;
}

.beneficio:hover h4 {
    color: white;
}

/* Footer */
footer {
    background-color: #a0522d;
    color: #fff;
    text-align: center;
    padding: 20px;
}

footer .social-links a {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

footer .social-links a:hover {
    text-decoration: underline;
}

/* Responsivo */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .servicios-container {
        flex-direction: column;
        align-items: center;
    }

    .testimonios-container {
        flex-direction: column;
        align-items: center;
    }

    .estadisticas {
        flex-direction: column;
        gap: 20px;
    }

    .beneficio-container {
        flex-direction: column;
        align-items: center;
    }
}
nav ul li a.active {
    font-weight: bold;
    color: #fff; /* Color del texto */
    background-color: #ffbe98; /* Color de fondo del cuadro */
    padding: 8px 15px; /* Espaciado interno para hacer el cuadro */
    border-radius: 5px; /* Bordes redondeados */
    text-decoration: none; /* Quitar subrayado */
    transition: background 0.3s; /* Animación suave */
}
/* Efecto de desvanecimiento */
body {
    opacity: 0;
    animation: fadeIn 0.2s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* Botón flotante de WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #f9f9f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.whatsapp-button img {
    width: 40px;
    height: 40px;
}

/* Efecto de agrandamiento al pasar el mouse */
.whatsapp-button:hover {
    transform: scale(1.1);
}
