/* ==========================================================================
   CSS Variables & Tokens (Mobile First)
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #F29C38; /* Industrial Orange */
    --color-primary-hover: #D98327;
    
    --color-dark: #121214; /* Graphite Black */
    --color-dark-green: #17261F; /* Very Dark Industrial Green */
    --color-green-accent: #2E4C3D; /* Industrial Green */
    
    --color-steel-dark: #2D3748; /* Steel Gray Dark */
    --color-steel: #718096; /* Steel Gray Medium */
    --color-steel-light: #E2E8F0; /* Steel Gray Light */
    
    --color-bg: #FFFFFF;
    --color-bg-light: #F7FAFC;
    
    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #128C7E;
    
    --color-instagram: #E1306C;
    --color-instagram-hover: #C13584;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    
    /* Spacing: Optimizado para dar mucho aire en celular */
    --section-pad: 40px 0;
    
    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (min-width: 992px) {
    :root {
        /* Aún más espacio en resoluciones altas */
        --section-pad: 60px 0;
    }
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-steel-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-pad);
}

.bg-dark {
    background-color: var(--color-dark-green);
    color: white;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.text-white { color: white !important; }
.text-primary { color: var(--color-primary) !important; }
.text-center { text-align: center; }

.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.w-100 { width: 100%; }

.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.rounded-img { border-radius: var(--radius-lg); width: 100%; }

/* ==========================================================================
   Typography & Badges (Optimizados para Mobile)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: white; }

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem); /* Muy grande en celular, crece hasta 2.5rem en desktop */
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(242, 156, 56, 0.1);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.badge-light { background-color: rgba(255, 255, 255, 0.1); color: var(--color-primary); }
.badge-dark { background-color: rgba(0,0,0,0.05); color: var(--color-steel-dark); }

/* ==========================================================================
   Buttons (Mobile First: Bloques Anchos)
   ========================================================================== */
.btn {
    display: flex; /* Flex por defecto en mobile para centrar el contenido en bloques grandes */
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 18px; /* Pads grandes para touch */
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    width: 100%; /* Ocupan todo el ancho en celular */
}

.btn-lg {
    padding: 14px 20px;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .btn {
        width: auto; /* Se ajustan al contenido en desktop */
        display: inline-flex;
    }
}

.btn-primary { background-color: var(--color-primary); color: white; }
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(242, 156, 56, 0.3);
}

.btn-outline { background-color: transparent; border-color: white; color: white; }
.btn-outline:hover { background-color: white; color: var(--color-dark); }

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: white;
    justify-content: center;
    text-align: center;
}

@media (min-width: 768px) {
    .btn-whatsapp {
        justify-content: flex-start;
        text-align: left;
    }
}

.btn-whatsapp i { font-size: 2.2rem; }
.btn-whatsapp:hover {
    background-color: var(--color-whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-instagram {
    background-color: var(--color-instagram);
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.btn-instagram i { font-size: 1.8rem; }
.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(225, 48, 108, 0.3);
}

/* ==========================================================================
   Navigation (Mobile First)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background-color: rgba(23, 38, 31, 0.95); /* Fondo oscuro por defecto en móvil para buena visibilidad */
    backdrop-filter: blur(10px);
}

@media (min-width: 992px) {
    .navbar {
        background-color: transparent; /* Transparente al inicio en desktop */
        padding: 25px 0;
    }
    .navbar.scrolled {
        background-color: rgba(23, 38, 31, 0.95);
        padding: 15px 0;
        box-shadow: var(--shadow-sm);
    }
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 12px; color: white; }
.logo-img { height: 35px; width: auto; object-fit: contain; }
@media (min-width: 768px) { .logo-img { height: 45px; } }

.logo-text { font-size: 1.1rem; font-weight: 400; letter-spacing: 0.5px; }
.logo-text strong { font-weight: 800; color: var(--color-primary); }

.mobile-toggle {
    display: block; /* Visible por defecto en mobile */
    background: transparent;
    border: none;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 1001;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-dark-green);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nav-menu.active { right: 0; }

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 1.3rem; /* Textos grandes en móvil */
    position: relative;
}

