/* productos.css */
/* Variables de colores */
:root {
    --primary-purple: #8B5FBF;
    --primary-blue: #5D8BF4;
    --white: #FFFFFF;
    --black: #000000;
    --gradient: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    --light-bg: #f8f9fa;
    --dark-text: #333333;
    --light-text: #666666;
    --border-color: #e0e0e0;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow-x: hidden;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

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

/* Barra de navegación */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(139, 95, 191, 0.95);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

nav.scrolled .nav-menu a {
    color: var(--primary-purple);
}

nav.scrolled .nav-menu a:hover {
    color: var(--primary-blue);
    background: rgba(139, 95, 191, 0.1);
}

nav.scrolled .nav-menu a.active {
    color: var(--primary-blue);
    background: rgba(139, 95, 191, 0.15);
}

/* Logo */
.logo {
    width: 150px;
    height: 50px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--primary-purple)) 
            drop-shadow(0 0 20px var(--primary-blue));
}

.logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Menú de navegación */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-menu a:hover {
    color: var(--primary-blue);
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
    color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.2);
}

/* Menú hamburguesa para móviles */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

nav.scrolled .hamburger div {
    background-color: var(--primary-purple);
}

/* Hero Section de Productos - NUEVO DISEÑO */
.products-hero {
    min-height: 70vh;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 5% 50px;
    color: var(--white);
}

/* Contenedor general */
.products-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    text-align: left;
    max-width: 1200px;
    width: 100%;
}

/* Texto */
.hero-text {
    flex: 1 1 45%;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Botón CTA en el hero */
.hero-cta-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    background: var(--white);
    color: var(--primary-purple);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.hero-cta-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

/* Rotación 3D - DISEÑO SIMPLIFICADO CON GIF */
.rotacion-container {
    flex: 1 1 45%;
    text-align: center;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rotacion-container img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.frame-label {
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--white);
}

/* Filtros de Categorías */
.category-filters {
    padding: 60px 0;
    background: var(--white);
    text-align: center;
}

.category-filters h2 {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 30px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 12px 25px;
    border: 2px solid var(--primary-purple);
    background: transparent;
    color: var(--primary-purple);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-purple);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 95, 191, 0.4);
}

/* Grid de Productos */
.products-grid {
    padding: 60px 0;
    background: var(--light-bg);
}

.products-grid .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    background: var(--gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    cursor: pointer;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.5rem;
    color: var(--primary-purple);
    margin-bottom: 15px;
}

.product-info p {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 25px;
}

