/* ============================================
   PRODUCTOS - CSS GENERAL
   Archivo compartido para todas las páginas de productos
   ============================================ */

/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    /* Colores principales */
    --primary: #009de2;
    --secondary: #ffc000;
    --accent: #ff0084;
    --dark: #1a1a2e;
    --light: #f8fafc;
    
    /* Colores de texto */
    --text: #2d3748;
    --text-light: #718096;
    
    /* Efectos de vidrio */
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Sombras */
    --shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    
    /* Gradientes */
    --primary-gradient: linear-gradient(135deg, var(--primary), var(--accent));
}

/* ============================================
   RESET Y ESTILOS BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   BARRA DE NAVEGACIÓN
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary);
    background: rgba(0, 157, 226, 0.1);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    min-width: 250px;
    box-shadow: var(--shadow);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    padding: 1rem 0;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: var(--primary);
    color: white;
}

/* Botón Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ============================================
   HERO PRODUCTO
   ============================================ */
.hero-product {
    height: 50vh;
    min-height: 400px;
    position: relative;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* ============================================
   CATEGORÍAS DE PRODUCTOS
   ============================================ */
.product-categories {
    padding: 4rem 0 2rem;
    background: var(--light);
}

.category-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.category-btn {
    padding: 0.875rem 2rem;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: rgba(0, 157, 226, 0.1);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* ============================================
   SECCIONES DE PRODUCTOS
   ============================================ */
.product-section {
    display: none;
    padding: 2rem 0;
}

.product-section.active {
    display: block;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ============================================
   TARJETAS DE PRODUCTO
   ============================================ */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    color: #999;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.product-specs {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.product-specs h4 {
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.product-specs ul {
    list-style: none;
    padding-left: 0;
}

.product-specs li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.product-specs li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.product-specs strong {
    color: var(--text);
    font-weight: 600;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.contact-btn {
    padding: 0.625rem 1.25rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 157, 226, 0.3);
}

/* Tarjeta especial */
.special-card {
    border: 2px solid var(--secondary);
    box-shadow: 0 4px 20px rgba(255, 192, 0, 0.2);
}

.product-features {
    margin-bottom: 1rem;
}

.product-features p {
    color: var(--accent);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* ============================================
   SECCIÓN DE GARANTÍA
   ============================================ */
.guarantee-section {
    padding: 4rem 0;
    background: white;
}

.guarantee-card {
    background: var(--light);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
}

.guarantee-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text);
    text-align: center;
}

.guarantee-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.guarantee-card p:last-child {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   SECCIÓN DE VISUALIZACIÓN 3D
   ============================================ */
.render-section {
    padding: 4rem 0;
    background: var(--light);
}

.render-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.model-viewer {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.model-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 100;
}

.control-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text);
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.model-instructions {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
}

.model-instructions p {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.model-instructions ul {
    list-style: none;
    padding-left: 0;
}

.model-instructions li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

/* ============================================
   SECCIÓN DE GARANTÍAS (ALTERNATIVA)
   ============================================ */
.guarantees-section {
    padding: 4rem 0;
    background: white;
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.guarantee-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.guarantee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.guarantee-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-section p,
.footer-section a {
    color: white;
    line-height: 1.8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #022155;
}

.footer-section ul {
    list-style: none;
}

.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   BOTÓN FLOTANTE DE WHATSAPP
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float img,
.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* Iconos sociales */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    /* Mostrar menú móvil */
    .hamburger {
        display: flex;
    }
    
    /* Ocultar menú desktop */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        text-align: center;
    }
    
    .nav-link {
        color: white;
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    /* Dropdown móvil */
    .dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        border: none;
        display: none;
        max-height: 300px;
        overflow-y: auto;
        text-align: center;
        width: 100%;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        font-size: 1.2rem;
        color: #a0aec0;
        text-align: center;
    }
    
    /* Hero responsive */
    .hero-product {
        height: 40vh;
        margin-top: 80px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    /* Categorías responsive */
    .category-nav {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Grid responsive */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .guarantees-grid {
        grid-template-columns: 1fr;
    }

    /* Modelo 3D responsive */
    .model-viewer {
        height: 350px;
    }

    .model-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .guarantee-card {
        padding: 2rem;
    }

    .render-container {
        padding: 1rem;
    }

    /* Footer responsive */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }    
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo img {
        height: 60px;
    }
    
    .category-nav {
        flex-direction: column;
    }
    
    .category-btn {
        width: 100%;
    }

    .guarantee-card {
        padding: 1.5rem;
    }

    .guarantee-card h3 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}