:root {
  /* Colors */
  --azul-noche: #0D1B2A;
  --naranja-obra: #FF6A00;
  --naranja-hover: #E65F00;
  --blanco: #FFFFFF;
  --gris-claro: #F4F4F4;
  --gris-medio: #E0E0E0;
  --text-dark: #1B263B;
  --text-muted: #415A77;
  
  /* Brand Accents */
  --accent: var(--naranja-obra);
  --accent-hover: var(--naranja-hover);
  
  /* Text */
  --text-white: #FFFFFF;
  
  /* Utilities */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 12px 24px rgba(13, 27, 42, 0.12);
  --radius: 4px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--blanco);
    color: var(--text-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%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* Typography */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 1.5rem; }
h2 { font-size: clamp(32px, 4vw, 42px); margin-bottom: 2rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }
.eyebrow { 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    font-weight: 700; 
    letter-spacing: 0.1em; 
    color: var(--naranja-obra); 
    margin-bottom: 1rem; 
    display: block; 
}

/* Layout */
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.section { 
    padding: 4rem 0; 
    scroll-margin-top: 70px; 
}
.bg-soft { background-color: var(--gris-claro); }
.w-full { width: 100%; }

/* Mobile Utilities */
.mobile-only { display: none; }
.mobile-hide { display: block; }

.mobile-scrollable-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 15px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.mobile-scrollable-chips::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

@media (max-width: 768px) {
    .mobile-only { display: block; }
    .mobile-hide { display: none !important; }
    
    /* Compact product cards */
    .product-card {
        padding: 1rem;
    }
    .product-card h3 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }
    .product-desc {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    .product-chip {
        margin-bottom: 0.5rem;
    }
    .product-meta {
        padding-top: 1rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}
.btn-primary {
    background-color: var(--naranja-obra);
    color: white;
}
.btn-primary:hover {
    background-color: var(--naranja-hover);
    color: white;
}
.btn-outline {
    background-color: transparent;
    border-color: var(--naranja-obra);
    color: var(--naranja-obra);
}
.btn-outline:hover {
    background-color: var(--naranja-obra);
    color: white;
}
.btn-whatsapp {
    background-color: transparent !important;
    border-color: #25D366 !important;
    color: #25D366 !important;
}
.btn-whatsapp:hover {
    background-color: #25D366 !important;
    color: #ffffff !important;
    border-color: #25D366 !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35) !important;
}
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* 1. HEADER */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background-color: #000000;
    color: white;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.main-logo {
    height: 32px;
    width: auto;
}
.footer-logo-img {
    height: 28px;
    width: auto;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.nav-links a {
    font-weight: 700;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.nav-links a:not(.btn):hover {
    color: var(--naranja-obra);
}
.nav-links .btn {
    letter-spacing: 0.05em;
    color: white;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: white;
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 80px; left: 0; right: 0; bottom: 0;
        background-color: #000000;
        flex-direction: column;
        padding: 4rem 2rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s ease;
    }
    .nav-links.open { transform: translateX(0); }
    .hamburger { display: flex; }
}

/* 2. HERO */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    padding-top: 60px;
    padding-bottom: 0;
    background-color: #000000;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 50%; height: 100%;
    background-image: linear-gradient(to right, #000000 0%, rgba(0, 0, 0, 0) 100%), url('../img/hero_professional.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.3;
}
.hero h1 { color: white; }
.hero-lead { color: #FFFFFF; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 800px;
    position: relative;
    z-index: 1;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 0 1.5rem;
}
.hero-lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
}
.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.operational-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.op-card {
    background-color: var(--blanco);
    padding: 2rem;
    border: 1px solid var(--gris-medio);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.op-card:hover {
    border-color: var(--naranja-obra);
    transform: translateY(-5px);
}
.op-icon {
    width: 48px;
    height: 48px;
    background-color: var(--gris-claro);
    color: var(--naranja-obra);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.op-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.op-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; font-weight: 600; }

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-lead { margin-inline: auto; }
    .hero-ctas { justify-content: center; }
    .hero::before { display: none; }
}

/* 3. QUICK BENEFITS HERO */
.quick-benefits-hero {
    background-color: #000000;
    padding: 1.75rem 0;
    color: white;
    width: 100%;
    z-index: 2;
    margin-top: auto;
    border: none;
}
.benefits-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #FFFFFF;
}
.benefit-item svg { color: var(--naranja-obra); }

@media (max-width: 768px) {
    .benefits-flex { justify-content: center; }
}