.product-features li {
    padding: 8px 0;
    color: var(--light-text);
    position: relative;
    padding-left: 25px;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Botones */
.btn-container {
    margin-top: auto;
}

.btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(93, 139, 244, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(93, 139, 244, 0.6);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(93, 139, 244, 0.2);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(93, 139, 244, 0.4);
    transform: translateY(-3px);
}

/* Sección de Llamada a la Acción */
.cta-section {
    padding: 80px 0;
    background: var(--gradient);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-section .btn {
    width: auto;
    padding: 15px 40px;
    font-size: 1.1rem;
    background: var(--white);
    color: var(--primary-purple);
}

.cta-section .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

/* Sección de Proceso */
.process-section {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.process-section h2 {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 50px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-step {
    padding: 30px 20px;
    background: var(--light-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 95, 191, 0.1);
    border-radius: 50%;
}

.step-icon img {
    width: 40px;
    height: 40px;
}

.process-step h3 {
    color: var(--primary-purple);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.process-step p {
    color: var(--light-text);
    line-height: 1.6;
}

/* Botón de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:hover::after {
    content: "¡Hola!, ¿cómo podemos ayudarte?";
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--white);
    color: var(--black);
    padding: 10px 15px;
    border-radius: 10px;
    width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    text-align: center;
}

.whatsapp-btn::before {
    content: "";
    position: absolute;
    bottom: 60px;
    right: 25px;
    border-width: 10px;
    border-style: solid;
    border-color: var(--white) transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-btn:hover::before {
    opacity: 1;
}

.whatsapp-btn img {
    width: 35px;
    height: 35px;
}

/* Estilos del Modal de Cotización */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--light-text);
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--primary-purple);
    background: rgba(139, 95, 191, 0.1);
}

.modal h2 {
    color: var(--primary-purple);
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.8rem;
}

.modal-subtitle {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Estilos del formulario */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-section h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-terms {
    margin: 25px 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.4;
}

.checkbox-container input {
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-container a {
    color: var(--primary-blue);
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    position: relative;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mensaje de confirmación */
.confirmation-message {
    text-align: center;
    padding: 20px 0;
}

.confirmation-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.confirmation-content h3 {
    color: var(--primary-purple);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.confirmation-details {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
}

.confirmation-details p {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.confirmation-details ul {
    list-style: none;
    padding: 0;
}

.confirmation-details li {
    padding: 5px 0;
    color: var(--light-text);
}

.confirmation-actions {
    margin-top: 25px;
}

.confirmation-actions p {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark-text);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border: none;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .products-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .products-grid .container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .hero-text {
        flex: 1 1 100%;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .rotacion-container {
        flex: 1 1 100%;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: absolute;
        right: 0;
        top: 70px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        width: 100%;
        flex-direction: column;
        align-items: center;
        transform: translateY(-150%);
        transition: transform 0.5s ease;
        padding: 20px 0;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    nav.scrolled .nav-menu,
    .nav-menu {
        background: rgba(255, 255, 255, 0.95);
    }
    
    nav.scrolled .nav-menu a,
    .nav-menu a {
        color: var(--primary-purple);
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    nav.scrolled .hamburger.active div {
        background-color: var(--white);
    }
    
    .products-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .products-hero-content h1 {
        font-size: 2rem;
    }
    
    .products-hero-content p {
        font-size: 1rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 250px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .rotacion-container {
        max-width: 300px;
        padding: 20px;
        margin: 0 auto;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .products-hero {
        padding: 120px 5% 30px;
        min-height: 80vh;
    }
}

@media screen and (max-width: 480px) {
    .products-hero {
        min-height: 80vh;
        padding: 120px 5% 30px;
    }
    
    .products-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .logo {
        width: 120px;
        height: 40px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .products-grid .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-filters h2,
    .process-section h2 {
        font-size: 2rem;
    }
    
    .rotacion-container {
        max-width: 250px;
        padding: 15px;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 15px;
    }
    
    .modal h2 {
        font-size: 1.5rem;
    }
    
    .hero-cta-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animaciones adicionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease forwards;
}

.process-step {
    animation: fadeInUp 0.6s ease forwards;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para mejor accesibilidad */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Mejoras de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Estados de carga */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-blue);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Estilos para filtros de categorías */
.category-filters {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.category-filters h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Botones para pantallas grandes */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #84BFE7;
    background-color: white;
    color: #84BFE7;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: #e6f2fb;
}

.filter-btn.active {
    background-color: #84BFE7;
    color: white;
}

/* Listbox para pantallas pequeñas */
.filter-select-container {
    display: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #84BFE7;
    border-radius: 8px;
    background-color: white;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2384BFE7'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.filter-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(132, 191, 231, 0.3);
}

/* Media query para mostrar listbox en pantallas pequeñas */
@media (max-width: 768px) {
    .filter-buttons {
        display: none;
    }
    
    .filter-select-container {
        display: block;
    }
}

/* Estilos para el modal de imágenes */
.img-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-modal.active {
    display: flex;
    opacity: 1;
}

.close-img-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 3001;
    transition: color 0.3s ease;
}

.close-img-modal:hover {
    color: var(--primary-blue);
}

.modal-img-content {
    max-width: 90vw;
    max-height: 80vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.img-modal.active .modal-img-content {
    transform: scale(1);
}