/* =====================================================
   NAVBAR
===================================================== */

.navbar{

    position:fixed;
    top:0;
    left:0;
    width:100%;

    z-index:1000;

    background:rgba(255,255,255,.85);

    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);

    transition:.4s ease;
}

.navbar.scrolled{

    background:rgba(255,255,255,.95);

    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);

    border-bottom:1px solid rgba(0,0,0,.08);

    box-shadow:
    0 8px 25px rgba(0,0,0,.08);

}

.nav-container{

    height:90px;

    display:flex;
    align-items:center;
    justify-content:space-between;

}

.logo img{

    height:65px;
    width:auto;
    display:block;

}

.nav-menu{

    display:flex;
    gap:2rem;

}

.nav-menu a{

    font-weight:500;
    transition:.3s;

}

.nav-menu a:hover{

    color:var(--primary);

}



/* =====================================================
   HERO
===================================================== */

.page-header{

    min-height:100vh;

    display:flex;
    align-items:center;

    background:
    linear-gradient(
        135deg,
        #ffffff,
        #f5f5f5
    );

}

.contact-hero{

    display:grid;

    grid-template-columns:
    1.15fr
    .85fr;

    gap:5rem;

    align-items:center;

}

.hero-text{

    max-width:650px;

}

.section-tag{

    display:inline-block;

    padding:.7rem 1.2rem;

    border-radius:999px;

    background:#f1f1f1;

    color:var(--primary);

    font-weight:600;

    margin-bottom:1.5rem;

}

.hero-text h1{

    font-size:
    clamp(
        3.5rem,
        6vw,
        5rem
    );

    line-height:1.05;

    font-weight:800;

    letter-spacing:-2px;

    margin-bottom:1.8rem;

}

.hero-text p{

    color:var(--gray);

    line-height:1.9;

    font-size:1.08rem;

}



/* =====================================================
   TARJETA CONTACTO
===================================================== */

.hero-contact-card{

    background:white;

    border-radius:28px;

    padding:2.8rem;

    box-shadow:
    0 15px 45px rgba(0,0,0,.08);

    display:flex;

    flex-direction:column;

    gap:2rem;

}

.quick-item{

    display:flex;

    gap:1.2rem;

    align-items:flex-start;

}

.quick-item:not(:last-child){

    padding-bottom:1.8rem;

    border-bottom:1px solid #ececec;

}

.quick-icon{

    width:58px;
    height:58px;

    border-radius:16px;

    background:rgba(139,0,0,.08);

    display:flex;
    align-items:center;
    justify-content:center;

    flex-shrink:0;

}

.quick-icon svg{

    width:26px;
    height:26px;

    stroke:var(--primary);

    stroke-width:2;

}

.quick-item span{

    display:block;

    font-size:.85rem;

    color:var(--gray);

    margin-bottom:.45rem;

    font-weight:600;

    text-transform:uppercase;

    letter-spacing:.8px;

}

.quick-item a{

    display:block;

    color:#111;

    font-weight:600;

    margin-bottom:.35rem;

    transition:.3s;

}

.quick-item a:hover{

    color:var(--primary);

}

.quick-item p{

    color:var(--gray);

    line-height:1.7;

}

/* =====================================================
   FORMULARIO
===================================================== */

.contact-form-section{

    background:#fafafa;

}

.form-wrapper{

    max-width:950px;

    margin:auto;

    background:white;

    border-radius:28px;

    padding:4rem;

    box-shadow:
    0 18px 45px rgba(0,0,0,.07);

}

.form-wrapper h2{

    text-align:center;

    font-size:2.4rem;

    margin-bottom:.8rem;

}

.form-subtitle{

    text-align:center;

    color:var(--gray);

    max-width:650px;

    margin:auto;

    margin-bottom:3rem;

    line-height:1.8;

}



/* =====================================================
   GRID DEL FORMULARIO
===================================================== */

.contact-form{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:1.8rem;

}

.form-group{

    display:flex;

    flex-direction:column;

}

.form-group label{

    font-weight:600;

    margin-bottom:.7rem;

    color:#222;

}



/* =====================================================
   INPUTS
===================================================== */

.form-group input,

.form-group select,

.form-group textarea{

    width:100%;

    padding:1rem 1.2rem;

    border-radius:14px;

    border:1px solid #ddd;

    background:#fff;

    font-size:1rem;

    font-family:inherit;

    transition:.35s;

}

