/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --iotec-orange: #ff6600;
    --iotec-dark: #1a1a1a;
    --iotec-gray: #2d2d2d;
    --iotec-light-gray: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--iotec-light-gray);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--iotec-dark);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--iotec-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--iotec-dark);
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.search-bar button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

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

.mobile-categories-link {
    display: none;
}

.btn-categories {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--iotec-dark);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-categories:hover {
    background: var(--iotec-gray);
}

.cart-icon {
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 24px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--iotec-orange);
    color: var(--white);
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--iotec-orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 50%;
    font-size: 18px;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #e65c00;
}

/* Menú móvil */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Sidebar de categorías */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    display: none;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h2 {
    font-size: 20px;
    color: var(--iotec-dark);
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.sidebar-content {
    padding: 20px;
}

.category-item {
    margin-bottom: 10px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--iotec-light-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.category-header:hover {
    background: #e8e8e8;
}

.category-header h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin: 0;
}

.category-arrow {
    transition: transform 0.3s;
}

.category-arrow.rotated {
    transform: rotate(90deg);
}

.subcategories {
    display: none;
    margin-left: 20px;
    margin-top: 10px;
}

.subcategories.active {
    display: block;
}

.subcategory-item {
    padding: 10px 12px;
    color: var(--text-light);
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.subcategory-item:hover {
    color: var(--iotec-orange);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    margin-top: 0;
}

/* Mobile Hero Section */
@media (max-width: 768px) {
    .hero-section {
        height: 400px;
        background-position: 65% center;
    }
}

/* Banner Carousel */
.carousel {
    position: relative;
    width: 100%;
    background-color: #181818;
    min-height: 300px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Mobile Carousel */
@media (max-width: 767px) {
    .carousel {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 5;
        min-height: 420px;
        position: relative;
        background-color: #181818;
    }

    .carousel-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease;
        pointer-events: none;
    }

    .carousel-slide.active {
        opacity: 1;
        position: relative;
        pointer-events: auto;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .carousel-img-mobile {
        display: block !important;
    }

    .carousel-img-desktop {
        display: none !important;
    }

    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

/* Desktop Carousel */
@media (min-width: 768px) {
    .carousel {
        width: 100%;
        aspect-ratio: 16 / 5;
        min-height: 500px;
        max-height: 600px;
        position: relative;
        background-color: #181818;
    }

    .carousel-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease;
        pointer-events: none;
    }

    .carousel-slide.active {
        opacity: 1;
        position: relative;
        pointer-events: auto;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .carousel-img-mobile {
        display: none !important;
    }

    .carousel-img-desktop {
        display: block !important;
    }
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
}

.carousel-content {
    max-width: 600px;
    padding: 40px;
    color: var(--white);
}

.carousel-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.carousel-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.carousel-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--iotec-orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: #e65c00;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

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

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

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #ff6600;
    transform: scale(1.2);
}

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

/* Efecto de neón rotatorio en el borde del container */
.neon-border-container {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    overflow: visible;
}

.neon-border-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 15px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 330deg,
        #ff6500 360deg
    );
    animation: neon-rotate 5s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.neon-border-container::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    z-index: 1;
}

.neon-border-container > * {
    position: relative;
    z-index: 2;
}

@keyframes neon-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.section-title {
    font-size: 28px;
    color: var(--iotec-dark);
    margin-bottom: 30px;
    text-align: center;
}

/* Grid de productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 200px;
    background: var(--iotec-light-gray);
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    background: var(--iotec-orange);
    color: var(--white);
    font-size: 12px;
    border-radius: 4px;
}

.product-badge.out-of-stock {
    background: #dc3545;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    height: 44px;
    overflow: hidden;
}

.product-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--iotec-orange);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-add-cart {
    padding: 10px 20px;
    background: var(--iotec-orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background: #e65c00;
}

.btn-add-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Categorías destacadas */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
    justify-items: center;
}

.category-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

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

.category-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.category-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.category-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.category-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* Filtros */
.filters {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

/* Carrito */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--white);
    z-index: 1003;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h2 {
    font-size: 20px;
    color: var(--iotec-dark);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--iotec-orange);
    font-weight: bold;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.cart-item-quantity button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
}

.cart-item-quantity input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 5px;
}

