/* =====================================================
   RESET
===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    /* Le indica al navegador que reserve 120px por la barra fija y de espacio */
    scroll-padding-top: 120px;
}

body{
    font-family:Inter,Arial,Helvetica,sans-serif;
    background:#ffffff;
    color:#1f2937;
}

img{
    display:block;
    max-width:100%;
}

a{
    text-decoration:none;
}

/* =====================================================
   CONTENEDOR
===================================================== */

.container{
    width:100%;
    max-width:1320px;
    margin-left:auto;
    margin-right:auto;
    padding-left:32px;
    padding-right:32px;
}


/* =====================================================
   SECCIONES
===================================================== */

section {
    width: 100%;
    /* En lugar de flex, usamos padding vertical amplio para dar respiro */
    padding-top: 120px;
    padding-bottom: 120px;
}

/* =====================================================
   NAVBAR
===================================================== */

#navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:96px;
    background:#ffffff;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    z-index:9999;
}

.navbar-container{
    max-width:1320px;
    height:96px;
    margin:0 auto;
    padding:0 32px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    height:100%;
    display:flex;
    align-items:center;
}

.logo img{
    height:95%;
    width:auto;
    object-fit:contain;
    transition:transform .25s ease;
}

.logo:hover img{
    transform:scale(1.03);
}

/* =====================================================
   MENÚ ESCRITORIO
===================================================== */

.desktop-menu{
    display:flex;
    align-items:center;
    gap:40px;
}

.desktop-menu a{
    position:relative;
    display:inline-block;
    color:#1f2937;
    font-size:16px;
    font-weight:600;
    text-decoration:none;
    transition:color .25s ease, transform .25s ease;
}

.desktop-menu a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:2px;
    background:#c8102e;
    border-radius:2px;
    transition:width .25s ease;
}

.desktop-menu a:hover{
    color:#c8102e;
    transform:translateY(-2px);
}

.desktop-menu a:hover::after{
    width:100%;
}

/* =====================================================
   BOTÓN MÓVIL
===================================================== */

.mobile-button{
    display:none;
    border:none;
    background:none;
    font-size:34px;
    cursor:pointer;
}

/* =====================================================
   MENÚ MÓVIL
===================================================== */

.mobile-menu{
    display:none;
    background:#ffffff;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.mobile-menu.active{
    display:block;
}

.mobile-menu a{
    display:block;
    padding:18px 32px;
    color:#1f2937;
    border-bottom:1px solid #ececec;
    font-weight:600;
}

.mobile-menu a:hover{
    color:#c8102e;
}

/* =====================================================
   HERO
===================================================== */

#inicio{
    padding-top:96px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width:1024px){

    .desktop-menu{
        display:none;
    }

    .mobile-button{
        display:block;
    }

}
/* =====================================================
   ESPACIADO Y TIPOGRAFÍA (Nuestra Empresa / Secciones)
===================================================== */

/* Separación para el subtítulo en rojo "NUESTRA EMPRESA" */
#empresa-detalle span.uppercase {
    display: block;
    margin-bottom: 24px; /* <--- Controla el espacio entre "Nuestra empresa" y el título */
}

/* Espaciado para el título H2 */
#empresa-detalle h2 {
    margin-bottom: 32px; /* Espacio con el párrafo inferior */
    line-height: 1.2;
}

/* Espaciado para títulos H3 (Nuestra trayectoria, Proceso, etc.) */
#empresa-detalle h3 {
    margin-bottom: 48px;
    line-height: 1.2;
}

/* Espaciado de los bloques principales dentro de la sección */
#empresa-detalle .my-32 {
    margin-top: 100px;
    margin-bottom: 100px;
}
/* =====================================================
   SECCIÓN HERO / INICIO
===================================================== */

/* Ajusta el Hero para ocupar la pantalla entera restando la barra fija */
#inicio {
    position: relative;
    margin-top: 96px; /* Empuja el hero debajo del navbar de 96px */
    min-height: calc(100vh - 96px); /* Ocupa el alto exacto disponible de la pantalla */
    #inicio {
    background-color: #ffffff; /* Fuerza el fondo a blanco */
}
    background-size: contain !important; /* Muestra la imagen completa sin recortar nada */
    background-position: center !important;
    background-repeat: no-repeat !important;
    
    display: flex;
    align-items: center;
}

