:root {
    --primary-color: #1a365d;
    --secondary-color: #0891b2;
    --accent-color: #25d366;
    --accent-secondary: #f59e0b;
    --background-color: #ffffff;
    --surface-color: #f8fafc;
    --text-color: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --box-shadow: 0 4px 20px rgba(26, 54, 93, 0.08);
    --box-shadow-hover: 0 8px 30px rgba(26, 54, 93, 0.15);
    --box-shadow-light: 0 2px 10px rgba(26, 54, 93, 0.05);
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #f8fafc;
    --white-color: #ffffff;
}

[data-theme="dark"] {
    --primary-color: #38bdf8;
    --secondary-color: #22d3ee;
    --accent-color: #25d366;
    --accent-secondary: #fbbf24;
    --background-color: #0f172a;
    --surface-color: #1e293b;
    --text-color: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --box-shadow-hover: 0 8px 30px rgba(56, 189, 248, 0.2);
    --box-shadow-light: 0 2px 10px rgba(0, 0, 0, 0.2);
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --card-bg: #1e293b;
    --header-bg: #1e293b;
    --footer-bg: #0f172a;
    --white-color: #ffffff;
}

/* ─── BASE ─────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -1rem auto 2.5rem auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

section {
    padding: 60px 0;
    position: relative;
}

.section-separator {
    height: 1px;
    border: none;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
    max-width: 1100px;
    margin: 0 auto;
}

/* ─── HEADER ───────────────────────────────────────────── */
header {
    background-color: var(--header-bg);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: background-color 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    max-height: 52px;
    width: auto;
    display: block;
}

header nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

header nav ul li {
    margin-left: 4px;
}

header nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--primary-color);
    background-color: var(--surface-color);
}

header nav ul li a.contact-trigger:hover {
    color: #ffffff;
    background-color: var(--primary-color);
}

/* Hamburger — oculto en desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
    flex-shrink: 0;
    color: var(--text-color);
    border-radius: 8px;
    transition: background-color 0.2s;
}

.nav-hamburger:hover {
    background-color: var(--surface-color);
}

.nav-hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999;
    backdrop-filter: blur(2px);
}
.nav-overlay.active { display: block; }

/* ─── HERO ─────────────────────────────────────────────── */
#hero {
    background-color: var(--surface-color);
    padding: 0;
    height: 90vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.hero-slider-container { width: 100%; height: 100%; }

.hero-swiper { width: 100%; height: 100%; }

.hero-swiper .swiper-slide {
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-swiper .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--overlay-bg);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem 3rem;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    backdrop-filter: blur(10px);
}

.hero-text {
    flex: 0 0 100%;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-text h1 {
    font-size: 3.2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.hero-text h1 .cursor {
    display: inline-block;
    background-color: #ffffff;
    margin-left: 8px;
    width: 4px;
    animation: blink 1s infinite;
}

.hero-text p {
    font-size: 1.2rem;
    margin: 20px auto;
    max-width: 600px;
}

.hero-swiper .swiper-pagination-bullet {
    background: rgba(255,255,255,0.8);
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #ffffff;
    opacity: 1;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #ffffff;
    --swiper-navigation-size: 30px;
    background-color: rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background-color: rgba(0,0,0,0.5);
}

/* ─── ANIMATIONS ───────────────────────────────────────── */
.animated { opacity: 0; }

.animated-h1.start-animation {
    animation: fadeInDown 0.8s 0.2s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
.animated-p.start-animation {
    animation: fadeInUp 0.8s 0.4s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
.animated-btn.start-animation {
    animation: fadeInUp 0.8s 0.6s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── BUTTONS ──────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    text-align: center;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}
.btn-secondary { background-color: var(--secondary-color); color: #ffffff; }
.btn-whatsapp  { background-color: var(--accent-color); color: #ffffff; }

/* ─── EQUIPOS ──────────────────────────────────────────── */
#equipos {
    background-color: var(--background-color);
    transition: background-color 0.3s ease;
}

.equipment-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 40px;
}

.equipment-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--box-shadow-light);
    overflow: hidden;
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.equipment-card.hidden-card { display: none; }

.equipment-card img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 16px;
}

.view-more-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.view-more-container .btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    text-align: center;
}

.view-more-container .btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.view-more-container .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

/* ─── BENEFICIOS ───────────────────────────────────────── */
#beneficios {
    background-color: var(--surface-color);
    transition: background-color 0.3s ease;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 40px;
}