.form-group textarea{

    resize:vertical;

    min-height:180px;

}

.form-group input:focus,

.form-group select:focus,

.form-group textarea:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:
    0 0 0 4px rgba(139,0,0,.08);

}



/* =====================================================
   CAMPOS GRANDES
===================================================== */

.form-group:nth-child(5){

    grid-column:1/-1;
}

.checkbox{
    grid-column:1/-1;
    flex-direction:row;
    align-items:center;
    gap:.8rem;
    margin-top:-.3rem;
}

.checkbox input{
    width:18px;
    height:18px;
    accent-color:var(--primary);
}

.checkbox label{
    margin:0;
    font-weight:500;
    color:var(--gray);
}



/* =====================================================
   BOTÓN
===================================================== */

.contact-form button{

    grid-column:1/-1;

    justify-self:center;

    margin-top:1rem;

    cursor:pointer;

    border:none;

    background:var(--primary);

    color:white;

    padding:1rem 2.6rem;

    border-radius:14px;

    font-size:1rem;

    font-weight:700;

    transition:.35s;

}

.contact-form button:hover{

    transform:translateY(-4px);

    box-shadow:
    0 10px 30px rgba(139,0,0,.30);

}



/* =====================================================
   MENSAJES
===================================================== */

.form-message{

    margin-top:2rem;

    text-align:center;

    font-weight:600;

    display:none;

}

.success-message{

    color:#198754;

}

.error-message{

    color:#dc3545;

}
/* =====================================================
   MAPA
===================================================== */

.map-section{

    background:#ffffff;

}

.section-center{

    text-align:center;

    max-width:700px;

    margin:0 auto 3rem;

}

.section-center h2{

    font-size:2.5rem;

    margin-bottom:1rem;

}

.section-center p{

    color:var(--gray);

    line-height:1.8;

}

.map-container{

    overflow:hidden;

    border-radius:24px;

    box-shadow:
    0 15px 40px rgba(0,0,0,.08);

}

.map-container iframe{

    width:100%;

    height:500px;

    display:block;

    border:0;

}



/* =====================================================
   CTA
===================================================== */

.cta-section{

    background:#fafafa;

}

.cta-card{

    background:
    linear-gradient(
        135deg,
        #8B0000,
        #650000
    );

    color:white;

    border-radius:28px;

    padding:3.5rem 4rem;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:3rem;

    box-shadow:
    0 20px 45px rgba(139,0,0,.22);

}

.cta-text{

    max-width:650px;

}

.cta-text h2{

    font-size:2.5rem;

    margin-bottom:1rem;

}

.cta-text p{

    line-height:1.8;

    opacity:.92;

}

.cta-card .btn-primary{

    flex-shrink:0;

    display:inline-flex;

    align-items:center;

    gap:.8rem;

    background:white;

    color:var(--primary);

    padding:1rem 2rem;

    border-radius:14px;

    font-weight:700;

    transition:.35s;

}

.cta-card .btn-primary:hover{

    transform:translateY(-4px);

    box-shadow:
    0 0 35px rgba(255,255,255,.35);

}



/* =====================================================
   FOOTER
===================================================== */

.footer{

    background:#111111;

    color:white;

    text-align:center;

    padding:4rem 0;

}

.footer h3{

    margin-bottom:1rem;

}

.footer p{

    opacity:.7;

}



/* =====================================================
   RESPONSIVE
===================================================== */

@media(max-width:900px){

    .contact-hero{

        grid-template-columns:1fr;

        gap:3rem;

    }

    .hero-text{

        max-width:100%;

    }

    .hero-text h1{

        font-size:2.9rem;

    }

    .form-wrapper{

        padding:2rem;

    }

    .contact-form{

        grid-template-columns:1fr;

    }

    .form-group:nth-child(5),

    .checkbox,

    .contact-form button{

        grid-column:auto;

    }

    .cta-card{

        flex-direction:column;

        text-align:center;

        padding:3rem 2rem;

    }

    .cta-text{

        max-width:100%;

    }

    .cta-text h2{

        font-size:2rem;

    }

    .map-container iframe{

        height:350px;

    }

}

@media(max-width:600px){

    .hero-text h1{

        font-size:2.4rem;

    }

    .section-center h2{

        font-size:2rem;

    }

    .form-wrapper{

        padding:1.5rem;

    }

    .quick-item{

        flex-direction:column;

        align-items:flex-start;

    }

    .quick-icon{

        margin-bottom:.5rem;

    }

}