/* =========================================
   DISEÑO CORPORATIVO REFINADO - EHH S.A.C.
   ========================================= */
:root {
    --azul-petroleo: #142B3B;
    --azul-acero: #233B4D;
    --gris-concreto: #F8F9FA; 
    --naranja-industrial: #F47721;
    --texto-oscuro: #2C3E50;
    --texto-claro: #6B7280;
    --blanco: #FFFFFF;
    --fuente-titulos: 'Outfit', sans-serif;
    --fuente-textos: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--fuente-textos);
}

body {
    background-color: var(--blanco);
    color: var(--texto-oscuro);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   CONTENEDOR MAESTRO
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%; 
}

/* --- HEADER CORPORATIVO --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

header.scrolled {
    background-color: rgba(20, 43, 59, 0.98);
    backdrop-filter: blur(10px); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    transition: padding 0.4s ease;
}

header.scrolled .header-content {
    padding: 15px 5%;
}

.logo-container img {
    height: 90px;
    transition: height 0.4s ease;
}

header.scrolled .logo-container img {
    height: 70px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

nav ul li a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--naranja-industrial);
    transition: width 0.3s ease;
}

nav ul li a:hover::after { width: 100%; }
nav ul li a:hover { color: var(--naranja-industrial); }

.btn-cotizacion {
    background-color: var(--naranja-industrial);
    color: var(--blanco) !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease !important;
}

.btn-cotizacion::after { display: none; }
.btn-cotizacion:hover { 
    background-color: #d1661b;
    transform: translateY(-2px); 
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 75vh; 
    min-height: 550px;
    background: linear-gradient(90deg, rgba(20, 43, 59, 0.95) 0%, rgba(20, 43, 59, 0.6) 60%, rgba(20, 43, 59, 0.2) 100%), 
                url('../portada/portada1.png');
    background-size: cover;
    background-position: center 80%; 
    display: flex;
    align-items: center;
    padding-top: 100px; 
}

.hero .container {
    display: flex;
    justify-content: flex-start;
}

.hero-content {
    max-width: 650px; 
    border-left: 3px solid var(--naranja-industrial);
    padding-left: 30px;
    animation: slideRight 1s ease forwards;
}

.hero-etiqueta {
    display: block;
    color: var(--naranja-industrial);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-family: var(--fuente-titulos);
}

/* TEXTO DE LA PORTADA EN BLANCO PURO CON SOMBRA */
.hero h2, .hero h1 {
    font-family: var(--fuente-titulos);
    color: var(--blanco) !important; 
    font-size: 3.2rem; 
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5); /* Sombra para resaltar */
}

.hero p {
    color: #D1D5DB;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 35px;
}

.hero-botones { display: flex; gap: 15px; }

.btn-principal, .btn-secundario {
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px; 
    transition: all 0.3s ease;
    font-family: var(--fuente-titulos);
}

.btn-principal {
    background-color: var(--naranja-industrial);
    color: var(--blanco);
    border: 2px solid var(--naranja-industrial);
}

.btn-secundario {
    background-color: transparent;
    color: var(--blanco);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-principal:hover { 
    background-color: #d1661b; 
    border-color: #d1661b;
    transform: translateY(-2px);
}
.btn-secundario:hover { 
    background-color: var(--blanco); 
    color: var(--azul-petroleo); 
    border-color: var(--blanco); 
    transform: translateY(-2px);
}

/* --- SECCIÓN NOSOTROS Y CONTADORES --- */
.nosotros {
    padding: 70px 0;
    background-color: var(--blanco);
}

.nosotros-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
    align-items: start;
}

.nosotros-titulo {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.nosotros-titulo h3 {
    font-family: var(--fuente-titulos);
    font-size: 2.5rem; 
    color: var(--azul-petroleo);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.5px;
    max-width: 900px;
}

.nosotros-texto p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--texto-claro);
    margin-bottom: 20px;
    text-align: justify;
}

