/* ========================================
   TEMPLATE: LISTADO DE EQUIPOS
   Modern Equipment Listing Design
   ======================================== */

/* Variables CSS */
:root {
  --color-primary: #019df4;
  --color-secondary: #ffffff;
  --color-dark-blue: #0b2739;

  --color-accent-green-light: #bde4a4;
  --color-accent-green: #5cb615;
  --color-accent-green-dark: #3c7521;

  --color-accent-purple-light: #debce4;
  --color-accent-purple: #a13ea1;
  --color-accent-purple-dark: #642a72;

  --color-accent-magenta-light: #fbc7de;
  --color-accent-magenta: #e63780;
  --color-accent-magenta-dark: #922859;

  --color-accent-orange-light: #f8cccc;
  --color-accent-orange: #ec624b;
  --color-accent-orange-dark: #983230;

  --color-accent-yellow-light: #f8d2b3;
  --color-accent-yellow: #f28d15;
  --color-accent-yellow-dark: #9f591f;

  --color-gray-1: #f5f5f5;
  --color-gray-2: #d3d4d3;
  --color-gray-3: #b6b7b7;
  --color-gray-4: #86888c;
  --color-gray-5: #50535a;
  --color-gray-6: #313235;
}

/* Hero Section - Compacto */
.hero-equipos {
    padding: 80px 0 50px;
    color: #ffffff;
    position: relative;
}

.hero-banner img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 16px;
}

.hero-stats .stat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.hero-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-stats .stat-item i {
    font-size: 1.1rem;
}

/* Filters Section */
.filters-section {
    background: #ffffff;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    z-index: 998;
    position: sticky;
    top: 0px;
}

.filters-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.filters-content {
    display: flex;
    flex: 1;
    gap: 1rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4c5966;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-select {
    padding: 0.65rem 1rem;
    border: 1px solid #dfe7f5;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    background: #ffffff;
    min-width: 180px;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(1, 157, 244, 0.1);
}

.filters-toggle {
    display: none;
    border: 1px solid #dfe7f5;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    font-weight: 600;
    color: #0f1f37;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filters-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filters-toggle.active {
    border-color: var(--color-primary);
    box-shadow: 0 12px 26px rgba(1, 157, 244, 0.2);
}

.btn-clear-filters {
    padding: 0.65rem 1.2rem;
    border: 1px solid #dfe7f5;
    border-radius: 999px;
    background: #ffffff;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-clear-filters:hover {
    background: #f8fafc;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Products Section */
.products-section {
    padding: 1.5rem 0 3rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.products-count {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 600;
}

/* Tabs de tipo de oferta */
.offer-type-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    /*padding-top: 1rem;*/
}

.offer-type-tab {
    flex-shrink: 0;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.offer-type-tab:hover {
    color: var(--color-primary);
    background: rgba(1, 157, 244, 0.05);
}

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

.offer-type-tab .tab-count {
    display: inline-block;
    background: #e5e7eb;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 6px;
    font-weight: 700;
}

.offer-type-tab.active .tab-count {
    background: var(--color-primary);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 1.5rem;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--color-border);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary);
}

.product-card-featured {
    border: 2px solid var(--color-primary);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.product-card-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
}

.product-badge-featured {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(1, 157, 244, 0.3);
}

.badge-discount {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.25);
}

.product-image-wrapper {
    position: relative;
    padding: 20px 14px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.product-image-cel {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image-cel {
    transform: scale(1.08);
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 4px;
}

.product-brand {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 3px 0;
}

.product-model {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.product-storage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f7ff;
    color: var(--color-primary-dark);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.product-plan {
    /* background: #f5fbff; */
    color: #003b5c;
    /* padding: 16px; */
    /* border-radius: 12px; */
    /* border: 1px solid #d8ecff; */
}

.plan-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    color: var(--color-primary-dark);
    display: block;
    margin: 4px 0;
}

.plan-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #002b45;
}

.product-pricing {
    /* background: #fdfefe; */
    /* padding: 16px; */
    /* border-radius: 12px; */
    /* border: 1px solid var(--color-border); */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.price-header {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7a8c;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.price-before {
    display: inline-block;
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 0px;
}

.price-current-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price-amount {
    display: inline-flex;
    align-items: flex-start;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-dark-blue);
    line-height: 1;
    letter-spacing: -0.5px;
}

.price-amount .currency {
    font-size: 0.5em;
    margin-top: 0.2em;
    margin-right: 2px;
    color: var(--color-primary);
}

.price-amount .amount {
    font-size: 1em;
}

.price-tag {
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 178, 102, 0.2);
    color: #9a4700;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.price-installments {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.9rem;
    color: #4c5966;
    font-weight: 600;
    line-height: 1.2;
}

.price-installments i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #edf1f7;
}

