/* ====================================== */
/* ============ ESTILOS GLOBALES ========= */
/* ====================================== */

:root {
    --bg-body: #e8f5e9;
    --text-main: #1b5e20;
    --bg-nav: #388e3c;
    --bg-footer: #388e3c;
    --bg-box: #ffffff;
    --link-color: white;
    --link-bg: #81c784;
    --link-border: transparent;
    --footer-text: white;
    --btn-primary: #4caf50;
    --btn-primary-hover: #388e3c;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 10%;
    text-align: center;
    background-color: var(--bg-body);
    /* Verde claro */
    color: var(--text-main);
    /* Texto verde oscuro */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#contenido {
    flex: 1;
    padding-bottom: 60px;
}

/* ====================================== */
/* ========= BOTÓN DE MENÚ MÓVIL ========= */
/* ====================================== */

.toggle-nav {
    display: none;
    background: #c1c1c166;
    color: white;
    border: none;
    padding: 10px 10px;
    font-size: 18px;
    cursor: pointer;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1100;
    transition: transform 0.2s ease-in-out;

}


.toggle-nav:hover {
    transform: scale(1.1);
}

.toggle-nav.hidden {
    display: none;
}

/* ====================================== */
/* ========= BARRA DE NAVEGACIÓN ========= */
/* ====================================== */

.barnav {
    background-color: var(--bg-nav);
    padding: 1%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.barnav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.barnav ul li {
    margin: 0 15px;
}

.barnav ul li a {
    text-decoration: none;
    color: var(--link-color);
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease, border 0.3s ease;
    border: 2px solid var(--link-border);
    background-color: var(--link-bg);
}

.barnav ul li a:hover {
    background-color: #ffffff54 !important;
    border-color: #ffffff23 !important;
}

.barnav ul li a.activo {
    background-color: #b9b9b94f;
    border-color: #ffffff7a;
}

/* ====================================== */
/* ======= ESTILO PARA EL LOGO ======= */
/* ====================================== */

.logo {
    width: 20%;
    background-color: #c5c5c554;
    border-radius: 10px;
    margin-bottom: 1%;

}

/* ====================================== */
/* === CONTENEDOR PRINCIPAL (Tarjetas y Formulario) === */
/* ====================================== */

.content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    padding: 40px 20px;
    padding-top: 2%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ====================================== */
/* ========= TARJETAS DE CONTENIDO ========= */
/* ====================================== */

.box {
    background: var(--bg-box);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 320px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    transition: box-shadow 0.3s ease-in-out;
    margin-bottom: 20px;
}

.box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.box h3 {
    color: #388e3c;
    margin-bottom: 10px;
}

/* ====================================== */
/* ========= FORMULARIO DE CONTACTO ========= */
/* ====================================== */

.formulario {
    max-width: 320px;
    flex: 1;
    min-width: 250px;
    padding: 20px;
    padding-right: 40px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px;
}

.formulario input,
.formulario textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.formulario button {
    background: #388e3c;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease-in-out;
}

.formulario button:hover {
    background: #2e7d32;
}

/* ====================================== */
/* ========== FOOTER ========= */
/* ====================================== */

footer {
    background: var(--bg-footer);
    color: var(--footer-text);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

footer p {
    margin: 0;
}

/* ====================================== */
/* === HERO SECTION === */
/* ====================================== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('src/Scene.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
    max-width: 800px;
    line-height: 1.4;
}

/* ====================================== */
/* === FEATURES SECTION === */
/* ====================================== */
.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
    background-color: #f9f9f9;
    flex-wrap: wrap;
}

.feature-box {
    background: var(--bg-box);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box h3 {
    color: #388e3c;
    margin-bottom: 15px;
    font-size: 1.4em;
}

/* ====================================== */
/* === CALL TO ACTION === */
/* ====================================== */
.cta-section {
    background-color: var(--bg-footer);
    color: var(--footer-text);
    padding: 60px 20px;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 20px;
    font-size: 2.2em;
}

.btn-primary {
    background-color: var(--btn-primary);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover);
}

.btn-secondary {
    background-color: white;
    color: #388e3c;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    border: 2px solid white;
    display: inline-block;
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: transparent;
    color: white;
}

/* ====================================== */
/* ========= RESPONSIVE DESIGN ========= */
/* ====================================== */

@media screen and (max-width: 768px) {
    body {
        padding-top: 0;
    }

    .toggle-nav {
        display: block;
    }

    .barnav {
        display: none;
        flex-direction: column;
        align-items: center;
    }

    .barnav.visible {
        display: flex;
    }

    .barnav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .barnav ul li {
        margin: 3% 0;
    }

    .logo {
        width: 70%;
        padding-left: 5%;
    }
}

/* ====================================== */
/* ========= BOTÓN FLOTANTE DE WHATSAPP ========= */
/* ====================================== */

.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    cursor: grab;
    z-index: 999;
    transition: transform 0.2s ease-in-out;
}

.whatsapp-icon:active {
    cursor: grabbing;
    transform: scale(1.1);
}

@media screen and (max-width: 600px) {
    .whatsapp-icon {
        width: 50px;
        height: 50px;
    }
}

/* ====================================== */
/* ========== POPUP PERSONALIZADO ========== */
/* ====================================== */

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.popup-content {
    background-color: white;
    padding: 25px 35px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    color: #1b5e20;
    font-size: 18px;
    animation: popupFade 0.3s ease;
}

.popup-content button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #388e3c;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.popup-content button:hover {
    background-color: #2e7d32;
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ====================================== */
/* ========== BOTONES DE REDES SOCIALES ========== */
/* ====================================== */

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.social-buttons a {
    color: white;
    font-size: 20px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.social-buttons a:hover {
    transform: scale(1.1);
}

a.facebook {
    background: #3b5998;
}

a.instagram {
    background: #e4405f;
}

a.whatsapp {
    background: #25d366;
}

a.twitter {
    background: #1da1f2;
}

a.linkedin {
    background: #0077b5;
}

a.youtube {
    background: #ff0000;
}

a.tiktok {
    background: #000000;
}

a.telegram {
    background: #0088cc;
}

a.pinterest {
    background: #bd081c;
}

a.threads {
    background: #121212;
}

a.github {
    background: #333333;
}

/* ====================================== */
/* === SERVICES PAGE STYLES === */
/* ====================================== */

.services-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('src/Desert.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.services-hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
    background-color: #ffffff;
    flex-wrap: wrap;
}

.service-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card h2 {
    color: #388e3c;
    margin-bottom: 15px;
    font-size: 1.6em;
}

.service-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card .btn-primary {
    align-self: center;
}