.nav-link::after {
    content: ''; position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active { color: white; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Dropdown Base & Mobile Styling */
.nav-dropdown-wrapper {
    position: relative;
    width: 100%;
    text-align: center;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.nav-dropdown-wrapper.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    list-style: none;
    padding: 0 15px;
    margin: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease, margin 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-dropdown-wrapper.active .dropdown-menu {
    max-height: 200px;
    padding: 15px;
    margin-top: 10px;
}

.dropdown-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    color: var(--color-primary);
}

/* Desktop Navigation overrides */
@media (min-width: 992px) {
    .mobile-toggle { display: none; }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        align-items: center;
        gap: 30px;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 25px;
        margin-bottom: 0;
    }
    
    .nav-link { font-size: 0.95rem; font-weight: 500; }

    .nav-dropdown-wrapper {
        position: relative;
        width: auto;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
        visibility: hidden;
        background-color: var(--color-dark-green);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
        padding: 15px 0;
        width: 280px;
        box-shadow: var(--shadow-lg);
        max-height: none;
        overflow: visible;
        display: block;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        z-index: 100;
    }
    
    .nav-dropdown-wrapper:hover .dropdown-menu,
    .nav-dropdown-wrapper.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(5px);
        padding: 15px 0;
        margin-top: 0;
    }
    
    .dropdown-menu li {
        width: 100%;
    }
    
    .dropdown-menu a {
        font-size: 0.9rem;
        padding: 10px 20px;
        text-align: left;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--color-primary);
    }

    .nav-dropdown-wrapper:hover .dropdown-toggle i {
        transform: rotate(180deg);
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* FOTO DE FONDO DEL INICIO (Hero Background) */
    background-image: url('../assets/img/hero_bg.png');
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
    padding-top: 80px; /* Espacio para el navbar */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(23, 38, 31, 0.85) 0%, rgba(23, 38, 31, 0.95) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .hero-overlay {
        background: linear-gradient(to right, rgba(23, 38, 31, 0.95) 0%, rgba(23, 38, 31, 0.4) 100%);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center; /* Centrado en celular */
}

@media (min-width: 768px) {
    .hero-content { text-align: left; }
}

.hero-title {
    font-size: clamp(2.8rem, 10vw, 5rem); /* Título masivo y limpio */
    font-weight: 800;
    margin-bottom: 25px;
    color: white;
    line-height: 1.05;
}

.hero-title .highlight { color: var(--color-primary); }

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.15rem);
    font-weight: 300;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column; /* Apilados en celular */
    gap: 15px;
}

@media (min-width: 768px) {
    .hero-buttons { flex-direction: row; }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    display: none; /* Oculto en celular para limpiar */
}

@media (min-width: 768px) { .scroll-indicator { display: block; } }

.scroll-indicator i { font-size: 2rem; color: white; opacity: 0.7; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* ==========================================================================
   Grillas Globales (Mobile First = 1 Columna)
   ========================================================================== */
.about-container, 
.projects-content, 
.product-container, 
.contact-card, 
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

@media (min-width: 992px) {
    .about-container, 
    .projects-content, 
    .product-container { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
    
    .contact-card { grid-template-columns: 1fr 1fr; }
    .footer-container { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
}

@media (max-width: 991px) {
    .product-container {
        display: flex;
        flex-direction: column-reverse;
        gap: 40px;
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-list { margin-top: 30px; }

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--color-dark);
    font-size: 1.1rem;
}

.about-list i { color: var(--color-primary); font-size: 1.8rem; margin-top: 2px;}

.about-image-wrapper { position: relative; margin-top: 20px;}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: 20px;
    background-color: var(--color-primary);
    color: white;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (min-width: 768px) {
    .experience-badge { bottom: -30px; left: -30px; padding: 30px; }
}

.experience-badge .number { font-size: 2.5rem; font-weight: 800; line-height: 1; }
@media (min-width: 768px) { .experience-badge .number { font-size: 3rem; } }

.experience-badge .text { font-size: 0.95rem; font-weight: 600; line-height: 1.2; }

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una columna en celular */
    gap: 25px;
}

@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); gap: 30px;} }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.service-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(242, 156, 56, 0.3);
}

