/* --- VARIABLES Y PALETA CORPORATIVA PREMIUM --- */
:root {
    --primario: #0b1329; /* Azul industrial profundo */
    --secundario: #1c2541; /* Azul noche para contrastes */
    --acento: #ff9f1c; /* Naranja/Ámbar de seguridad industrial de alta visibilidad */
    --exito: #25d366;
    --texto-oscuro: #1e293b;
    --texto-claro: #f8fafc;
    --fuente: 'Segoe UI', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente);
    color: var(--texto-oscuro);
    background-color: #fcfcfd;
    line-height: 1.6;
}

/* --- INTERACTIVIDAD Y BOTONES --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--acento);
    color: var(--primario);
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 2px solid var(--acento);
    box-shadow: 0 4px 12px rgba(255, 159, 28, 0.2);
}

.btn:hover {
    background-color: transparent;
    color: var(--acento);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 159, 28, 0.4);
}

.btn-secundario {
    display: inline-block;
    padding: 14px 32px;
    background-color: transparent;
    color: var(--texto-claro);
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    border: 2px solid var(--texto-claro);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-secundario:hover {
    background-color: var(--texto-claro);
    color: var(--primario);
    transform: translateY(-2px);
}

/* --- HEADER / NAVEGACIÓN --- */
header {
    background-color: var(--primario);
    padding: 20px 8%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.logo {
    color: var(--texto-claro);
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;         /* Hace que el logo y el texto se pongan de lado a lado */
    align-items: center;   /* Alinea perfectamente el logo al centro vertical del texto */
    gap: 12px;             /* Deja un espacio elegante de separación entre el logo y el texto */
}

.logo span {
    color: var(--acento);
}

/* NUEVA REGLA PARA CONTROLAR EL TAMAÑO DEL LOGO EN EL MENÚ */
.logo-img {
    height: 40px;          /* Define un alto ideal y sofisticado para que quepa en la barra */
    width: auto;           /* Mantiene las proporciones originales del logo sin deformarlo */
    object-fit: contain;
}

nav a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    transition: color 0.3s, border-bottom 0.3s;
    font-size: 0.95rem;
    padding-bottom: 5px;
}

nav a:hover {
    color: var(--acento);
}

/* --- HERO CORPORATIVO CON CAROUSEL --- */
.hero {
    position: relative;
    padding: 150px 8% 130px 8%;
    color: var(--texto-claro);
    text-align: center;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Transición suave de fundido */
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Obliga al texto a estar siempre por encima de las fotos */
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--acento);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 45px;
    color: #cbd5e1;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- ESTRUCTURA DE SECCIONES --- */
.section-padding {
    padding: 100px 8%;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 60px;
    color: var(--primario);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background-color: var(--acento);
    margin: 15px auto 0 auto;
    border-radius: 3px;
}

.bg-alterno {
    background-color: #f1f5f9;
}

/* --- QUIÉNES SOMOS --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background-color: #ffffff;
    padding: 45px 35px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-bottom: 5px solid var(--secundario);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--acento);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primario);
    font-weight: 700;
}

/* --- SERVICIOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img {
    height: 240px;
    overflow: hidden;
    background-color: #cbd5e1;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.08);
}

.service-info {
    padding: 35px;
}

.service-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primario);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tag {
    background-color: #f8fafc;
    color: var(--secundario);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    border-left: 3px solid var(--acento);
}

/* --- NUEVA GALERÍA DE PROYECTOS (PORTAFOLIO INTERACTIVO) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 19, 41, 0.9), rgba(11, 19, 41, 0.4));
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: var(--texto-claro);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    color: var(--acento);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- ENFOQUE DUAL EMPRESA / INDIVIDUAL --- */
.dual-focus {
    background-color: var(--primario);
    color: var(--texto-claro);
}

.dual-focus .section-title {
    color: var(--texto-claro);
}

.dual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.dual-column {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 45px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dual-column h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--acento);
    font-weight: 700;
}

.dual-column ul li {
    margin-bottom: 18px;
    list-style: none;
    padding-left: 30px;
    position: relative;
}

.dual-column ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--acento);
    font-weight: 900;
}

/* --- CAPACIDAD TÉCNICA / NÚMEROS --- */
.stats-bg {
    background-color: var(--secundario);
    color: var(--texto-claro);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item h2 {
    font-size: 3rem;
    color: var(--acento);
    margin-bottom: 10px;
    font-weight: 800;
}

/* --- SECCIÓN DESCARGA BROCHURE --- */
.brochure-section {
    background: linear-gradient(rgba(255, 159, 28, 0.1), rgba(255, 159, 28, 0.05));
    text-align: center;
}

/* --- CONTACTO --- */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 60px 50px;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.06);
    text-align: center;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-box h4 {
    color: var(--primario);
    margin-bottom: 8px;
    font-size: 1.15rem;
}

/* --- FOOTER --- */
footer {
    background-color: #060a13;
    color: #64748b;
    padding: 50px 8%;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}

footer strong {
    color: var(--texto-claro);
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 20px; padding: 20px; }
    nav a { margin: 0 10px; font-size: 0.85rem; }
    .hero h1 { font-size: 2.3rem; }
    .hero p { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; }
    .section-padding { padding: 60px 5%; }
}
/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Icono simplificado en CSS para no recargar la página */
.btn-whatsapp::before {
    content: '';
    width: 28px;
    height: 28px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="white"><path d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"/></svg>') no-repeat center center;
    display: block;
}
/* --- ICONOS DE REDES SOCIALES --- */
.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.02);
}

.social-icon:hover {
    color: var(--acento);
    transform: translateY(-2px);
    border-color: var(--acento);
}

/* Ajuste para el footer */
.footer-socials {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-social-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-social-link:hover {
    color: var(--acento);
}