.nosotros-imagen {
    background-image: url('../portada/variadas.png');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%; 
    min-height: 400px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Contadores Animados */
.estadisticas-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 40px;
    border-top: 1px solid #E5E7EB;
    padding-top: 25px;
    width: 100%;
}

.estadistica-item { 
    text-align: left;
    flex: 1; 
}

.estadistica-item span {
    font-family: var(--fuente-titulos);
    font-size: 2rem;
    font-weight: 700;
    color: var(--naranja-industrial);
    line-height: 1;
}

.estadistica-item p {
    font-size: 0.8rem;
    color: var(--texto-claro);
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.3;
}

/* --- SECCIÓN SERVICIOS --- */
.servicios {
    padding: 60px 0;
    background-color: var(--gris-concreto); 
}

.servicios-header {
    text-align: left;
    border-left: 4px solid var(--naranja-industrial);
    padding-left: 20px;
    margin-bottom: 40px;
}

.servicios-header h3 {
    font-family: var(--fuente-titulos);
    font-size: 2.2rem;
    color: var(--azul-petroleo);
    font-weight: 600;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.servicio-card {
    background-color: var(--blanco);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-bottom 0.4s ease;
    border-bottom: 3px solid transparent;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

.servicio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-bottom: 3px solid var(--naranja-industrial);
}

.servicio-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.servicio-card:hover .servicio-img {
    transform: scale(1.08);
}

.servicio-contenido {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.servicio-card h4 {
    font-family: var(--fuente-titulos);
    font-size: 1.25rem;
    color: var(--azul-petroleo);
    margin-bottom: 12px;
    font-weight: 600;
}

.servicio-card p {
    font-size: 0.9rem;
    color: var(--texto-claro);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
}

.servicio-link {
    color: var(--naranja-industrial);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.servicio-link:hover {
    gap: 12px;
}

/* --- SECCIÓN ¿POR QUÉ ELEGIRNOS? --- */
.porque-elegirnos {
    padding: 40px 0;
    background-color: var(--blanco);
}

.porque-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr; 
    gap: 50px;
    align-items: center;
}

.porque-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--blanco);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-top: 4px solid var(--naranja-industrial);
}

.etiqueta-pequena {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    color: var(--naranja-industrial);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.porque-intro h3 {
    font-family: var(--fuente-titulos);
    font-size: 2rem;
    color: var(--azul-petroleo);
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 600;
}

.porque-intro p {
    font-size: 0.95rem;
    color: var(--texto-claro);
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: justify;
}

.img-obrero {
    height: 180px;
    object-fit: contain;
    align-self: center; 
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15)); 
}

.porque-caracteristicas {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
}