.benefit-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--box-shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.benefit-item h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* ─── CLIENTES ─────────────────────────────────────────── */
#clientes {
    padding: 60px 0;
    background-color: var(--background-color);
    transition: background-color 0.3s ease;
}

.client-swiper {
    width: 100%;
    height: 110px;
}

.client-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-swiper .swiper-slide img {
    max-height: 110px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    padding: 10px;
    background: var(--card-bg);
    filter: grayscale(80%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-swiper .swiper-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ─── PROCESO ──────────────────────────────────────────── */
#proceso {
    background-color: var(--surface-color);
    transition: background-color 0.3s ease;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 40px;
    text-align: center;
}

.step { flex: 1; }

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h3 { color: var(--secondary-color); }

/* ─── CONTACT FORM ─────────────────────────────────────── */
#contacto { background-color: transparent; padding: 0; }

#contacto p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

#contact-form button { align-self: center; }

#form-feedback {
    max-width: 600px;
    margin: 20px auto 0 auto;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}
#form-feedback.success { background-color: #d4edda; color: #155724; }
#form-feedback.error   { background-color: #f8d7da; color: #721c24; }

/* ─── MODALS ───────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--overlay-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--box-shadow);
    transition: background-color 0.3s ease;
    width: 500px;
}

.modal-overlay.active .modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

.product-modal-content {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

#catalog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}
.filter-btn:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}
.filter-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.product-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.modal-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}
.close-modal:hover { color: var(--primary-color); }

.hidden { display: none; }

/* ─── FOOTER ───────────────────────────────────────────── */
footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    text-align: left;
    padding: 0;
    margin: 0;
    width: 100%;
    transition: background-color 0.3s ease;
}

footer .container { margin: 0; padding: 0; }

