/* --- VARIABLES GLOBALES --- */
:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;

    --bg-main: #FFFFFF;
    --bg-smoke: #F8F9FA;
    --bg-gray: #E0E0E0;

    --text-main: #111111; /* Contraste absoluto corporativo */
    --text-muted: #525252; /* Máxima legibilidad premium */

    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7; /* Mayor respirabilidad B2B */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; /* Suavidad en fuentes gruesas */
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --- CLASES UTILITARIAS --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-primary { color: var(--primary); }

.icon-small {
    font-size: 20px;
    margin-right: 6px;
    vertical-align: middle;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.15;
    text-wrap: balance;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- BOTONES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    outline: none;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.4);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

/* --- NAVBAR (MOBILE FIRST) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bg-gray);
    z-index: 3000;
    padding: 10px 0; /* Un poco más compacto */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1002;
}

.menu-toggle {
    display: block; /* Visible por defecto en móvil */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    z-index: 1002;
    transition: transform 0.3s ease;
}

/* Menú Estilo Slide desde la Derecha para Móvil (Rediseñado) */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    visibility: hidden;
    z-index: 4000;
}

.nav-links.nav-active {
    right: 0;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.mobile-menu-header .logo {
    font-size: 1.2rem;
    color: var(--primary);
}

.close-menu {
    background: var(--bg-smoke);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.close-menu:active {
    transform: scale(0.9);
    background-color: var(--bg-gray);
}

.nav-links li:not(.mobile-menu-header):not(.mobile-nav-cta) {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links.nav-active li:not(.mobile-menu-header):not(.mobile-nav-cta) {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation */
.nav-links.nav-active li:nth-child(2) { transition-delay: 0.1s; }
.nav-links.nav-active li:nth-child(3) { transition-delay: 0.2s; }
.nav-links.nav-active li:nth-child(4) { transition-delay: 0.3s; }
.nav-links.nav-active li:nth-child(5) { transition-delay: 0.4s; }
.nav-links.nav-active li:nth-child(6) { transition-delay: 0.5s; }

.nav-links a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s ease;
}

/* Ocultar iconos en desktop si no se desea */
.nav-links a span.material-symbols-outlined {
    font-size: 24px;
    color: var(--primary);
    opacity: 0.8;
}

.nav-links a:active {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.mobile-nav-cta {
    margin-top: auto;
    padding: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.nav-links.nav-active .mobile-nav-cta {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-cta .btn {
    width: 100%;
    padding: 16px;
}

.nav-cta {
    display: none; 
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Overlay para oscurecer fondo al abrir menú móvil */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding: 0;
    min-height: 80vh; /* Better fit for mobile devices */
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/hero_tools.png');
    background-size: cover;
    background-position: 80% center; /* Shifted to show more tools on vertical screens */
    background-attachment: scroll; /* Scroll for mobile compatibility */
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(2, 132, 199, 0.25) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding-top: 70px; 
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text .hero-title {
    font-size: 2.3rem; /* Slightly smaller for mobile to avoid awkward wraps */
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    color: #ffffff;
    opacity: 0;
    text-wrap: balance;
    transform: translateY(40px);
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.hero-text .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.35s;
}

.hero-actions {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
    display: flex;
    justify-content: center;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- POR QUÉ ELEGIRNOS (NUEVA SECCIÓN CORPORATIVA) --- */
.why-choose-us {
    padding: 60px 0; /* Consistently tight on mobile */
    background-color: var(--bg-smoke);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.benefit-card {
    background-color: var(--bg-main);
    padding: 40px 32px;
    border-radius: 20px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.06);
    border-color: rgba(2, 132, 199, 0.1);
}

/* Identidad Corporate Badge idéntico a bento grid */
.benefit-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(2, 132, 199, 0.08); 
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.08) rotate(4deg);
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.25);
}

.benefit-icon span { font-size: 28px; }

.benefit-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.benefit-card p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- BENTO GRID CATEGORIES --- */
.catalog-section {
    padding: 100px 0; /* Aumentado de 60px para más aire en móvil */
    background-color: var(--bg-main);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr; /* Móvil: 1 columna, todo apilado */
    gap: 32px; /* Aumentado de 24px para mejor respiro */
}

/* --- UNIFIED PRODUCT CARDS --- */
.bento-card {
    background-color: var(--bg-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow, opacity;
    backface-visibility: hidden;
    height: 100%;
    min-height: 280px;
    aspect-ratio: 4 / 3; /* Formato uniforme para todas las tarjetas */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.bento-card * {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .bento-card {
        aspect-ratio: 4 / 3;
        padding: 24px;
        min-height: 260px;
    }
}

/* --- CATEGORY BACKGROUNDS WITH OVERLAYS --- */
.bento-card.electricas {
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('assets/herramientas2.jpeg');
}

.bento-card.cerrajeria {
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('assets/cerrajeria2.jpeg');
}

.bento-card.plomeria {
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('assets/plomeria.jpeg');
}

.bento-card.jardineria {
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('assets/jardineria2.jpeg');
}

.bento-card.piletas {
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('assets/cat_piletas.png');
}

.bento-card.pintureria {
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('assets/cat_pintura.png');
}

.bento-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 2px 12px rgba(2, 132, 199, 0.04);
    border-color: rgba(2, 132, 199, 0.2);
    z-index: 10;
}

.icon-container {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.12); /* Estilo cristal/glassmorphism */
    backdrop-filter: blur(4px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .icon-container {
    transform: scale(1.1) rotate(6deg);
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.3);
}

.icon-container span { font-size: 32px; }

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #FFFFFF; /* Texto blanco para fondo oscuro */
    line-height: 1.2;
}

.bento-card p {
    color: rgba(255, 255, 255, 0.9); /* Blanco suavizado */
    font-size: 1rem;
    line-height: 1.6;
}



/* --- SOBRE NOSOTROS --- */
.about-section {
    padding: 60px 0; /* Standardized for mobile */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr; /* Móvil apilado */
    gap: 40px;
    align-items: center;
    text-align: left; /* CHANGED to perfectly left-align everything as requested */
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image:hover img {
    transform: scale(1.04);
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    width: fit-content;
    margin: 2rem 0 0 0; /* No auto, pure left alignment aligned with text */
}

.feature-label {
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #8bbce0;
    margin-bottom: 0px;
    margin-left: 0px; /* Aligns N with H2 and Icons */
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px; /* Smaller gap */
    font-weight: 500;
    font-size: 0.95rem; /* Smaller font */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature span.material-symbols-outlined {
    font-size: 20px; /* Smaller icon */
}

.feature:hover {
    transform: translateX(6px);
    color: var(--primary);
}

/* --- TESTIMONIOS --- */
.testimonials-section {
    padding: 60px 0; /* Compact mobile top/bottom spacing */
    background-color: var(--bg-smoke);
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-btn {
    background: transparent;
    color: #0169a1; /* Deeper celeste for better contrast */
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-btn span {
    font-size: 44px; /* Slightly larger icon */
    font-weight: 300; /* Increased weight from 200 for better visibility */
}

.carousel-btn:hover {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.carousel-btn.prev {
    left: -20px;
}

.carousel-btn.next {
    right: -20px;
}

/* Hide arrows on mobile by default to keep it clean, relying on swipe */
@media (max-width: 768px) {
    .carousel-btn.prev {
        left: 0px;
    }
    .carousel-btn.next {
        right: 0px;
    }
}

.testimonials-grid {
    display: flex;
    overflow: hidden; /* Oculta la barra y restringe el movimiento manual */
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding-bottom: 24px; /* Espacio para que no se corte la sombra */
    scroll-behavior: smooth;
    width: 100%; /* Fill container */
}

/* Ocultar barra en todos los navegadores */
.testimonials-grid::-webkit-scrollbar {
    display: none;
}
.testimonials-grid {
    -ms-overflow-style: none; /* IE y Edge */
    scrollbar-width: none; /* Firefox */
}

.testimonial-card {
    background-color: var(--bg-main);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    min-width: 300px;
    max-width: 360px;
    flex: 0 0 auto;
    scroll-snap-align: center;
    height: auto;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.stars {
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    gap: 4px;
}

.stars span { 
    font-size: 24px; 
    font-variation-settings: 'FILL' 1; /* Rellena el ícono para que sea sólido y visible */
    color: #0284c7; /* Asegurar color celeste primario */
}

.quote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 24px;
    flex-grow: 1; 
}

.author {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--text-main);
    color: var(--bg-main);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr; /* Móvil apilado */
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: var(--bg-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-brand .logo img {
    height: 35px;
    width: auto;
    display: block;
}

.footer-brand p {
    color: #A0A0A0;
    margin-bottom: 24px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.3);
}

.footer h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--bg-main);
}

.contact-item,
.hours-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #A0A0A0;
}

.contact-item span,
.hours-item span { color: var(--primary); margin-top: 2px; }

.hours-item ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    color: #A0A0A0;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.legal-links a:hover { color: var(--bg-main); }

/* --- FLOATING WHATSAPP BUTTON --- */
@keyframes pulseWpp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(2, 132, 199, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.fab-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--primary);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: pulseWpp 2s infinite;
}

.fab-whatsapp:hover {
    transform: translateY(-5px) scale(1.08);
    animation-play-state: paused;
    background-color: var(--primary-dark);
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.5);
}

.fab-whatsapp:active { transform: scale(0.95); }

/* Tooltip CRO Mejorado */
.fab-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fab-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.fab-whatsapp:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px; 
}

/* --- ANIMACIONES GLOBALES (FADE-IN) --- */
.fade-in {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.js .fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================================
   MEDIA QUERIES (MOBILE FIRST MIN-WIDTH)
   ======================================================== */

/* --- TABLETS (768px+) --- */
@media (min-width: 768px) {
    
    .section-header h2 { font-size: 2.5rem; }

    /* Navbar */
    .menu-toggle { display: none; }
    
    .nav-links {
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        align-items: center;
        gap: 24px;
        backdrop-filter: none;
    }

    /* Ocultar elementos móviles en desktop */
    .mobile-menu-header,
    .mobile-nav-cta,
    .nav-links a span.material-symbols-outlined {
        display: none;
    }

    .nav-links li:not(.mobile-menu-header):not(.mobile-nav-cta) {
        opacity: 1;
        transform: none;
    }

    .nav-links a {
        padding: 0;
        gap: 0;
    }

    .nav-cta {
        display: inline-flex;
    }

    .nav-links a { font-size: 0.95rem; }

    /* Hero */
    .hero {
        min-height: 100vh;
        background-attachment: fixed; /* Fixed background only for desktop */
        background-position: center;
    }
    .hero-text .hero-title { font-size: 3.8rem; }
    .hero-text .hero-subtitle { font-size: 1.25rem; }
    .hero-content { padding-top: 80px; }

    /* Why Choose Us */
    .why-choose-us { padding: 100px 0; }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Bento Grid */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .bento-card { padding: 32px; height: 100%; }
    .icon-container { width: 64px; height: 64px; }
    .bento-card h3 { font-size: 1.8rem; }

    /* Layout general a 2 columnas */
    .about-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    .features-list { 
        align-items: flex-start; 
        margin: 2rem 0 0 0; /* Perfectly flush with left margin */
        text-align: left;
    }
    .feature { flex-direction: row; }
    .feature-label { margin-left: 0; margin-right: 0; }

    /* Carousel Testimonios - No grid layout en Desktop */

    
    /* Standard Desktop Spacing */
    .why-choose-us { padding: 100px 0; }
    .catalog-section { padding: 100px 0; }
    .about-section { padding: 100px 0; }
    .testimonials-section { padding: 80px 0 120px; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: row; text-align: left; }
}

/* --- DESKTOP (992px+) --- */
@media (min-width: 992px) {
    
    .nav-links { gap: 32px; }

    .hero-text .hero-title { font-size: 4.5rem; }
    .hero-text .hero-subtitle { font-size: 1.35rem; }

    /* Why Choose Us */
    .why-choose-us { padding: 120px 0; }
    .benefits-grid { gap: 32px; }
    .benefit-card { padding: 48px 40px; }

    /* Bento Grid Asimétrico Perfecto -> Ahora Simétrico para 6+ tarjetas */
    .catalog-section { padding: 180px 0; }
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(180px, auto);
        gap: 48px; /* Aumentado para máxima legibilidad */
    }
    .bento-card h3 { font-size: 1.8rem; }

    .budget-block { padding: 80px 40px; border-radius: 24px; }

    /* No grid layout here for carousel */


    .footer-grid { grid-template-columns: 2fr 1.5fr 1.5fr; }
}

/* --- MONITORES EXTRA GRANDES (1400px+) --- */
@media (min-width: 1400px) {
    /* Hero distribuido para llenar los bordes sin verse vacío */
    .hero-content {
        max-width: 1200px;
    }
    
    .hero-text .hero-title {
        font-size: 5.5rem; 
    }

    .hero-text .hero-subtitle {
        max-width: 800px;
        font-size: 1.5rem;
    }
}

/* --- NAV ACTIONS --- */
.nav-actions-right {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1002;
}

.cart-toggle {
    background: none;
    border: none;
    position: relative;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.cart-toggle:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444; 
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* --- CART SIDEBAR (REFINADO) --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -105%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 5000;
    box-shadow: -20px 0 50px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 32px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cart-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.close-cart {
    background: var(--bg-smoke);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.close-cart:hover {
    background-color: var(--bg-gray);
    transform: rotate(90deg);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px 24px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
}

.cart-item-info h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.cart-item-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.cart-item-actions span {
    font-weight: 700;
    color: var(--primary-dark);
}

.btn-remove {
    background: rgba(239, 68, 68, 0.05);
    border: none;
    color: #ef4444;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

.cart-footer {
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.cart-total-container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cart-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.4;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.2);
}

.btn-checkout:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(2, 132, 199, 0.3);
}

/* --- Estado Vacío Premium --- */
.cart-empty-msg {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart-empty-msg span {
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.15;
    margin-bottom: 24px;
}

.cart-empty-msg p {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- ADD TO CART BUTTON (POLISHED) --- */
.btn-add-cart {
    margin-top: auto;
    width: 100%;
    background-color: transparent;
    color: var(--primary-dark); /* Más oscuro para contraste */
    border: 2px solid var(--primary); /* Más sólido para visibilidad */
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, background-color;
}

.btn-add-cart:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.2);
}

.btn-add-cart:active {
    transform: scale(0.96);
}

/* Responsive adjustment for cart */
@media (max-width: 480px) {
    .cart-sidebar {
        max-width: 100%;
    }
}

/* --- QUANTITY CONTROLS --- */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    background: var(--bg-smoke);
    width: fit-content;
    padding: 6px 12px;
    border-radius: 12px;
}

.btn-qty {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-main);
    line-height: 1;
}

.btn-qty:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.btn-qty:active {
    transform: scale(0.9);
}

.qty-value {
    font-weight: 700;
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}