.caracteristica-item {
    background-color: var(--gris-concreto);
    padding: 25px 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.caracteristica-item:hover {
    transform: translateY(-3px);
    background-color: var(--blanco);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.icono-titulo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.icono {
    font-size: 1.1rem;
    background-color: rgba(20, 43, 59, 0.08);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    flex-shrink: 0; 
}

.caracteristica-item h4 {
    font-family: var(--fuente-titulos);
    font-size: 1.05rem;
    color: var(--azul-petroleo);
    line-height: 1.3;
    font-weight: 600;
    margin: 0;
}

.caracteristica-item p {
    font-size: 0.85rem;
    color: var(--texto-claro);
    line-height: 1.6;
    text-align: justify;
    margin: 0;
}

/* --- SECCIÓN CLIENTES (CARRUSEL) --- */
.clientes {
    padding: 70px 0;
    background-color: #fafafa;
    border-top: 1px solid #EAEAEA;
    border-bottom: 1px solid #EAEAEA;
    overflow: hidden; 
}

.clientes-header {
    text-align: left;
    border-left: 4px solid var(--naranja-industrial);
    padding-left: 20px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.clientes-header h3 {
    font-family: var(--fuente-titulos);
    font-size: 2.2rem;
    color: var(--azul-petroleo);
    font-weight: 700;
    margin-bottom: 10px;
}

.clientes-header h3 span { color: #A0AEC0; }

.clientes-header p {
    font-size: 1rem;
    color: var(--texto-claro);
    font-weight: 500;
}

.carrusel-clientes {
    width: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
    height: 90px; 
    align-items: center;
}

.carrusel-track {
    display: flex;
    align-items: center;
    gap: 60px; 
    width: max-content;
    animation: scrollCarrusel 30s linear infinite;
}

.carrusel-track:hover {
    animation-play-state: paused;
}

.cliente-item {
    width: 140px; 
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.cliente-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
    filter: contrast(1.1); 
    opacity: 0.8;
    transition: all 0.3s ease;
}

.cliente-item:hover img {
    transform: scale(1.15);
    opacity: 1;
    filter: contrast(1);
}

@keyframes scrollCarrusel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* --- SECCIÓN CTA (Llamado a la acción) --- */
.cta-contacto {
    background: linear-gradient(rgba(20, 43, 59, 0.9), rgba(20, 43, 59, 0.9)), url('../portada/portada1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
    text-align: center;
    border-top: 4px solid var(--naranja-industrial);
}

.cta-content h2 {
    font-family: var(--fuente-titulos);
    font-size: 2.5rem;
    color: var(--blanco);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    color: #D1D5DB;
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-block;
    background-color: var(--naranja-industrial);
    color: var(--blanco);
    padding: 16px 35px;
    font-family: var(--fuente-titulos);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #d1661b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(244, 119, 33, 0.3);
}

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
}

.btn-whatsapp svg { width: 32px; height: 32px; }

.btn-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* --- ANIMACIONES --- */
@keyframes slideRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero h2, .hero h1 { font-size: 2.5rem; }
    .nosotros-grid-container { grid-template-columns: 1fr; gap: 40px; }
    .nosotros-imagen { height: 300px; min-height: 300px; }
    .servicios-grid { grid-template-columns: 1fr; }
    .porque-grid { grid-template-columns: 1fr; }
    .porque-caracteristicas { grid-template-columns: 1fr; }
    nav ul { display: none; }
}

@media (max-width: 768px) {
    .estadisticas-container { flex-direction: column; gap: 20px; text-align: center; }
    .estadistica-item { text-align: center; }
    .cta-content h2 { font-size: 1.8rem; }
}

/* =========================================
   MENÚ HAMBURGUESA PARA CELULARES
   ========================================= */

/* Ocultar el botón en computadoras */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--blanco);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mostrar el botón y ajustar el menú solo en celulares */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    /* Estilos para el menú desplegable en móvil */
    nav {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto a la derecha */
        width: 70%;
        height: 100vh;
        background-color: var(--azul-petroleo);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    /* Clase que activa el menú */
    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        display: flex; /* Aseguramos que se vea */
    }

    nav ul li a {
        font-size: 1.2rem;
    }

    /* Animación del botón a una "X" */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- ESTILO DESTACADO PARA WEBMAIL --- */
nav ul li a.link-webmail {
    background-color: transparent;
    color: var(--naranja-industrial) !important;
    border: 1.5px solid var(--naranja-industrial);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Quitamos la línea de subrayado animada que tienen los demás enlaces */
nav ul li a.link-webmail::after {
    display: none; 
}

/* Efecto al pasar el mouse */
nav ul li a.link-webmail:hover {
    background-color: var(--naranja-industrial);
    color: var(--blanco) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(244, 119, 33, 0.3);
}

/* Ajuste para que se vea bien en el menú de celulares */
@media (max-width: 992px) {
    nav ul li a.link-webmail {
        display: inline-flex;
        justify-content: center;
        padding: 12px 30px;
        font-size: 1.1rem;
    }
}