/* --- Variables y Reset --- */
:root {
    --primary-blue: #002B5C; /* Azul corporativo oscuro */
    --accent-color: #0066CC; /* Azul accent */
    --accent-light: #4D94FF; /* Azul claro */
    --gray-dark: #5A5A5A; /* Gris oscuro */
    --gray-light: #9E9E9E; /* Gris claro */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- Utilidades --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.d-block { display: block; }
.mb-5 { margin-bottom: 3rem; }

.subtitle {
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

/* --- Top Bar & Header --- */
.top-bar {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.contact-items span { margin-right: 20px; }
.contact-items i { margin-right: 8px; color: var(--accent-color); }

header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 { font-size: 2rem; color: var(--primary-blue); line-height: 1; }
.logo h1 span { color: var(--accent-color); }
.logo p { font-size: 0.7rem; letter-spacing: 1px; color: var(--text-light); }

header nav ul { display: flex; gap: 30px; align-items: center; }
header nav a { font-weight: 500; font-size: 1rem; }
header nav a:hover { color: var(--primary-blue); }

.btn-quote {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 4px;
}
.btn-quote:hover { background: #004080; }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, rgba(0, 43, 92, 0.85) 0%, rgba(0, 102, 204, 0.7) 100%), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 85vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(77, 148, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 204, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    pointer-events: none;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h2 {
    color: var(--accent-light);
    letter-spacing: 4px;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    animation: slideUp 0.8s ease-out 0.1s both;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 30px;
    letter-spacing: 3px;
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s ease-out 0.2s both;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 50px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    animation: slideUp 0.8s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease-out 0.4s both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: var(--white);
    padding: 18px 45px;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.05rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, #6DB3FF 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.4);
}

.btn-outline {
    border: 2.5px solid var(--white);
    color: var(--white);
    padding: 16px 45px;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.05rem;
    letter-spacing: 1px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    z-index: -1;
    transition: left 0.5s ease;
}

.btn-outline:hover::before {
    left: 0;
}

.btn-outline:hover {
    color: var(--white);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

/* --- Nosotros --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 20px; color: var(--primary-blue); }
.about-img img { width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.value-item { display: flex; align-items: center; gap: 10px; }
.value-item i { color: var(--accent-color); font-size: 1.5rem; }

/* --- Process --- */
.process-steps { display: flex; justify-content: space-between; margin-top: 50px; flex-wrap: wrap; gap: 30px;}
.step { flex: 1; min-width: 250px; padding: 20px; }
.step-icon {
    width: 80px; height: 80px; background: var(--primary-blue); color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin: 0 auto 20px;
    box-shadow: 0 0 0 10px rgba(0,43,92,0.1);
}
.step h3 { margin-bottom: 15px; color: var(--primary-blue); }

/* --- Industrial Services (Nueva estructura) --- */
.industrial-hero {
    background: linear-gradient(180deg, #f5f7fa 0%, #eef2f7 100%);
    position: relative;
    overflow: hidden;
}


.badge-tech {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #001f42 100%);
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 43, 92, 0.2);
}

.intro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.intro-text h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    line-height: 1.2;
    position: relative;
}

.intro-text h2::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

.lead-text {
    font-size: 1.1rem;
    color: #4a5568;
    margin: 40px 0;
    line-height: 1.8;
    max-width: 100%;
}

.intro-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-box {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 43, 92, 0.08);
    text-align: center;
    border-left: 5px solid var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: "";
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, transparent 70%);
    transition: right 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 43, 92, 0.15);
    border-left-color: var(--accent-light);
}

.stat-box:hover::before {
    right: -20%;
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
    transition: all 0.3s ease;
}

.stat-box:hover i {
    transform: scale(1.15) rotate(-5deg);
    color: var(--accent-light);
}

.stat-box span {
    display: block;
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.stat-box small {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8ecf1;
    animation: fadeIn 0.6s ease-in;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 43, 92, 0.12);
    border-color: var(--accent-color);
}

.card-header {
    padding: 30px 25px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 18px;
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.card-header i {
    font-size: 2.2rem;
    flex-shrink: 0;
}

/* Colores por categoría */
.bg-safety {
    background: linear-gradient(135deg, #c53030 0%, #a02d2d 100%);
    box-shadow: 0 10px 30px rgba(197, 48, 48, 0.2);
}

.bg-road {
    background: linear-gradient(135deg, var(--accent-color) 0%, #0055aa 100%);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
}

.bg-road h3, .bg-road i {
    color: var(--white);
}

.bg-tech {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #001f42 100%);
    box-shadow: 0 10px 30px rgba(0, 43, 92, 0.2);
}

.card-body {
    padding: 30px 25px;
}

.card-body > p {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tech-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tech-list li {
    font-size: 0.95rem;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: #4a5568;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.product-card:hover .tech-list li {
    padding-left: 30px;
}

.tech-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.product-card:hover .tech-list li::before {
    transform: scale(1.2);
    color: var(--accent-light);
}

.tech-list strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.mt-5 {
    margin-top: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .intro-text h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}
/* Nota: Los estilos .service-card han sido reemplazados por .product-card */

/* --- Publicidad --- */
.check-list li { margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.highlight-box {
    background: linear-gradient(135deg, #e8f1ff 0%, #f0f5ff 100%);
    border-left: 5px solid var(--accent-color);
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.1);
    transition: 0.3s;
}
.highlight-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.15);
}
.badge-new {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b7a 100%);
    color: white;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    vertical-align: middle;
    box-shadow: 0 3px 10px rgba(255, 71, 87, 0.3);
}

/* Estilos mejorados para Publicidad Integral */
#publicidad {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

#publicidad .subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
}

#publicidad h2 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

#publicidad h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

.tabs-container {
    animation: fadeIn 0.6s ease-in;
}

.gap-large { gap: 60px; }

.content-block {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.content-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.12);
}

.content-block h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-block h3 i {
    color: var(--accent-color);
    font-size: 2rem;
    background: rgba(0, 102, 204, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.content-block p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.check-list {
    margin-top: 20px;
    padding-left: 0;
}

.check-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: var(--text-light);
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.check-list li:last-child {
    border-bottom: none;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.check-list li:hover {
    padding-left: 35px;
    color: var(--primary-blue);
}

.check-list strong {
    color: var(--primary-blue);
}

.sub-service {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s;
}

.sub-service:hover {
    background: #f0f5ff;
    border-left-color: var(--accent-light);
}

.sub-service h4 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-service p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.sub-service small {
    color: var(--gray-light);
    font-style: italic;
    display: block;
    margin-top: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Clients --- */
.logos-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-top: 40px;
}
.client-logo {
    font-weight: 700; color: #ccc; font-size: 1.5rem; letter-spacing: 2px;
}

/* --- Footer --- */
footer { background: #002B5C; color: #bbb; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
footer h3 { color: var(--white); margin-bottom: 20px; font-size: 1.2rem; }
.contact-list li { margin-bottom: 15px; display: flex; gap: 10px; }
.contact-list i { color: var(--accent-color); margin-top: 5px; }
.copyright { border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 0.85rem; }

/* --- WhatsApp Float --- */
.float-whatsapp {
    position: fixed; bottom: 30px; right: 30px;
    background: #25d366; color: white; width: 60px; height: 60px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; box-shadow: 2px 2px 10px rgba(0,0,0,0.3); z-index: 2000;
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .grid-2 { grid-template-columns: 1fr; }
    header nav { display: none; } /* En producción agregarías un menú hamburguesa */
}