/* 4. SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.service-card {
    padding: 28px;
    border: 1px solid var(--gris-medio);
    background-color: var(--blanco);
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--naranja-obra);
}
    margin-bottom: 1.25rem;
    width: 28px;
    height: 28px;
}
.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.service-card p { color: var(--text-muted); font-size: 0.88rem; margin: 0; line-height: 1.5; }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* 5. STEPS */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}
.step-num {
    width: 40px;
    height: 40px;
    background-color: var(--naranja-obra);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.step p { font-size: 0.95rem; color: var(--text-muted); }

@media (max-width: 1024px) { .steps-container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps-container { grid-template-columns: 1fr; } }

/* 6. CATALOG */
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.filter-btn {
    padding: 0.6rem 1.25rem;
    background: var(--gris-claro);
    border: 1px solid var(--gris-medio);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background-color: var(--azul-noche);
    color: white;
    border-color: var(--azul-noche);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.product-card {
    border: 1px solid var(--gris-medio);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    background: white;
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--naranja-obra);
}
.product-chip {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    margin-bottom: 1rem;
    width: fit-content;
    border-radius: 4px;
}
.chip-pinturas-arquitectonicas { background: #e3f2fd; color: #1976d2; }
.chip-preparacion { background: #f3e5f5; color: #7b1fa2; }
.chip-impermeabilizacion { background: #e8f5e9; color: #388e3c; }
.chip-revestimientos-terminaciones { background: #fff3e0; color: #f57c00; }
.chip-adhesivos-selladores { background: #efebe9; color: #5d4037; }
.chip-hormigon-reparacion { background: #eceff1; color: #455a64; }
.chip-pisos-especiales { background: #f1f8e9; color: #689f38; }
.chip-herramientas { background: #fffde7; color: #fbc02d; }

.loading-catalog {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
    font-style: italic;
}
.product-desc { font-size: 0.9rem; color: var(--text-muted); flex-grow: 1; }
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gris-claro);
}

.hidden {
    display: none !important;
}
.product-badge { font-weight: 700; font-size: 0.8rem; }

.catalog-footer {
    margin-top: 4rem;
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--azul-noche);
    color: white;
    border-radius: var(--radius);
}
.catalog-footer h3 { margin-bottom: 1rem; }
.catalog-footer p { margin-bottom: 2rem; color: #FFFFFF; }

/* 7. CLIENTS */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.client-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--gris-medio);
}
.client-icon {
    width: 56px;
    height: 56px;
    background-color: var(--gris-claro);
    color: var(--naranja-obra);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
}
.client-card h3 { font-size: 1.1rem; }
.client-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* 8. CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.contact-list { margin-top: 2rem; }
.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 1.25rem;
    font-weight: 600;
}
.contact-list li::before {
    content: "→";
    color: var(--naranja-obra);
    font-weight: 800;
}

.contact-form-container {
    background-color: var(--blanco);
    padding: 3rem;
    border: 1px solid var(--gris-medio);
    box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.5rem; }
.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gris-medio);
    background: var(--gris-claro);
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--naranja-obra);
    background: white;
}
textarea.form-control { min-height: 120px; resize: vertical; }

@media (max-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .contact-form-container { padding: 2rem 1.5rem; }
}

/* FOOTER */
footer {
    background-color: var(--azul-noche);
    color: #FFFFFF;
    padding: 3rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 0; }

.footer-nav h4, .footer-contact h4 {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--naranja-obra);
    margin-bottom: 1rem;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a { 
    color: rgba(255,255,255,0.8); 
    font-size: 0.85rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
}
.footer-nav a:hover { color: var(--naranja-obra); }

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-social-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 600;
}
.footer-social-links i,
.footer-social-links svg {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}
.footer-social-links i {
    color: var(--naranja-obra);
}
.footer-social-links a:hover {
    color: white;
}
.footer-social-links a:hover i,
.footer-social-links a:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.footer-bottom a {
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    display: inline-block;
    margin-top: 2px;
}
.footer-bottom a:hover {
    color: var(--naranja-obra);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .footer-logo { justify-content: center; }
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-content {
    background: white;
    width: min(800px, 100%);
    padding: 3rem;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.modal-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none; border: none;
    font-size: 2rem; cursor: pointer;
    color: var(--text-muted);
}
.modal-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
.modal-image-container { background: var(--gris-claro); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.modal-category { color: var(--naranja-obra); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 1rem; display: block; }
.modal-tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--gris-claro); }
.tech-item h4 { font-size: 0.7rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.25rem; }
.tech-item p { font-weight: 800; font-size: 1rem; }