/* Capa de superposición (Overlay oscuro) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35); /* Capa oscura para leer mejor el texto */
    z-index: 1;
}

/* Asegura que el contenido quede por encima de la capa oscura */
#inicio .container {
    position: relative;
    z-index: 2;
}
/*======================================================
CONTACTO
======================================================*/

#contacto{

    padding:120px 0;

    background:#ffffff;

}

.contact-header{

    max-width:760px;

    margin:0 auto 80px;

    text-align:center;

}

.contact-header span{

    display:block;

    color:#c8102e;

    font-size:14px;

    font-weight:700;

    letter-spacing:5px;

    text-transform:uppercase;

    margin-bottom:20px;

}

.contact-header h2{

    font-size:48px;

    font-weight:800;

    color:#222;

    margin-bottom:25px;

}

.contact-header p{

    font-size:18px;

    color:#666;

    line-height:1.8;

}

.contact-wrapper{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:70px;

}

.contact-form{

    flex:0 0 58%;

    display:flex;

    justify-content:center;

}

.contact-form form{

    width:100%;

    max-width:650px;

}

.contact-form input,
.contact-form textarea{

    width:100%;

    padding:18px 22px;

    margin-bottom:20px;

    border:1px solid #d7d7d7;

    border-radius:10px;

    font-size:16px;

    font-family:inherit;

}

.contact-form textarea{

    resize:vertical;

}

.contact-form input:focus,
.contact-form textarea:focus{

    outline:none;

    border-color:#c8102e;

}

.contact-form button{

    background:#c8102e;

    color:#fff;

    border:none;

    padding:18px 40px;

    border-radius:10px;

    font-size:16px;

    font-weight:700;

    cursor:pointer;

    transition:.3s;

}

.contact-form button:hover{

    background:#a70d27;

}

.contact-info{

    flex:0 0 42%;

}

.info-card{

    margin-bottom:35px;

}

.info-card h3{

    font-size:19px;

    margin-bottom:12px;

    color:#c8102e;

}

.info-card p{

    color:#666;

    line-height:1.8;

}

.info-card a{

    color:#666;

    transition:.3s;

}

.info-card a:hover{

    color:#c8102e;

}

.contact-map{

    margin-top:80px;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 15px 40px rgba(0,0,0,.12);

}

.contact-map iframe{

    width:100%;

    height:420px;

    border:0;

}

/*======================================================
RESPONSIVE
======================================================*/

@media(max-width:992px){

    .contact-wrapper{

        flex-direction:column;

    }

    .contact-form,
    .contact-info{

        flex:100%;

        width:100%;

    }

}
/*======================================================
TRABAJA CON NOSOTROS
======================================================*/

.careers-content h2{

    margin:25px 0 35px;

}

.careers-content p{

    margin-bottom:25px;

    line-height:1.8;

    color:#666;

    font-size:18px;

}

.careers-content .section-subtitle{

    display:block;

    margin-bottom:20px;

    color:#c8102e;

    font-weight:700;

    letter-spacing:5px;

    text-transform:uppercase;

}
/*======================================================
TÍTULOS DE SECCIÓN
======================================================*/

.section-subtitle{

    display:block;

    margin-bottom:30px;

    color:#c8102e;

    font-size:14px;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:6px;

}

.section-title{

    font-size:48px;

    font-weight:900;

    color:#1f2937;

    line-height:1.15;

    margin-bottom:40px;
    

}

.section-text{

    font-size:18px;

    line-height:2;

    color:#666;

    margin-bottom:30px;

}
.hero-location{
    margin-top:30px;
}

.hero-company{
    display:block;
    color:#666;
    font-size:25px;
    font-weight:800;
    line-height:1.3;
}

.hero-city{
    display:block;
    margin-top:8px;
    color:#666;
    font-size:25px;
    font-weight:500;
}
/*======================================================
CHATBOT
======================================================*/

#chatbot{

    position:fixed;

    right:30px;

    bottom:30px;

    z-index:99999;

    font-family:Inter,Arial,sans-serif;

}

/*==============================
BOTÓN
==============================*/

