/* ========================================
   VARIABLES Y RESET
   ======================================== */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #f97316;
    --dark: #1e293b;
    --light: #f1f5f9;
    --white: #ffffff;
    --gray: #64748b;
}

/* box-sizing universal: cubre todos los elementos de una sola vez */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* overflow-x en un solo lugar; position:relative solo en body es suficiente */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* El pseudo-elemento ::after del nav-cta no debe mostrarse */
.nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 3px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    /* 100dvh usa el viewport dinámico real (excluye la barra del navegador en Android/iOS).
       El fallback 100vh mantiene compatibilidad con navegadores más viejos. */
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   BOTONES
   ======================================== */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

.hero-phone {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.hero-phone i {
    font-size: 2rem;
}

/* ========================================
   CARRUSEL DE IMÁGENES
   ======================================== */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 2 / 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease;
}

.carousel-dot.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

/* ========================================
   SECCIONES GENÉRICAS
   ======================================== */
.section {
    padding: 100px 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   SERVICIOS
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 2px solid transparent;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* ========================================
   CARACTERÍSTICAS
   ======================================== */
.features {
    background: var(--light);
    padding: 100px 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    color: var(--dark);
}

.feature-item p {
    color: var(--gray);
}

/* ========================================
   CONTACTO
   ======================================== */
.contact-section {
    padding: 100px 2rem;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-info-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem;
    border-radius: 25px;
    color: white;
}

.contact-info-box h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contact-item p,
.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
}

.contact-item a:hover {
    color: white;
    text-decoration: underline;
}

.contact-map {
    width: 100%;
    overflow: hidden;
}

/* ========================================
   FORMULARIO DE CONTACTO
   ======================================== */
.contact-forms-container {
    background: var(--light);
    border-radius: 25px;
    overflow: hidden;
}

.contact-tabs {
    display: flex;
    background: white;
    border-bottom: 2px solid #e2e8f0;
}

.contact-tab {
    flex: 1;
    padding: 1.2rem;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-bottom: 3px solid transparent;
}

.contact-tab:hover {
    color: var(--primary);
}

.contact-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.contact-form {
    display: none;
    padding: 3rem;
}

.contact-form.active {
    display: block;
}

/* form-group unificado (antes estaba duplicado en dos secciones) */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
    resize: vertical;
}

.form-group textarea {
    min-height: 150px;
}

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

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Ocultar botón de login en footer */
.social-links a:last-child {
    display: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   WHATSAPP FLOTANTE
   ======================================== */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    z-index: 100;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7);
}

/* ========================================
   FILTROS DE CATEGORÍA
   ======================================== */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0 auto 3rem;
    max-width: 1200px;
    padding: 0 2rem;
}

.category-btn {
    padding: 0.8rem 2rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    font-size: 1rem;
}

.category-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ========================================
   GRID DE PRODUCTOS
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f8f9fa;
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.product-stock {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
}

.product-stock.in-stock {
    background: #d1fae5;
    color: #065f46;
}

.product-stock.out-stock {
    background: #fee2e2;
    color: #991b1b;
}

/* ========================================
   MODAL DE PRODUCTO
   ======================================== */
.product-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 2rem;
    /* align-items: flex-start permite scroll cuando contenido supera viewport */
    box-sizing: border-box;
}

.product-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100%;
}

.product-modal-content {
    background: white;
    border-radius: 25px;
    max-width: 900px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    /* Sin max-height ni overflow:hidden — el overlay scrollea */
    margin: 2rem auto;
    flex-shrink: 0;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 1.8rem;
    color: #333;
    background: rgba(255,255,255,0.95);
    border: 1px solid #ddd;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    line-height: 1;
}

.close-modal:hover {
    background: var(--light);
    color: var(--dark);
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.product-modal-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-info h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.product-code {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.product-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 15px;
}

.product-price-section .product-price {
    font-size: 2rem;
}

.product-description {
    margin: 2rem 0;
}

.product-description h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.product-description p {
    color: var(--gray);
    line-height: 1.8;
}

.product-actions {
    margin-top: 2rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Botones dentro del modal de producto */
.btn-action {
    flex: 1;
    min-width: 140px;
    justify-content: center;
    color: white;
}

/* ========================================
   RESPONSIVE — tablet (≤ 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Navbar */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        align-items: flex-start;
        z-index: 999; /* Justo debajo del navbar, por encima de todo lo demás */
    }

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

    /* Hero */
    .hero {
        padding-top: 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    /* Carrusel: solo aspect-ratio, sin height fija que lo sobreescriba */
    .carousel-container {
        max-width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
    }

    /* Secciones */
    .section {
        padding: 60px 1rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Contacto */
    .contact-section {
        padding: 60px 1rem;
    }

    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem; /* Reducido desde 5rem del desktop */
    }

    /* El iframe de 450px es demasiado alto en móvil */
    .contact-map iframe {
        height: 280px !important;
    }

    .contact-tabs {
        flex-direction: row;
    }

    .contact-tab {
        border-bottom: 1px solid #e2e8f0;
        border-left: 3px solid transparent;
        justify-content: flex-start;
    }

    .contact-tab.active {
        border-bottom-color: #e2e8f0;
        border-left-color: var(--primary);
    }

    .contact-form {
        padding: 2rem;
    }

    /* Tienda */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .category-filter {
        padding: 0 1rem;
    }

    /* Modal */
    .product-modal-body {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    .product-modal-image {
        aspect-ratio: auto;
        max-height: 280px;
    }
    .product-modal-image img {
        object-fit: contain;
        background: #f8f9fa;
    }
}

/* ========================================
   RESPONSIVE — móvil pequeño (≤ 480px)
   ======================================== */
@media (max-width: 480px) {
    /* Hero */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-container {
        padding: 1.5rem 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Secciones */
    .section-header h2 {
        font-size: 1.8rem;
    }

    /* Contacto */
    .contact-section {
        padding: 60px 1rem;
    }

    .contact-form {
        padding: 1.5rem 1rem;
    }

    /* Carrusel */
    .carousel-container {
        height: auto; /* No sobreescribir con height fija */
    }

    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Tienda */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-filter {
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Modal */
    .product-modal {
        padding: 1rem;
    }

    .product-modal-content {
        border-radius: 15px;
        /* Sin max-height — el overlay (.product-modal) maneja el scroll */
    }

    .product-modal-body {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .product-modal-info h2 {
        font-size: 1.5rem;
    }

    .close-modal {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    /* Mapa aún más compacto en móviles pequeños */
    .contact-map iframe {
        height: 220px !important;
    }

    /* WhatsApp */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 15px;
        right: 15px;
    }
}
