/* ------------------- */
/* VARIABLES DE COLOR Y FUENTES (BASADO EN EL LOGO) */
/* ------------------- */
:root {
    --dark-primary: #1A1A1A;      /* Negro principal del logo */
    --accent-orange: #E85E0B;     /* Naranja vibrante del logo */
    --text-secondary: #5A5A5A;   /* Gris del subtítulo del logo */
    --background-light: #F8F9FA; /* Un blanco muy sutil para fondos */
    --border-gray: #E2E8F0;
    --font-family: 'Poppins', sans-serif;
}

/* ------------------- */
/* RESET BÁSICO Y ESTILOS GLOBALES */
/* ------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-light);
    color: var(--text-secondary);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--dark-primary);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

/* ------------------- */
/* HEADER Y NAVEGACIÓN */
/* ------------------- */
.header {
    background-color: #FFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav__logo-img {
    height: 45px;
    width: auto;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--accent-orange);
}

.nav__toggle {
    font-size: 1.5rem;
    cursor: pointer;
    display: none; /* Oculto en escritorio */
}


/* ------------------- */
/* HERO SECTION */
/* ------------------- */
.hero {
    padding-top: 120px;
    padding-bottom: 4rem;
    text-align: center;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative; 
    color: #FFF;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.4); 
    z-index: -1;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    max-width: 800px;
    color: #FFF;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 580px;
    color: #f1f1f1;
    margin-left: auto;
    margin-right: auto;
}


.btn {
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn--primary {
    background-color: var(--accent-orange);
    color: #FFF;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(232, 94, 11, 0.3);
}

/* ------------------- */
/* SECCIÓN DE SERVICIOS */
/* ------------------- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #FFF;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.service-card__icon {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ------------------- */
/* SECCIÓN CALL TO ACTION (CTA) */
/* ------------------- */
.cta-section {
    background-color: var(--dark-primary);
    color: #FFF;
    text-align: center;
    border-radius: 20px;
    padding: 4rem 2rem;
}

.cta-section h2 {
    color: #FFF;
}

.cta-section .section-subtitle {
    color: #a0aec0;
    margin-bottom: 2rem;
}

/* ------------------- */
/* SECCIÓN DE CONTACTO Y FORMULARIO */
/* ------------------- */
.contact {
    padding-bottom: 3rem;
}

.contact__form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__form-group {
    display: flex;
    flex-direction: column;
}

.contact__form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-primary);
}

.contact__form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact__form-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(232, 94, 11, 0.15);
}

.contact__form .btn--primary {
    align-self: flex-start;
    cursor: pointer;
}

/* ------------------- */
/* ESTILOS PARA LA VENTANA MODAL */
/* ------------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__content {
    background-color: #FFF;
    border-radius: 12px;
    padding: 3rem;
    max-width: 650px;
    width: 100%;
    position: relative;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.active .modal__content {
    transform: scale(1);
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--border-gray);
    transition: color 0.3s;
}

.modal__close:hover {
    color: var(--text-secondary);
}

.modal__icon {
    font-size: 3.5rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

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

.modal__description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.modal__list {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal__list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.modal__list .bx {
    color: var(--accent-orange);
    font-size: 1.5rem;
    margin-top: 0.15rem;
}

.modal__list strong {
    display: block;
    color: var(--dark-primary);
    margin-bottom: 0.25rem;
}

.modal__list span {
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal__btn {
    display: inline-block;
}

body.modal-open {
    overflow: hidden;
}

/* ------------------- */
/* FOOTER */
/* ------------------- */
.footer {
    background-color: var(--border-gray); 
    color: var(--text-secondary);
    padding-top: 4rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.footer__logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer__brand p {
    font-size: 0.9rem;
}

.footer__title {
    color: var(--dark-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--accent-orange);
}

.footer__copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #ced4da;
    font-size: 0.9rem;
}


/* =============================================== */
/* MEDIA QUERIES (DISEÑO RESPONSIVE) */
/* =============================================== */

@media screen and (max-width: 768px) {
    /* --- AJUSTES DEL MENÚ DE NAVEGACIÓN --- */
    .nav__menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        transition: right 0.4s ease-in-out;
        padding-top: 2rem;
    }
    
    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav__link {
        font-size: 1.2rem;
    }

    .nav__toggle {
        display: block;
    }

    .show-menu {
        right: 0;
    }

    /* --- AJUSTES GENERALES DE SECCIONES --- */
    section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1rem;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* --- AJUSTES DEL MODAL EN MÓVILES --- */
    .modal {
        align-items: flex-start;
        overflow-y: auto;
        padding-top: 5vh;
        padding-bottom: 5vh;
    }

    .modal__content {
        padding: 2rem 1.5rem;
        margin: auto 0;
    }

    .modal__title {
        font-size: 1.5rem;
    }
}