.service-icon {
    width: 70px; height: 70px;
    background-color: rgba(242, 156, 56, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon { background-color: var(--color-primary); color: white; }
.service-title { font-size: 1.2rem; margin-bottom: 15px; }
.service-desc { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }

/* ==========================================================================
   Projects Section
   ========================================================================== */
.lead {
    font-size: 1.2rem;
    color: var(--color-steel-dark);
    margin-bottom: 40px;
    line-height: 1.7;
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una columna para el impacto en móvil */
    gap: 30px;
}

@media (min-width: 576px) { .impact-grid { grid-template-columns: 1fr 1fr; } }

.impact-item i { font-size: 2.2rem; margin-bottom: 15px; }
.impact-item h4 { font-size: 1.1rem; margin-bottom: 10px; }
.impact-item p { font-size: 0.95rem; color: var(--color-steel); }

/* ==========================================================================
   Product Section
   ========================================================================== */
.product-showcase { position: relative; padding: 20px; }

.product-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(242, 156, 56, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}

.product-render {
    position: relative; z-index: 2; width: 100%; max-width: 350px; margin: 0 auto; display: block;
    animation: float 6s ease-in-out infinite;
}

.product-desc { font-size: 1rem; margin-bottom: 40px; line-height: 1.7; }

.feature-item { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.feature-icon {
    width: 60px; height: 60px; flex-shrink: 0;
    background-color: white; color: var(--color-primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; box-shadow: var(--shadow-sm);
}

.feature-text h4 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-text p { font-size: 0.95rem; color: var(--color-steel); }

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 columna en celular para imágenes súper grandes y visibles */
    gap: 20px;
}

@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1/1; /* Cuadrado en móvil para ocupar más pantalla */
    background-color: var(--color-steel-light);
    cursor: pointer;
}

@media (min-width: 768px) { .gallery-item { aspect-ratio: 4/3; } }

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

.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(23, 38, 31, 0.9) 0%, rgba(23, 38, 31, 0) 50%);
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 20px;
    opacity: 1; transition: var(--transition);
}

.btn-gallery {
    transform: translateY(0); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 80%;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

@media (min-width: 992px) {
    .gallery-overlay {
        background: rgba(23, 38, 31, 0.8);
        align-items: center;
        padding-bottom: 0;
        opacity: 0;
    }
    
    .gallery-item:hover .gallery-overlay { opacity: 1; }
    
    .btn-gallery {
        transform: translateY(20px);
        width: auto;
        background-color: transparent;
        border-color: white;
    }
    
    .gallery-item:hover .btn-gallery { transform: translateY(0); }
    
    .btn-gallery:hover {
        background-color: white;
        color: var(--color-dark);
    }
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999; display: flex; align-items: flex-end; /* En celular el modal sale de abajo */
    justify-content: center; opacity: 0; pointer-events: none; transition: var(--transition);
    padding: 0;
}

@media (min-width: 768px) { .modal { align-items: center; padding: 20px; } }

.modal.active { opacity: 1; pointer-events: all; }

.modal-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(18, 18, 20, 0.9); backdrop-filter: blur(5px);
}

.modal-content {
    position: relative; background-color: var(--color-bg);
    width: 100%; max-width: 1000px; max-height: 90vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; /* Bordes redondeados solo arriba en celular */
    z-index: 10000; overflow-y: auto;
    transform: translateY(100%); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (min-width: 768px) {
    .modal-content {
        border-radius: var(--radius-lg);
        transform: translateY(30px) scale(0.95);
    }
}

.modal.active .modal-content { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute; top: 15px; right: 15px;
    background: rgba(0,0,0,0.05); border: none;
    width: 45px; height: 45px; border-radius: 50%;
    font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); z-index: 2; color: var(--color-dark);
}

.modal-close:hover { background: var(--color-primary); color: white; transform: rotate(90deg); }

.modal-body {
    display: grid;
    grid-template-columns: 1fr; /* Una columna por defecto en modal */
    gap: 30px;
    padding: 40px 24px;
}

@media (min-width: 992px) {
    .modal-body { grid-template-columns: 1fr 1fr; gap: 40px; padding: 50px; }
}

.modal-gallery img {
    width: 100%; max-height: 350px; object-fit: cover; border-radius: var(--radius-md);
}

@media (min-width: 992px) {
    .modal-gallery img { max-height: 500px; }
}

.modal-title { font-size: 1.8rem; margin-bottom: 20px; margin-top: 0; }
.modal-desc { color: var(--color-steel-dark); line-height: 1.8; font-size: 1rem; }

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-new-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