@media (max-width: 640px) { .modal-grid { grid-template-columns: 1fr; gap: 2rem; } .modal-content { padding: 2rem 1.5rem; } }

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 30px; 
    right: 30px;
    width: 64px; height: 64px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.4);
    z-index: 1500;
    transition: var(--transition);
}

@media (min-width: 1300px) {
    .whatsapp-float {
        right: calc((100% - 1200px) / 2);
    }
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 12px 24px rgba(37, 211, 102, 0.5); }
.whatsapp-float svg { width: 32px; height: 32px; fill: currentColor; }

.wa-tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--azul-noche);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.82rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }
@media (max-width: 768px) { .wa-tooltip { display: none; } }

/* NEW COMPONENTS */




.service-diferencial {
  font-size: 0.82rem;
  color: var(--naranja-obra);
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.steps-cta {
  text-align: center;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.steps-cta p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

.catalog-footer-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--gris-claro);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.catalog-footer-cta p {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 600;
  margin: 0;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  margin-top: -0.25rem;
}
/* NEW SECTIONS STYLES */
.problem-solution {
    background-color: var(--azul-noche);
    color: var(--blanco);
    padding: 4rem 0;
}
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}
.problem-text h2 {
    color: var(--blanco);
    font-size: clamp(2.25rem, 4.5vw, 3.15rem);
    margin-bottom: 2rem;
    line-height: 1.1;
}
.problem-content p {
    font-size: 1.25rem;
    color: #FFFFFF;
    line-height: 1.7;
    border-left: 4px solid var(--naranja-obra);
    padding-left: 2rem;
}

.materials-home-cta {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.materials-hero {
    background-color: #000000;
    color: white;
    padding: 140px 0 80px;
    text-align: center;
}
.materials-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}
.materials-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: rgba(255,255,255,0.8);
}
.materials-hero .hero-ctas {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    display: flex;
}