.cart-item-remove {
    color: #dc3545;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.btn-whatsapp {
    width: 100%;
    padding: 15px;
    background: #25D366;
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

/* 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;
    color: var(--white);
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ff6600;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff6600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.footer-social-icon:hover {
    transform: scale(1.1);
}

.footer-social-icon.facebook {
    background: #1877f2;
}

.footer-social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-social-icon.twitter {
    background: #1da1f2;
}

.footer-social-icon.tiktok {
    background: #000000;
}

.footer-social-icon.youtube {
    background: #ff0000;
}

.footer-social-icon.linkedin {
    background: #0077b5;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

.payment-methods {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.payment-icon {
    width: 50px;
    height: 30px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 12px;
    font-weight: bold;
}

/* Página de producto */
.product-detail {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    margin: 30px 0;
}

.product-gallery {
    display: grid;
    gap: 15px;
}

/* Product Image Carousel */
.product-image-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

.carousel-nav-btn:hover {
    background: rgba(255, 102, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

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

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

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: #ff6600;
    transform: scale(1.2);
}

.product-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-thumbnail.active {
    border-color: var(--iotec-orange);
}

.product-info-detail {
    padding: 20px;
}

.product-info-detail h1 {
    font-size: 32px;
    color: var(--iotec-dark);
    margin-bottom: 15px;
}

.product-price-detail {
    font-size: 36px;
    color: var(--iotec-orange);
    font-weight: bold;
    margin-bottom: 20px;
}

.product-stock {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-description-detail {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 16px;
}

.btn-add-cart-large {
    width: 100%;
    padding: 15px 30px;
    background: var(--iotec-orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-cart-large:hover {
    background: #e65c00;
}

/* Página de contacto */
.contact-page {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    margin: 30px 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

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

.btn-submit {
    width: 100%;
    padding: 15px 30px;
    background: var(--iotec-orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #e65c00;
}

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

.contact-info-item {
    padding: 20px;
    background: var(--iotec-light-gray);
    border-radius: 8px;
}

.contact-info-item h3 {
    font-size: 18px;
    color: var(--iotec-dark);
    margin-bottom: 10px;
}

.contact-info-item p {
    color: var(--text-light);
}

/* Admin */
.admin-header {
    background: var(--iotec-dark);
    color: var(--white);
    padding: 15px 20px;
}

.admin-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-nav {
    display: flex;
    gap: 20px;
}

.admin-nav a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.admin-nav a:hover {
    color: var(--iotec-orange);
}

.admin-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.admin-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 36px;
    color: var(--iotec-orange);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-light);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: var(--iotec-light-gray);
    font-weight: 600;
}

.btn-edit {
    padding: 6px 10px;
    background: #007bff;
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 3px;
    font-size: 14px;
}

.btn-delete {
    padding: 6px 10px;
    background: #dc3545;
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    padding: 12px 25px;
    background: var(--iotec-orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../../fondologin.png') center/cover no-repeat;
}

.login-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--iotec-dark);
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding-top: 200px !important;
    }
    
    .header .container {
        flex-wrap: wrap;
        padding: 10px 15px;
        gap: 10px;
    }
    
    .logo {
        order: 1;
        flex: 0 0 auto;
    }
    
    .cart-icon {
        order: 2;
        flex: 0 0 auto;
        margin: 0 auto;
    }
    
    .btn-login {
        order: 3;
        flex: 0 0 auto;
    }
    
    .search-bar {
        order: 4;
        flex: 1 1 100%;
        max-width: 100%;
        margin: 0;
        display: block;
    }
    
    .nav-links {
        order: 6;
        flex: 1 1 100%;
        display: none;
        flex-direction: column;
        margin: 0;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        overflow: hidden;
    }
    
    .nav-links.mobile-menu-open {
        display: flex;
    }
    
    .nav-links a {
        padding: 15px 20px;
        background: white;
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
        font-size: 16px;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .mobile-categories-link {
        display: block;
    }
    
    .btn-categories {
        order: 6;
        flex: 1;
        padding: 10px 15px;
        font-size: 14px;
        display: none;
    }
    
    .mobile-menu-btn {
        order: 5;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 15px;
        background: var(--iotec-dark);
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        gap: 8px;
    }
    
    .mobile-menu-btn:hover {
        background: var(--iotec-gray);
    }
    
    .carousel {
        height: 300px;
    }

    .carousel-slide img {
        object-fit: contain;
    }
    
    .carousel-content h2 {
        font-size: 24px;
    }
    
    .carousel-content p {
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .sidebar {
        width: 280px;
        left: -280px;
    }
    
    .product-detail {
        padding: 20px;
    }
    
    .product-main-image {
        height: 250px;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }

    /* Admin Panel Responsive */
    .admin-header-content {
        flex-direction: column;
        gap: 15px;
    }

    .admin-nav {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .admin-nav a {
        padding: 10px;
        background: rgba(255,255,255,0.1);
        border-radius: 6px;
        display: block;
        text-align: center;
    }

    .admin-content {
        padding: 0 15px;
        margin: 20px auto;
    }

    .admin-card {
        padding: 20px;
    }

    .admin-table {
        font-size: 14px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }

    .admin-table th:nth-child(n+4),
    .admin-table td:nth-child(n+4) {
        display: none;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
    }

    /* Login page responsive */
    .login-page {
        padding: 20px;
    }

    .login-form {
        padding: 30px 20px;
        margin: 20px;
    }

    /* Product detail responsive */
    .product-detail {
        padding: 20px;
    }

    .product-main-image {
        height: 250px;
    }

    .product-thumbnails {
        gap: 10px;
    }

    .product-thumbnail {
        width: 60px;
        height: 60px;
    }

    /* Contact page responsive */
    .contact-page {
        padding: 20px;
        margin: 20px 0;
    }

    .contact-form {
        padding: 0;
    }

    /* Action buttons in tables */
    .admin-table .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .admin-table .action-buttons a {
        padding: 5px 10px;
        font-size: 12px;
    }

    /* Categorías page action buttons */
    .admin-card > div > div[style*="display: flex"] {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .admin-card > div > div[style*="display: flex"] > div:last-child {
        display: flex;
        gap: 10px;
        width: 100%;
        justify-content: flex-end;
    }

    /* Subcategorías action buttons - keep horizontal */
    .admin-card > div > div[style*="margin-left"] > div[style*="display: flex"] {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .admin-card > div > div[style*="margin-left"] > div[style*="display: flex"] > div:last-child {
        width: auto;
        justify-content: flex-end;
        flex-direction: row !important;
    }

    /* Specific class for subcategoria actions */
    .subcategoria-actions {
        display: flex;
        flex-direction: row !important;
        gap: 10px;
        align-items: center;
    }

    .admin-card .btn-edit,
    .admin-card .btn-delete {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Popup Promocional */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-overlay.active {
    display: flex;
}

.popup-modal {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.popup-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
}

.popup-whatsapp-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #25D366;
    color: white;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    border-radius: 0 0 12px 12px;
    transition: background 0.3s;
}

.popup-whatsapp-btn:hover {
    background: #128C7E;
}

.popup-whatsapp-btn i {
    margin-right: 8px;
    font-size: 18px;
}

/* Sección Nosotros */
.nosotros-hero {
    position: relative;
    min-height: 400px;
}

.nosotros-hero-title {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.cta-section a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Autocompletado de búsqueda */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: #f5f5f5;
}

.search-suggestion-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    background: #f0f0f0;
}

.search-suggestion-info {
    flex: 1;
}

.search-suggestion-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.search-suggestion-price {
    font-size: 13px;
    color: #ff6600;
    font-weight: bold;
}

.search-suggestion-no-image {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 4px;
    margin-right: 12px;
    color: #999;
    font-size: 12px;
}

/* Responsive para popup */
@media (max-width: 768px) {
    .popup-modal {
        max-width: 95%;
        margin: 10px;
    }

    .popup-close {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .popup-whatsapp-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    /* Responsive para Nosotros */
    .nosotros-hero {
        padding: 60px 20px;
        min-height: 300px;
    }
    
    .nosotros-hero-title {
        font-size: 32px;
    }
    
    .nosotros-hero p {
        font-size: 16px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
    
    .cta-section a {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* Neon Glow Effect for Brochure Download Cards */
.brochure-download-card {
    position: relative;
    z-index: 1;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.brochure-download-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ff6600, #ff9500, #ff6600, #ff9500, #ff6600);
    background-size: 400% 400%;
    border-radius: 18px;
    z-index: -1;
    animation: neonGlow 2s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(1px);
}

.brochure-download-card:hover::before {
    opacity: 1;
}

.brochure-download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 102, 0, 0.6), 0 0 20px rgba(255, 102, 0, 0.4);
}

@keyframes neonGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Testimonials Carousel */
.testimonials-carousel {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex-shrink: 0;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    position: relative;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-indicator {
    transition: background 0.3s;
}

/* Responsive styles for testimonials carousel */
@media (max-width: 767px) {
    .testimonials-carousel {
        padding: 0 50px !important;
    }
    
    .testimonial-nav-btn {
        width: 35px !important;
        height: 35px !important;
    }
}

@media (max-width: 480px) {
    .testimonials-carousel {
        padding: 0 45px !important;
    }
    
    .testimonial-nav-btn {
        width: 30px !important;
        height: 30px !important;
    }
}

.testimonial-indicator.active {
    background: #ff6600 !important;
}

/* Testimonials navigation buttons */
.testimonial-nav-btn {
    transition: background 0.3s, transform 0.3s;
}

.testimonial-nav-btn:hover {
    background: #ff9500 !important;
    transform: translateY(-50%) scale(1.1);
}

/* Responsive adjustments for testimonials */
@media (max-width: 768px) {
    .testimonial-nav-btn {
        width: 35px !important;
        height: 35px !important;
        left: -40px !important;
        right: -40px !important;
    }
    
    .testimonial-next {
        right: -40px !important;
    }
    
    .testimonial-prev {
        left: -40px !important;
    }
    
    .testimonial-slide > div {
        max-width: 90% !important;
        padding: 20px !important;
    }
    
    .testimonial-slide > div > div:first-child {
        height: 300px !important;
    }
    
    .testimonial-slide h3 {
        font-size: 18px !important;
    }
    
    .testimonial-slide p {
        font-size: 14px !important;
    }
    
    .testimonials-indicators {
        margin-top: 20px !important;
    }
}

/* Responsive Layout for Mobile (430px width) */
@media (max-width: 480px) {
    /* Page margins */
    .section {
        padding: 30px 12px !important;
    }
    
    .container {
        padding: 20px 12px !important;
    }
    
    /* Brochures Grid - 2 columns on mobile */
    .brochures-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .brochure-download-card {
        padding: 15px !important;
    }
    
    .brochure-download-card i {
        font-size: 28px !important;
        margin-bottom: 8px !important;
    }
    
    .brochure-download-card h3 {
        font-size: 13px !important;
    }
    
    .brochure-download-card p {
        font-size: 11px !important;
    }
    
    /* Categories Grid - 2 columns on mobile */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .category-card {
        padding: 15px !important;
    }
    
    .category-card img {
        height: 60px !important;
        width: 60px !important;
    }
    
    .category-card h3 {
        font-size: 13px !important;
    }
    
    /* Products Grid - 2 columns on mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px 10px !important;
        row-gap: 20px !important;
    }
    
    /* Product Cards - Compact design (only image, title, add button) */
    .product-card {
        display: flex !important;
        flex-direction: column !important;
        padding: 10px !important;
        min-height: 200px !important;
        height: 200px !important;
    }
    
    .product-image {
        height: 100px !important;
        min-height: 100px !important;
        margin-bottom: 8px !important;
    }
    
    .product-image img {
        object-fit: cover !important;
        height: 100% !important;
    }
    
    .product-image div {
        font-size: 11px !important;
    }
    
    .product-badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
        top: 5px !important;
        right: 5px !important;
    }
    
    .product-info {
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
    }
    
    .product-title {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-height: 32px !important;
    }
    
    /* Hide description and price on mobile */
    .product-description {
        display: none !important;
    }
    
    .product-price {
        display: none !important;
    }
    
    .product-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: auto !important;
    }
    
    /* Hide "Ver detalles" link on mobile */
    .product-actions a {
        display: none !important;
    }
    
    .btn-add-cart {
        width: 100% !important;
        height: 36px !important;
        padding: 0 !important;
        border-radius: 4px !important;
        font-size: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .btn-add-cart i {
        margin: 0 !important;
    }
    
    /* WhatsApp floating button */
    .whatsapp-float {
        bottom: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 20px !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .brochures-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .brochure-download-card {
        padding: 20px !important;
    }
    
    .brochure-download-card i {
        font-size: 36px !important;
        margin-bottom: 10px !important;
    }
    
    .brochure-download-card h3 {
        font-size: 16px !important;
    }
    
    .brochure-download-card p {
        font-size: 12px !important;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}