@media (min-width: 992px) {
    .contact-new-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-details {
    padding: 30px 20px;
    background-color: var(--color-bg-light);
}

@media (min-width: 768px) {
    .contact-details { padding: 50px; }
}

.contact-intro {
    font-size: 1rem;
    color: var(--color-steel-dark);
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid transparent;
    min-width: 0;
    width: 100%;
}

.contact-link-item span {
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
}

.contact-link-item i {
    font-size: 1.6rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-link-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.contact-link-item.whatsapp-link i { color: var(--color-whatsapp); }
.contact-link-item.instagram-link i { color: var(--color-instagram); }

.contact-location {
    display: flex;
    flex-direction: column;
}

.location-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 25px 20px;
    background-color: var(--color-dark-green);
    color: white;
}

@media (min-width: 768px) {
    .location-header { padding: 30px 40px; }
}

.location-header i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-top: 3px;
}

.location-header h4 {
    color: white;
    margin-bottom: 3px;
    font-size: 1.1rem;
}

.location-header p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.map-wrapper {
    flex-grow: 1;
    min-height: 250px;
}

@media (min-width: 768px) {
    .map-wrapper { min-height: 350px; }
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-dark-green);
    color: white;
    padding-top: 50px;
}

.footer-logo .logo-text { font-size: 1.2rem; }
.footer-logo .logo-img { height: 40px; }
.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
    font-size: 0.9rem;
}

.footer h4 { margin-bottom: 15px; color: white; font-size: 1.1rem;}
.footer-links ul li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; }
.footer-links a:hover { color: var(--color-primary); }

.social-icons { display: flex; gap: 12px; margin-bottom: 20px; }
.social-icon {
    width: 40px; height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: white; font-size: 1.2rem; transition: var(--transition);
}
.social-icon:hover { background-color: var(--color-primary); transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0; text-align: center;
    color: rgba(255, 255, 255, 0.5); font-size: 0.85rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in { opacity: 0; transition: opacity 1s ease; }
.fade-up.visible, .fade-in.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* ==========================================================================
   Branches Section (Selector de Ramas)
   ========================================================================== */
.branches-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

@media (min-width: 992px) {
    .branches-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        margin-top: 0;
    }
}

.branch-card {
    background-color: var(--color-dark-green);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.branch-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
    border-color: var(--color-primary);
}

.branch-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .branch-img-wrapper { height: 250px; }
}

.branch-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.branch-card:hover .branch-img-wrapper img {
    transform: scale(1.05);
}

.branch-img-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(23,38,31,0.1) 0%, rgba(23,38,31,0.9) 100%);
}

.branch-content {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.branch-icon {
    width: 60px; height: 60px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: -55px auto 20px auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(242, 156, 56, 0.4);
}

.branch-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

@media (min-width: 992px) {
    .branch-title { font-size: 2.2rem; }
}

.branch-desc {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-bottom: 30px;
}

.btn-branch {
    background-color: transparent;
    border-color: white;
    color: white;
    margin-top: auto;
}

.branch-card:hover .btn-branch {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Sub-page Specific Styles */
.page-header {
    padding: 160px 0 80px;
    background-color: var(--color-dark-green);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(23, 38, 31, 0.4) 0%, rgba(23, 38, 31, 0.7) 100%);
    z-index: 1;
}

.header-sanitaria {
    background-image: url('../assets/img/projects-img.webp');
}

.header-industrial {
    background-image: url('../assets/img/gallery-2.webp');
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    line-height: 1.8;
}

.list-section {
    padding: 60px 0;
}

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

@media (min-width: 768px) {
    .list-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

.list-item {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: var(--transition);
}

.list-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.list-item i {
    color: var(--color-primary);
    font-size: 1.8rem;
    flex-shrink: 0;
}

.list-item h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
    color: var(--color-dark);
}

.list-item p {
    color: var(--color-steel);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.location-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
}

.location-link:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-primary);
    color: white !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    transition: var(--transition);
    border: 1px solid var(--color-primary);
}

.btn-directions:hover {
    background-color: transparent;
    color: var(--color-primary) !important;
}

.btn-directions i {
    font-size: 1rem;
}

/* Responsive adjustments for narrow mobile devices */
@media (max-width: 480px) {
    .contact-details {
        padding: 20px 15px !important;
    }
    .contact-link-item {
        padding: 12px 15px !important;
        gap: 10px !important;
        font-size: 0.88rem !important;
    }
    .contact-link-item i {
        font-size: 1.4rem !important;
    }
    .location-header {
        padding: 20px 15px !important;
        gap: 10px !important;
    }
    .location-header i {
        font-size: 1.6rem !important;
        margin-top: 2px !important;
    }
    .btn-directions {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        margin-top: 10px !important;
    }
}