/* ========================================
   PLAN CARD STYLES
   ======================================== */

.product-card-plan .plan-image-wrapper {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.product-card-plan .plan-data-display {
    text-align: center;
    color: white;
}

.product-card-plan .data-amount {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.product-card-plan .data-unit {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.9;
    margin-top: -5px;
}

.product-card-plan .plan-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.plan-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.plan-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /*padding: 16px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;*/
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-feature i {
    font-size: 1.4rem;
    color: var(--color-primary);
}

.plan-feature > div {
    display: flex;
    flex-direction: column;
}

.plan-feature .feature-label {
    font-size: 0.8rem;
    color: #999;
    /*text-transform: uppercase;*/
    letter-spacing: 0.5px;
    font-weight: 600;
}

.plan-feature .feature-value {
    font-size: 0.8rem;
    color: #1a1a1a;
    font-weight: 700;
}

.plan-contract {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #666;
    font-size: 0.9rem;
}

.plan-contract i {
    color: var(--color-primary);
}

/* ========================================
   ACTION BUTTONS
   ======================================== */

.btn-buy {
    background: linear-gradient(135deg, #01a6ff 0%, #0068a3 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /*box-shadow: 0 8px 22px rgba(1, 157, 244, 0.35);*/
    text-decoration: none;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(1, 157, 244, 0.4);
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #005a8f 100%);
}

.btn-buy i {
        display: none;
    }

.btn-details {
    color: var(--color-primary);
    background: transparent;
    border: none;
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-details:hover {
    color: var(--color-primary-dark);
}

.btn-details i {
    transition: transform 0.3s ease;
}

.btn-details:hover i {
    transform: translateX(4px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 12px;
}

/* Responsive */
/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets y pantallas medianas - 3 columnas */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .hero-equipos {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 12px;
    }
    
    .hero-stats .stat-item {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .filters-section {
        top: 68px;
        padding: 16px 0;
        background: #f8fafc;
    }
    
    .filters-wrapper {
        flex-direction: column;
        gap: 0;
    }
    
    .filters-toggle {
        display: flex;
        justify-content: space-between;
        width: 100%;
        border-radius: 12px;
        padding: 14px 20px;
    }
    
    .filters-content {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        padding: 0;
        border-radius: 12px;
        background: #ffffff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease, margin-top 0.35s ease, opacity 0.2s ease;
        opacity: 0;
    }
    
    .filters-content.active {
        padding: 20px 16px;
        max-height: 600px;
        margin-top: 12px;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
        border: 1px solid var(--color-border);
        opacity: 1;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-label {
        display: none;
    }
    
    .filter-select,
    .btn-clear-filters {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .offer-type-tabs {
        gap: 0.25rem;
        margin-bottom: 1rem;
    }
    
    .offer-type-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .offer-type-tab .tab-count {
        font-size: 0.75rem;
        padding: 1px 6px;
    }
    
    .product-info {
        padding: 18px;
    }
    
    .price-amount {
        font-size: 1.75rem;
    }

    .plan-features {
        display: none;
    }

    .btn-buy i {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.85rem;
    }
    
    .product-image-wrapper {
        min-height: 180px;
        padding: 20px 14px 12px;
    }
    
    .product-image-cel {
        max-height: 160px;
    }

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

/* ========================================
   FOOTER BANNERS SECTION
   ======================================== */

.footer-banners-section {
    padding: 3rem 0;
    background: #f8fafc;
}

.footer-banner-link,
.footer-banner-static {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.footer-banner-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.footer-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .footer-banners-section {
        padding: 2rem 0;
    }
}

/* ========================================
   BANNER CARD (POSPAGO)
   ======================================== */

.banner-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.banner-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
