/* =========================================
   ESTILOS EXCLUSIVOS: CONTACTO Y COTIZAR
   Archivo: css/contacto.css
   ========================================= */

/* 🌟 HERO BANNER INTERNO 🌟 */
.page-hero {
    position: relative;
    padding: 220px 0 100px 0; 
    text-align: center;
    color: white;
    overflow: hidden;
    border-bottom: 6px solid var(--mpc-green);
}

.page-hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}

.page-hero-bg img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17, 17, 17, 0.75); z-index: 1;
}

.relative-z { position: relative; z-index: 2; }

.pill-tag {
    background: var(--mpc-green); color: white; border: none; font-size: 0.9rem;
    padding: 8px 18px; border-radius: 30px; font-weight: 900; display: inline-block; margin-bottom: 20px;
}

.page-hero h1 {
    font-size: 3.8rem; font-weight: 900; margin-bottom: 20px; letter-spacing: 1px; color: #ffffff; 
}
.page-hero h1 .highlight-green { color: var(--mpc-green); }

/* Animaciones */
@keyframes smoothSlideUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}
.page-hero h1 .word-1 { display: inline-block; opacity: 0; animation: smoothSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s; }
.page-hero h1 .word-2 { display: inline-block; opacity: 0; animation: smoothSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s; }
.page-hero p {
    font-size: 1.15rem; max-width: 680px; margin: 0 auto; color: #e5e8eb; line-height: 1.6;
    opacity: 0; animation: smoothSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

/* 🌟 SECCIONES GLOBALES 🌟 */
.section-light { background-color: #f8fafc; padding: 90px 0; } 

/* 🌟 GRID DE CONTACTO (IZQ: PROCESO/RH, DER: FORMULARIO) 🌟 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

/* --- Columna Izquierda --- */
.contact-info-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.contact-info-col h2 {
    font-size: 2.5rem; color: var(--mpc-dark); font-weight: 900; margin-bottom: 15px; line-height: 1.1;
}

.contact-info-col .lead {
    font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 35px;
}

/* Timeline / Proceso de Cotización */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    margin-bottom: 20px; 
}

/* Línea conectora */
.process-timeline::before {
    content: '';
    position: absolute;
    left: 24px; 
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.t-icon {
    width: 50px; height: 50px;
    background-color: var(--mpc-green);
    color: white;
    font-size: 1.2rem;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px #f8fafc; 
}

.t-text h4 {
    font-size: 1.15rem;
    color: var(--mpc-dark);
    font-weight: 900;
    margin-bottom: 5px;
    margin-top: 5px; 
}

.t-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 🌟 CAJA DE RECURSOS HUMANOS / ENVIAR CV 🌟 */
.hr-box {
    margin-top: auto; 
    background-color: var(--mpc-gray);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--mpc-dark);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.hr-icon {
    font-size: 2.5rem;
    color: var(--mpc-dark);
    flex-shrink: 0;
}

.hr-content h4 {
    font-size: 1.25rem;
    color: var(--mpc-dark);
    font-weight: 900;
    margin-bottom: 10px;
}

.hr-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.hr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--mpc-dark);
    border: 2px solid var(--mpc-dark);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.3s;
}

.hr-btn:hover {
    background-color: var(--mpc-dark);
    color: white;
}

/* --- Columna Derecha (Formulario) --- */
.form-wrapper {
    background-color: #ffffff;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    height: 100%; 
}

.form-wrapper h3 {
    font-size: 1.8rem; color: var(--mpc-dark); font-weight: 900; margin-bottom: 30px;
    padding-bottom: 15px; border-bottom: 2px solid #f1f1f1;
}

.mpc-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.half-width { width: calc(50% - 10px); }
.full-width { width: 100%; }

.form-group label {
    font-size: 0.95rem; color: var(--mpc-dark); font-weight: 700; margin-bottom: 8px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 14px 18px; border: 1px solid #d1d5db; border-radius: 8px; font-family: inherit;
    font-size: 1rem; color: var(--text-main); background-color: #fafafa; transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--mpc-green); outline: none; background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 154, 68, 0.1);
}

.submit-btn {
    width: 100%; padding: 18px; background-color: var(--mpc-green); color: white;
    border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 900; cursor: pointer;
    transition: all 0.3s ease; margin-top: 10px; display: flex; justify-content: center; align-items: center; gap: 10px;
}

.submit-btn:hover {
    background-color: #008038; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 154, 68, 0.2);
}

/* =========================================
   MEDIA QUERIES (MOBILE RESPONSIVE)
   ========================================= */
@media (max-width: 992px) {
    /* Ajuste Anti-Desbordamiento del Hero */
    .page-hero { 
        padding: 150px 20px 70px 20px; 
        width: 100%; 
        max-width: 100vw; 
        box-sizing: border-box;
    }
    
    .page-hero h1 { 
        font-size: 2.5rem; 
        word-wrap: break-word; 
        hyphens: auto; 
    }
    
    .page-hero p { 
        font-size: 1.05rem; 
        padding: 0 10px; 
    }
    
    /* Contenedores principales */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .process-timeline::before {
        left: 20px;
    }
    
    .t-icon {
        width: 40px; height: 40px; font-size: 1rem;
    }
    
    .hr-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 20px;
    }
    
    .half-width { width: 100%; }
    
    .form-wrapper { 
        padding: 30px 20px; 
        width: 100%; 
        box-sizing: border-box; 
    }
}