/* ===== RESET Y FUENTE ===== */

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #1A1728;
    background: #fafafa;
    scroll-behavior: smooth;
    overflow-x: hidden; /* evita scroll horizontal */
    width: 100vw;
    box-sizing: border-box;
}

body, main {
    background-color: #ffffff !important;
}
/* ===== PALETA DE COLORES ===== */

:root {
    --verde: #69C8CC;
    --fucsia: #E3007B;
    --rosa: #EC0080;
    --texto-oscuro: #1A1728;
    --blanco: #ffffff;
    --gris: #f4f4f4;
}
/* ===== NAVBAR ===== */

.navbar {
    display: flex;
    margin-right: auto;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--verde);
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
}

    .navbar.scrolled {
        background: var(--verde);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 1.8rem;
    cursor: pointer;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--blanco);
    text-decoration: none;
    transition: color 0.3s;
}

    .nav-links a:hover {
        color: var(--rosa);
    }

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        background: var(--verde);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 2rem;
        box-sizing: border-box;
    }

        .nav-links ul {
            flex-direction: column;
            gap: 1rem;
            padding: 0;
            margin: 0;
        }

        .nav-links.show {
            display: block;
        }
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--blanco);
    text-decoration: none;
    cursor: pointer;
}

    .logo:hover {
        color: var(--rosa);
    }

.logo-img {
    height: 50px;
    width: auto;
    max-width: 100%;
}
/* ===== HERO ===== */

.hero {
    background: var(--hero-bg, linear-gradient(to right, var(--verde), var(--rosa)));
    color: var(--blanco);
    text-align: center;
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-size: cover;
    background-position: center;
}

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
        animation: fadeIn 1.2s ease-in;
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
/* ===== BOTÓN ===== */ /* Botón general */

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: var(--blanco);
    color: var(--verde);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

    .btn:hover {
        background: var(--rosa);
        color: var(--blanco);
        transform: scale(1.05);
    }

.contact-form .btn {
    display: block;
    margin: 1rem auto 0;
    width: 200px !important; /* fuerza el ancho fijo */
    max-width: 80%; /* en móvil no se rompe */
    padding: 0.8rem 1.6rem;
    font-size: 0.9rem;
    text-align: center;
}
/* ===== TITULOS DE SECCIÓN ===== */

.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 2rem 0;
    color: var(--verde);
}
/* ===== SERVICIOS ===== */

.servicios {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--blanco);
}

    .servicios .cards {
        display: flex;
        gap: 2rem;
        justify-content: center;
        flex-wrap: wrap;
        padding: 2rem;
    }

.card {
    background: linear-gradient(to top, #ffffff, #f5f2fa);
    padding: 2rem;
    border-radius: 12px;
    width: 280px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .card h3 {
        color: var(--verde);
    }

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
/* ===== NOSOTROS ===== */

.nosotros {
    background: #fff;
    padding: 3rem 1rem;
    text-align: center;
    font-size: 1.1rem;
}

    .nosotros .valores {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 1.5rem 0;
    }

    .nosotros .valor {
        flex: 1 1 140px;
        max-width: 220px;
        padding: 0.2rem;
    }

        .nosotros .valor h3 {
            font-size: 2rem;
            color: var(--verde);
            margin: 0 0 0.3rem 0;
        }

        .nosotros .valor p {
            margin: 0;
            font-size: 0.95rem;
        }

    .nosotros .fortalezas {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .nosotros .fortaleza {
        flex: 1 1 180px;
        max-width: 250px;
        padding: 0.2rem;
    }

        .nosotros .fortaleza h4 {
            margin: 0.2rem 0;
            font-size: 1.1rem;
        }

        .nosotros .fortaleza p {
            margin: 0;
            font-size: 0.9rem;
        }

        .nosotros .fortaleza span {
            font-size: 1.6rem;
        }
/* === RESPONSIVE === */

@media (max-width: 768px) {
    .nosotros {
        padding: 2rem 0.5rem;
    }

        .nosotros .valores, .nosotros .fortalezas {
            flex-direction: column;
            align-items: center;
            gap: 0.3rem;
            margin: 1rem 0;
        }

        .nosotros .valor, .nosotros .fortaleza {
            max-width: 100%;
        }

            .nosotros .valor h3 {
                font-size: 1.6rem;
            }

            .nosotros .fortaleza h4 {
                font-size: 1rem;
            }

            .nosotros .fortaleza p {
                font-size: 0.85rem;
            }
}
/* ===== FOOTER ===== */

footer {
    background: var(--verde);
    color: var(--blanco);
    text-align: center;
    padding: 1rem;
}
/* ===== ANIMACIONES ===== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade, .animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-visible {
    opacity: 1;
    transform: translateY(0);
}
/* ===== CONTACTO ===== */

.contacto {
    background-color: #ffffff !important;
    padding: 6rem 2rem;
    text-align: center;
    width: 100%;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

    .contact-form input, .contact-form textarea {
        padding: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        outline: none;
        font-size: 1rem;
        resize: vertical;
        width: 100%;
        box-sizing: border-box;
        transition: border 0.3s;
    }

        .contact-form input:focus, .contact-form textarea:focus {
            border: 1px solid var(--verde);
        }

    .contact-form button.btn {
        width: 100%;
        max-width: 100%;
    }
/* ===== ALERTAS ===== */

.alert {
    max-width: 600px;
    margin: 1rem auto;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 1rem;
}

.alert-success {
    background-color: #e6f4ea;
    color: #2f7a32;
    border: 1px solid #2f7a32;
}

.alert-danger {
    background-color: #fdecea;
    color: #a12d2f;
    border: 1px solid #a12d2f;
}
/* ===== COOKIE BANNER ===== */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    max-width: 600px;
    margin: auto;
    opacity: 1;
    transition: opacity 0.4s ease;
}

    .cookie-banner p {
        margin: 0;
        font-size: 0.95rem;
        flex: 1;
        padding-right: 1rem;
    }

    .cookie-banner .btn {
        padding: 0.6rem 1.2rem;
        border: none;
        background: var(--verde);
        color: #fff;
        border-radius: 4px;
        cursor: pointer;
        font-weight: 500;
    }

        .cookie-banner .btn:hover {
            background: var(--rosa);
        }
/* ===== VALORES Y TESTIMONIOS ===== */

.valores {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    text-align: center;
}

.valor h3 {
    font-size: 2.5rem;
    color: var(--verde);
    margin: 0;
}

.testimonios {
    background: #fff;
    padding: 6rem 2rem;
    text-align: center;
}

.testimonios-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.testimonio {
    background: var(--gris);
    padding: 2rem;
    border-radius: 12px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .testimonio:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    .testimonio img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
    }
/* ===== Botón Ir Arriba ===== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: none;
    background: var(--verde);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.4rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    line-height: 3.2rem;
    transition: background 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

    .back-to-top:hover {
        background: var(--rosa);
        opacity: 1;
    }
