
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600;700&family=Source+Code+Pro:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&family=Lato:wght@400;700&family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600&family=Source+Sans+Pro:wght@400;600;700&family=Inconsolata:wght@400;500;600&display=swap');

:root {
    --primary-color: #FF5722;
    --secondary-color: #212121;
    --light-color: #F5F5F5;
    --gray-color: #757575;
    --light-gray: #EEEEEE;
    --font-primary: 'Roboto Condensed', sans-serif;
    --font-secondary: 'Lato', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Arial', 'Helvetica Neue', sans-serif;
}

h1, h2, h3, h4 { font-family: var(--font-primary); }
body, p, span { font-family: var(--font-secondary); }
code, .technical { font-family: var(--font-mono); }

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--light-color);
    text-align: justify;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #f7f5f2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
}

/* Navigation Menu */
.desktop-nav {
    display: block;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav ul li {
    margin-left: 30px;
    position: relative;
}

.desktop-nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
    padding: 10px 0;
}

.desktop-nav ul li a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f7f5f2;
    min-width: 300px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%;
    left: -50px;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
}

.dropdown-content a {
    color: var(--secondary-color);
    padding: 12px 28px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #e8e6e3;
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown > a::after {
    content: ' ▼';
    font-size: 12px;
    margin-left: 5px;
}

.dropdown-content a:not(:last-child) {
    border-bottom: 1px solid #e0ddd8;
}

.dropdown-content {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--secondary-color);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.open span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f7f5f2;
    z-index: 999;
    padding-top: 80px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
}

.mobile-nav > ul {
    display: flex;
    flex-direction: column;
}

.mobile-nav ul li {
    border-bottom: 1px solid #e0ddd8;
    width: 100%;
}

.mobile-nav ul li a {
    display: block;
    padding: 20px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    width: 100%;
}

.mobile-nav ul li a:hover {
    background-color: #e8e6e3;
    color: var(--primary-color);
}

/* Mobile Submenu */
.mobile-submenu {
    display: none;
    background-color: #e8e6e3;
    flex-direction: column;
}

.mobile-submenu li {
    border-bottom: 1px solid #d0ccc7;
}

.mobile-submenu a {
    padding-left: 40px !important;
    font-size: 14px !important;
}

.mobile-dropdown.active .mobile-submenu {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown > a::after {
    content: ' +';
    float: right;
    font-size: 18px;
    line-height: 1;
}

.mobile-dropdown.active > a::after {
    content: ' -';
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: 
        linear-gradient(135deg, rgba(18, 18, 18, 0.7) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.7) 100%),
        url('img/background.jpg') center/cover;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

.hero-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.hero-content {
    max-width: 500px;
    text-align: left;
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-content h1 span {
    color: #ff6b35;
    position: relative;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #ffa726);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #E64A19;
}

.section {
    padding: 60px 0;
    scroll-margin-top: 70px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.about {
    background-color: white;
}

.vision-mission {
    background-color: white;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.vision-card, .mission-card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 3px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.vision-card h3, .mission-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.industries {
    background-color: white;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Nuevos estilos para tarjetas con imágenes */
.industry-card, .service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.industry-card:hover, .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    background-color: #e0e0e0;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 87, 34, 0.3), rgba(255, 152, 0, 0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.industry-card:hover .card-image::before,
.service-card:hover .card-image::before {
    opacity: 1;
}

.card-content {
    padding: 30px;
}

.industry-title, .service-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.card-text {
    color: var(--gray-color);
    line-height: 1.6;
}

.values {
    background-color: var(--light-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 30px;
    border-radius: 3px;
    background-color: white;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-title {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
}

.certifications {
    background-color: white;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.certification-card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 3px;
    text-align: center;
    transition: transform 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-5px);
}

.certification-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.politica-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact Section - Improved */
.contact {
    background: linear-gradient(135deg, #f7f5f2 0%, #e8e6e3 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ddd" opacity="0.3"/><circle cx="80" cy="80" r="1" fill="%23ddd" opacity="0.3"/><circle cx="40" cy="60" r="1" fill="%23ddd" opacity="0.3"/></pattern></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.5;
}

.contact-container {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff8a50);
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-weight: 700;
}

.contact-details {
    list-style: none;
}

.contact-item {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.contact-item:hover {
    background: #f0f0f0;
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.contact-icon {
    margin-right: 20px;
    font-size: 24px;
    color: var(--primary-color);
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text {
    flex: 1;
}

.contact-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    color: var(--gray-color);
    font-size: 16px;
    line-height: 1.4;
}

.contact-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: #E64A19;
    text-decoration: underline;
}

.business-hours {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.business-hours::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff8a50);
}

.business-hours h4 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
}

.business-hours p {
    color: var(--gray-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0 5px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    .historia-imagen img {
        height: 100%;
    }

    .header-content {
        justify-content: space-between;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-bottom: 60px;
        background:
            linear-gradient(135deg, rgba(18, 18, 18, 0.7) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.7) 100%),
            url('img/background.jpg') right center/cover;
    }

    .vision-mission-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-grid {
        gap: 40px;
    }

    .contact-info,
    .business-hours {
        padding: 30px 20px;
    }

    .contact-item {
        padding: 12px;
    }

    .contact-icon {
        font-size: 20px;
        margin-right: 15px;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 150px;
    }

    /* Asegurar que nav desktop esté oculto en móviles */
    nav.desktop-nav,
    nav.desktop-nav ul,
    nav.desktop-nav ul li {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .contact-info h3 {
        font-size: 24px;
    }

    .card-content {
        padding: 20px;
    }

    .industry-title, .service-title {
        font-size: 18px;
    }
}

/* Map Section Styles */
.map-section {
    margin-top: 60px;
    text-align: center;
}

.map-section .section-title h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.map-section .section-title h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.map-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: white;
}

.map-container iframe {
    display: block;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%) contrast(1.2);
}

.map-overlay {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 10;
}

.address-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: flex-start;
    max-width: 350px;
    transition: all 0.3s ease;
}

.address-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.address-icon {
    font-size: 24px;
    margin-right: 15px;
    color: var(--primary-color);
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.address-info p {
    color: var(--gray-color);
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.directions-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #ff8a50);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.directions-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 87, 34, 0.4);
    background: linear-gradient(135deg, #E64A19, var(--primary-color));
}

/* Brand Banner */
.brand-banner {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    border-top: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.brand-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.brand-banner h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-size: 24px;
    font-weight: 600;
}

.brand-scroll {
    display: flex;
    animation: scroll 40s linear infinite;
    gap: 80px;
    will-change: transform;
}

.brand-scroll:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 40px)); }
}

.brand-logo {
    min-width: 170px;
    height: 85px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    font-size: 14px;
    text-align: center;
    padding: 0 15px;
    flex-shrink: 0;
}

.brand-logo img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.industries{
    padding: 120px 0 80px 0; /* Espacio superior para header fijo */
}

.historia-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.historia-text p {
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    font-family: var(--font-secondary);
}

.historia-imagen {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.historia-imagen img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .historia-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .historia-imagen {
        order: -1;
    }

    .historia-imagen img {
        height: 100%;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .timeline-item {
        padding-left: 30px;
    }
}