.closing-commercial {
    text-align: center;
    padding: 10rem 0;
    background-color: var(--azul-noche);
    color: white;
}
.closing-content {
    max-width: 800px;
    margin: 0 auto;
}
.closing-content h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}
.closing-content p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
}
.closing-ctas {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .problem-grid { grid-template-columns: 1fr; gap: 3rem; }
    .problem-text h2 { font-size: 2.25rem; }
    .need-intro { grid-template-columns: 1fr !important; gap: 2rem !important; text-align: center; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero::after { width: 100%; opacity: 0.2; background-image: linear-gradient(to top, #000000 30%, rgba(0, 0, 0, 0) 100%), url('../img/hero_professional.png'); }
    .hero-lead { margin-inline: auto; }
    .hero-ctas { justify-content: center; flex-direction: column; align-items: center; }
    .closing-ctas { flex-direction: column; }
    .materials-hero .hero-ctas { flex-direction: column; }
}
/* Nav Active Highlighting */
.nav-links a.active {
    color: var(--naranja-obra);
    position: relative;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 100%; height: 2px;
    background-color: var(--naranja-obra);
}

/* Catalog active tab in navigation */
.materials-page .nav-links a[href="materiales.html"] {
    color: var(--naranja-obra);
    position: relative;
}
.materials-page .nav-links a[href="materiales.html"]::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 100%; height: 2px;
    background-color: var(--naranja-obra);
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    :root {
        --section-padding: 2.5rem;
    }

    .section { padding: var(--section-padding) 0; }
    
    h1 { font-size: 32px; line-height: 1.2; }
    h2 { font-size: 28px; line-height: 1.2; margin-bottom: 1.5rem; }
    
    /* Header Mobile */
    .header-content { height: 60px; }
    .main-logo { height: 24px; }
    .nav-links { top: 60px; padding: 2.5rem 1.5rem; gap: 1.5rem; }
    .nav-links a { font-size: 0.9rem; width: 100%; text-align: center; }
    
    /* Hero Mobile */
    .hero { min-height: auto; padding-top: 80px; padding-bottom: 2rem; }
    .hero-grid { padding: 1.5rem 0; text-align: left; }
    .hero-lead { font-size: 1.1rem; margin-bottom: 1.5rem; }
    .hero-ctas { width: 100%; gap: 1rem; }
    .cta-buttons { width: 100%; flex-direction: column !important; gap: 1rem !important; }
    .cta-buttons .btn { width: 100%; }
    
    /* Quick Benefits */
    .quick-benefits-hero { padding: 1rem 0; }
    .benefits-flex { gap: 0.75rem; display: grid; grid-template-columns: 1fr 1fr; }
    .benefit-item { font-size: 0.8rem; gap: 6px; }
    .benefit-item svg { width: 16px; height: 16px; }
    
    /* Problem Section */
    .problem-solution { padding: 2.5rem 0; }
    .problem-grid { gap: 1.5rem; }
    .problem-text h2 { font-size: 24px; margin-bottom: 1rem; }
    .problem-content p { font-size: 1rem; padding-left: 1.25rem; }
    
    /* Services Section */
    .services-grid { gap: 1rem; }
    .service-card { padding: 1.5rem; }
    .service-icon-box { width: 24px; height: 24px; margin-bottom: 1rem; }
    .service-card h3 { font-size: 1.1rem; }
    
    /* How we work */
    .steps-container { gap: 1.5rem; margin-top: 2rem; }
    .step-num { width: 32px; height: 32px; font-size: 1rem; margin-bottom: 1rem; }
    .step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
    
    /* Materials Accordion */
    .mobile-accordion { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
    .mobile-accordion-item { padding: 1rem !important; border-radius: 4px; }
    .mobile-accordion-header { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
    .mobile-accordion-header::after {
        content: '+';
        font-size: 1.5rem;
        color: var(--naranja-obra);
        font-weight: 400;
        transition: transform 0.3s ease;
    }
    .mobile-accordion-item.active .mobile-accordion-header::after {
        content: '-';
        transform: rotate(180deg);
    }
    .mobile-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .mobile-accordion-item.active .mobile-accordion-content {
        max-height: 200px;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--gris-medio);
    }
    .need-card h3 { font-size: 1.05rem; margin: 0; }
    .need-card p { font-size: 0.9rem; }
    
    /* Materials section home shortened */
    .materials-home-cta { flex-direction: column; width: 100%; margin-top: 2.5rem; }
    .materials-home-cta .btn { width: 100%; }

    /* Materials page hero */
    .materials-hero { padding: 80px 0 40px; }
    .materials-hero h1 { font-size: 28px; }
    .materials-hero p { font-size: 1rem; margin-bottom: 2rem; }
    .materials-hero .hero-ctas { width: 100%; gap: 1rem; }
    .materials-hero .hero-ctas .btn { width: 100%; }

    /* Catalog */
    .filters { gap: 8px; margin-bottom: 2rem; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
    .filter-btn { flex-shrink: 0; padding: 0.5rem 1rem; font-size: 0.75rem; }
    .catalog-grid { gap: 1rem; }
    .product-card { padding: 1.25rem; }
    .product-card:not(.mobile-priority) { display: none; }
    .catalog-grid.show-all .product-card { display: flex; }
    /* Ensure filters still work with the mobile hiding */
    .catalog-grid .product-card.hidden { display: none !important; }
    
    .catalog-show-more.hidden { display: none; }
    
    /* Clients Collapsible */
    .mobile-collapsible-content { 
        max-height: 0; 
        overflow: hidden; 
        transition: max-height 0.5s ease; 
        display: flex; 
        flex-direction: column; 
        gap: 1rem; 
    }
    .clients-collapsible.open .mobile-collapsible-content { max-height: 2000px; }
    .client-card { padding: 1.5rem; }
    .client-icon { width: 40px; height: 40px; margin-bottom: 1rem; }
    
    /* Contact */
    .contact-grid { display: flex; flex-direction: column; gap: 2rem; }
    .contact-info { order: 1; }
    .contact-form-container { order: 2; padding: 1.5rem; }
    .contact-list li { font-size: 0.9rem; gap: 10px; }
    
    /* Closing Commercial */
    .closing-commercial { padding: 4rem 0; }
    .closing-content h2 { font-size: 26px; }
    .closing-content p { font-size: 1.1rem; margin-bottom: 2rem; }
    .closing-ctas { width: 100%; flex-direction: column; gap: 1rem; }
    .closing-ctas .btn { width: 100%; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; margin-bottom: 2.5rem; }
    .footer-logo { justify-content: center; }
    .footer-nav { align-items: center; }
    .footer-contact { text-align: center; }
    
    /* WhatsApp Float */
    .whatsapp-float { bottom: 20px; right: 20px; width: 56px; height: 56px; }
    .whatsapp-float svg { width: 28px; height: 28px; }
}

/* Catalog Pagination */
.catalog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.pag-btn {
    background: none;
    border: 1px solid var(--naranja-obra) !important;
    color: var(--naranja-obra) !important;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius);
}
.pag-btn:hover:not(:disabled) {
    background-color: var(--naranja-obra) !important;
    color: white !important;
}
.pag-btn:disabled {
    border-color: var(--gris-medio) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    opacity: 0.5;
}
.pag-btn svg {
    stroke: currentColor;
    transition: var(--transition);
}
.pag-info {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    min-width: 100px;
    text-align: center;
}