.chat-button{

    display:flex;

    align-items:center;

    gap:14px;

    background:#c8102e;

    color:#fff;

    border:none;

    border-radius:60px;

    padding:18px 24px;

    cursor:pointer;

    box-shadow:0 12px 35px rgba(0,0,0,.20);

    transition:.30s;

}

.chat-button:hover{

    background:#a90d27;

    transform:translateY(-3px);

}

.chat-icon{

    font-size:28px;

}

.chat-text{

    font-size:16px;

    font-weight:700;

    white-space:nowrap;

}

/*==============================
VENTANA
==============================*/

.chat-window{

    position:absolute;

    right:0;

    bottom:95px;

    width:390px;

    height:650px;

    background:#ffffff;

    border-radius:24px;

    overflow:hidden;

    box-shadow:0 20px 60px rgba(0,0,0,.20);

    display:none;

    flex-direction:column;

}

.chat-window.open{

    display:flex;

}

/*==============================
CABECERA
==============================*/

.chat-header{

    height:90px;

    background:#c8102e;

    color:#fff;

    padding:20px;

    display:flex;

    align-items:center;

    justify-content:space-between;

}

.chat-brand{

    display:flex;

    align-items:center;

    gap:15px;

}

.chat-brand img{

    width:52px;

    height:52px;

    object-fit:contain;

    background:#fff;

    border-radius:12px;

    padding:5px;

}

.chat-brand h3{

    font-size:19px;

    font-weight:800;

}

.chat-brand span{

    display:block;

    margin-top:4px;

    font-size:13px;

    opacity:.9;

}

.chat-close{

    border:none;

    background:none;

    color:#fff;

    font-size:24px;

    cursor:pointer;

}

/*==============================
MENSAJES
==============================*/

.chat-messages{

    flex:1;

    overflow-y:auto;

    padding:25px;

    background:#f6f7fb;

}

.message{

    margin-bottom:20px;

}

.message.user{

    text-align:right;

}

.message.bot{

    text-align:left;

}

.bubble{

    display:inline-block;

    max-width:85%;

    padding:16px 18px;

    border-radius:18px;

    line-height:1.7;

    font-size:15px;

}

.message.bot .bubble{

    background:#ffffff;

    color:#333;

    box-shadow:0 5px 18px rgba(0,0,0,.08);

}

.message.user .bubble{

    background:#c8102e;

    color:#fff;

}

.time{

    margin-top:8px;

    font-size:11px;

    color:#999;

}

/*==============================
BOTONES RÁPIDOS
==============================*/

.quick-actions{

    padding:16px;

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    background:#ffffff;

    border-top:1px solid #ececec;

}

.quick-btn{

    border:1px solid #d7d7d7;

    background:#fff;

    border-radius:25px;

    padding:10px 16px;

    cursor:pointer;

    font-size:13px;

    transition:.25s;

}

.quick-btn:hover{

    background:#c8102e;

    color:#fff;

    border-color:#c8102e;

}

/*==============================
ESCRIBIENDO
==============================*/

.typing{

    display:flex;

    gap:6px;

    padding:15px 20px;

}

.typing span{

    width:8px;

    height:8px;

    border-radius:50%;

    background:#bbb;

    animation:typing 1.2s infinite;

}

.typing span:nth-child(2){

    animation-delay:.2s;

}

.typing span:nth-child(3){

    animation-delay:.4s;

}

@keyframes typing{

    0%,100%{

        opacity:.3;

        transform:translateY(0);

    }

    50%{

        opacity:1;

        transform:translateY(-4px);

    }

}

/*==============================
INPUT
==============================*/

.chat-input{

    display:flex;

    border-top:1px solid #ececec;

    background:#fff;

}

.chat-input input{

    flex:1;

    border:none;

    padding:18px;

    font-size:15px;

    outline:none;

}

.chat-input button{

    width:70px;

    border:none;

    background:#c8102e;

    color:#fff;

    cursor:pointer;

    font-size:22px;

    transition:.25s;

}

.chat-input button:hover{

    background:#a90d27;

}

/*==============================
RESPONSIVE
==============================*/

@media(max-width:768px){

    #chatbot{

        right:15px;

        bottom:15px;

    }

    .chat-window{

        width:calc(100vw - 30px);

        height:70vh;

    }

    .chat-text{

        display:none;

    }

}