.footer-logo {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ─── FLOATING BUTTONS ─────────────────────────────────── */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whatsapp-flotante,
.contact-flotante {
    background-color: var(--accent-color);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
    z-index: 100;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.contact-flotante { background-color: var(--secondary-color); }

.whatsapp-flotante:hover,
.contact-flotante:hover {
    transform: scale(1.1);
    box-shadow: var(--box-shadow-hover);
}

/* ─── THEME TOGGLE ─────────────────────────────────────── */
.theme-toggle {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(180deg);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    fill: var(--text-color);
    transition: all 0.3s ease;
}
.theme-toggle:hover svg { fill: #ffffff; }

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="light"] .theme-toggle .moon-icon { opacity: 1; transform: rotate(0deg); }
[data-theme="light"] .theme-toggle .sun-icon  { opacity: 0; transform: rotate(180deg); }
[data-theme="dark"]  .theme-toggle .moon-icon { opacity: 0; transform: rotate(-180deg); }
[data-theme="dark"]  .theme-toggle .sun-icon  { opacity: 1; transform: rotate(0deg); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   ═══════════════════════════════════════════════════════ */

/* ── Tablet 768–1024 ── */
@media (max-width: 1024px) {
    .equipment-catalog {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    h2 { font-size: 2rem; }
}

/* ── Mobile ≤ 768px ── */
@media (max-width: 768px) {

    /* HEADER — flex row, logo left + hamburger right */
    header .container {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        padding: 0.6rem 1rem;
        flex-wrap: nowrap;
        gap: 0;
    }

    .logo img { max-height: 44px; }

    /* Ocultar nav normal; mostrar hamburguesa */
    .nav-hamburger { display: flex; }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75vw;
        max-width: 280px;
        height: 100dvh;
        z-index: 1000;
        overflow-y: auto;
        padding: 76px 1.5rem 2rem;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        background-color: var(--header-bg);
        border-left: 1px solid var(--border-color);
        box-shadow: none;
    }

    header nav.nav-open {
        right: 0;
        box-shadow: -8px 0 32px rgba(0,0,0,0.25);
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    header nav ul li {
        width: 100%;
        margin-left: 0;
        border-bottom: 1px solid var(--border-color);
    }

    header nav ul li a {
        display: block;
        width: 100%;
        padding: 0.9rem 0.5rem;
        font-size: 1rem;
        border-radius: 0;
    }

    header nav ul li:last-child {
        border-bottom: none;
        padding-top: 0.75rem;
    }

    header nav ul li button.theme-toggle {
        margin-left: 0;
        width: 42px;
        height: 42px;
    }

    /* HERO */
    #hero {
        height: auto;
        min-height: 65vw;
    }

    .hero-swiper .swiper-slide { min-height: 65vw; }

    .hero-container {
        align-items: flex-end;
        padding: 0 1rem 3rem;
        justify-content: center;
    }

    .hero-text-overlay {
        padding: 1rem 1.2rem;
        max-width: 100%;
        background: rgba(0,0,0,0.65);
    }

    .hero-text h1,
    #hero-headline {
        font-size: clamp(1rem, 4.5vw, 1.5rem) !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        overflow-wrap: break-word;
        hyphens: auto;
        margin-bottom: 0.5rem;
    }

    .hero-text p {
        font-size: clamp(0.75rem, 3vw, 0.9rem) !important;
        line-height: 1.5;
        margin: 0.4rem auto;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-text .btn {
        margin-top: 0.75rem;
        font-size: 0.82rem;
        padding: 0.5rem 1rem;
    }

    .swiper-pagination { bottom: 6px !important; }

    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 34px !important;
        height: 34px !important;
    }

    .hero-swiper .swiper-button-next::after,
    .hero-swiper .swiper-button-prev::after {
        font-size: 13px !important;
    }

    /* SECTIONS */
    section { padding: 40px 0; }

    h2 { font-size: clamp(1.3rem, 5.5vw, 1.8rem); }

    .section-subtitle { font-size: 0.95rem; }

    .container { padding-left: 1rem; padding-right: 1rem; }

    .section-separator { margin: 0; }

    /* EQUIPOS */
    .equipment-catalog {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .equipment-card {
        padding: 0.75rem;
        border-radius: 10px;
    }

    .equipment-card img {
        height: auto;
        max-height: none;
        aspect-ratio: 1;
        object-fit: contain;
        margin-bottom: 0.5rem;
        border-radius: 10px;
    }

    .equipment-card h3 {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
        line-height: 1.3;
    }

    .equipment-card p {
        font-size: 0.72rem;
        line-height: 1.4;
        color: var(--text-secondary);
    }

    .view-more-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .view-more-container .btn {
        width: 100%;
        text-align: center;
    }

    /* BENEFICIOS */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .benefit-item { padding: 1.25rem; }

    /* CLIENTES */
    .client-swiper { height: 80px; }

    .client-swiper .swiper-slide img {
        max-height: 60px;
    }

    /* PROCESO */
    .process-steps {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .step { padding: 1.25rem; }

    /* MODALS */
    .modal-content {
        width: 95vw;
        max-width: 95vw;
        max-height: 92dvh;
        padding: 1.5rem 1rem;
    }

    .product-modal-content {
        max-height: 92dvh;
        overflow-y: auto;
        padding: 1rem;
    }

    .modal-title { font-size: 1.3rem; margin-bottom: 1rem; }

    #catalog-filters {
        gap: 0.35rem;
        margin-bottom: 1rem;
        justify-content: flex-start;
    }

    .filter-btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.65rem;
    }

    .product-modal-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    /* FLOATING BUTTONS */
    .floating-buttons {
        bottom: 1rem;
        right: 1rem;
        gap: 0.65rem;
    }

    .whatsapp-flotante,
    .contact-flotante {
        width: 50px;
        height: 50px;
    }
}

/* ── Phones ≤ 480px ── */
@media (max-width: 480px) {
    .hero-text h1,
    #hero-headline {
        font-size: clamp(0.9rem, 4vw, 1.2rem) !important;
    }

    .equipment-catalog {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .equipment-card h3 { font-size: 0.75rem; }
    .equipment-card p  { font-size: 0.68rem; }

    .product-modal-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem;
    }
}
