:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --text-color: #333;
    --border-radius: 4px;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}
 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo a {
    color: white;
    text-decoration: none;
}

/* Main Navigation */
.main-nav {
    position: relative;
}

.main-nav > ul {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.main-nav .nav-link {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: background-color 0.3s;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.1);
    position: relative;
    cursor: pointer;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background-color: var(--secondary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown > .nav-link::after {
    content: ' ▾';
    font-size: 0.9em;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-color);
    min-width: 250px;
    box-shadow: var(--shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    display: none;
    z-index: 1001;
    list-style: none;
}

/* Mostrar dropdown al hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu:hover {
    display: block;
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: background-color 0.3s;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background-color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

/* Main Content */
main {
    padding: 30px 0;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.rubro-description {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    line-height: 1.7;
}

/* Filter Section */
.filter-section {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.filter-title {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: white;
    min-width: 200px;
    font-size: 1rem;
}

.btn-primary {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    padding: 10px 20px;
    background-color: var(--light-color);
    color: var(--text-color);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #dde4e6;
}

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

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1.1rem;
    line-height: 1.3;
}

.product-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-price {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Subrubro Sections */
.subrubro-section {
    margin-bottom: 50px;
}

.subrubro-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

/* No Products/Images */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
}

.no-image {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
    height: 220px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}
.footer-content a{
   color:#fff;text-decoration:none;
}

footer{
padding:1em;
font-size:1em;

}


#instfooter{
padding-top:0px;
}
#instfooter a, footer a{
color: #fff;
}

        

        
        #fixed3 {
    position: sticky;
    top: 100vh; /* Lo posiciona al fondo del viewport */
    float: right;
    margin-top: -80px; /* Lo sube para que sea flotante */
    margin-right: 20px;
    z-index: 1000;
    display: block !important;
}

#fixed3 img {
    width: 50px;
    height: 120px;
    display: block;
}

/* Para móvil */
@media only screen and (max-width: 719px) {
    #fixed3 {
        position: sticky;
        top: auto;
        bottom: 0;
        float: right;
        margin-top: -70px;
        margin-right: 15px;
        margin-bottom: 70px;
    }
    #fixed3 img {
        width: 50px;
        height: 120px;
    }
}



/* ===== RESPONSIVE DESIGN MEJORADO ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: relative;
        top: 0;
        right: 0;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        display: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        z-index: 1001;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav > ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .main-nav .nav-link {
        padding: 15px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: left;
    }
    
    .dropdown > .nav-link::after {
        content: ' ▾';
        float: right;
        transition: transform 0.3s;
    }
    
    .dropdown.active > .nav-link::after {
        content: ' ▾';
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background-color: rgba(0,0,0,0.2);
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding-left: 40px;
        font-size: 0.95rem;
    }
    
    /* Ocultar dropdowns por hover en móvil */
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .filter-section {
        padding: 20px 15px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .main-nav .nav-link {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .dropdown-menu a {
        padding-left: 30px;
    }
}












/* Icono del carrito en el header */
.carrito-header-icon {
    margin-left: auto;
}

.carrito-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.carrito-link:hover {
    background: var(--secondary-color);
    color: white;
}

.carrito-badge {
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    min-width: 20px;
    text-align: center;
}





@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .carrito-header-icon {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        order: 3;
    }
    
    .carrito-link {
        justify-content: center;
        width: 100%;
    }
    
    /* El resto de tus estilos responsive existentes... */
}



/* ===== ESTILOS PARA MENÚ MÓVIL ===== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    color: var(--dark-color);color:white;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;  background:#2C3E50;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: none;
        z-index: 1000;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0;
    }
    
    .main-nav > ul > li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .main-nav .nav-link {
        display: block;
        padding: 15px 20px;
        border: none;
    }
    
    /* Dropdowns en móvil */
    .dropdown-menu {
        display: none;
        background: #f8f9fa;
        padding: 0;
        margin: 0;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li {
        border-bottom: 1px solid #e9ecef;
    }
    
    .dropdown-menu a {
        padding: 12px 20px 12px 40px;
        display: block;
        color: #495057;
        text-decoration: none;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a.active {
        background: var(--primary-color);
        color: white;
    }
    
    /* Indicador de dropdown abierto */
    .dropdown.active .nav-link::after {
        content: ' ▴';
    }
    
    .dropdown .nav-link::after {
        content: ' ▾';
        float: right;
    }
}
/************************//* Nuevos estilos para la galería de productos */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 10px;
}

.product-name {
    font-weight: bold;
    margin-bottom: 0;
    color: var(--primary-color);
    flex: 1;
}

.product-specs {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    font-size: 0.85rem;
    color: #666;
}

.product-sku {
    font-weight: 500;
    margin-bottom: 2px;
}

.product-unit {
    font-style: italic;
    color: #888;
}

.product-price {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin: 8px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .product-header {
        flex-direction: column;
    }
    
    .product-specs {
        align-items: flex-start;
        text-align: left;
        margin-top: 5px;
    }
}






/* Agregar al final de styles.css */

.plan-info {
    background: #f8f9fa;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    font-family: Arial, sans-serif;
}

.plan-info label {
    display: block;
    margin: 8px 0;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
}

.plan-info label:hover {
    border-color: #007bff;
    background: #f1f8ff;
}

.plan-info label input[type="radio"] {
    margin-right: 10px;
}

.plan-info strong {
    color: #495057;
    font-size: 14px;
}

.loading {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Estilos para tarjetas */
.card-type {
    display: inline-block;
    padding: 4px 8px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.recommended-badge {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 8px;
}
