/* ==========================================================================
   Design System - Catálogo Claro "Me Llega"
   Color Palette: Primary Red (#d9272e), Accent Dark (#121212), Light Gray (#f8fafc)
   ========================================================================== */

:root {
  --color-primary: #d9272e;
  --color-primary-dark: #b81c22;
  --color-primary-light: #fff1f2;
  --color-dark: #0f172a;
  --color-gray-100: #f8fafc;
  --color-gray-200: #e2e8f0;
  --color-gray-500: #64748b;
  --color-gray-700: #334155;
  --color-gray-900: #0f172a;
  --color-green: #10b981;
  --color-green-dark: #059669;
  --color-yellow: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px -2px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 30px -4px rgba(217,39,46,0.18);
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: #f1f5f9;
  color: var(--color-gray-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  background-color: var(--color-primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(217, 39, 46, 0.2);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.logo-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.claro-header-logo {
  height: 28px;
  width: auto;
  display: block;
}

.badge-ejecutivo {
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

.header-subtitle {
  font-size: 0.75rem;
  opacity: 0.9;
}

.btn-whatsapp-header {
  background-color: #ffffff;
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-whatsapp-header i {
  color: #25D366;
  font-size: 1.1rem;
}

.btn-whatsapp-header:hover {
  background-color: #f8fafc;
  color: var(--color-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* Banner Promocional */
.promo-banner {
  background: linear-gradient(135deg, #d9272e 0%, #991b1e 100%);
  color: white;
  padding: 1.5rem 1.25rem;
  border-bottom: 3px solid #fbbf24;
}

.promo-container {
  max-width: 1280px;
  margin: 0 auto;
}

.promo-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.social-proof-pill i {
  color: #fbbf24;
}

.social-proof-pill strong {
  color: #ffffff;
  font-weight: 800;
}

.badge-promo {
  background-color: #fbbf24;
  color: #78350f;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.promo-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 0.5rem;
}

.promo-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Controls Container (Sticky Glassmorphism) */
/* top = header (68px en desktop) + category-nav (~49px) = 117px */
.controls-section {
  position: sticky;
  top: 117px;
  z-index: 90;
  background: rgba(241, 245, 249, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 100%;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.05);
}

.controls-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-bar-container {
  display: flex;
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(217, 39, 46, 0.12);
}

/* Dropdown de Sugerencias de Búsqueda con Scrollbar Sutil */
.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04);
  z-index: 200;
  max-height: 290px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
  animation: fadeInDown 0.18s ease-out;
}

/* Scrollbar estilizado para WebKit (Chrome, Safari, Edge) */
.search-suggestions-dropdown::-webkit-scrollbar {
  width: 6px;
}

.search-suggestions-dropdown::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 8px;
}

.search-suggestions-dropdown::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.search-suggestions-dropdown::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

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

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

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

.suggestion-item:hover, .suggestion-item.active {
  background-color: #f8fafc;
}

.suggestion-thumb {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--color-gray-200);
  border-radius: 6px;
  padding: 2px;
  flex-shrink: 0;
}

.suggestion-info {
  flex: 1;
  min-width: 0;
}

.suggestion-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-title mark {
  background: #fef08a;
  color: #713f12;
  border-radius: 2px;
  padding: 0 2px;
}

.suggestion-specs {
  font-size: 0.72rem;
  color: var(--color-gray-500);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--color-primary);
  flex-shrink: 0;
}

.suggestion-empty {
  padding: 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-gray-500);
}

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

.filter-btn {
  background: white;
  border: 1px solid var(--color-gray-200);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background-color: var(--color-gray-100);
  border-color: var(--color-gray-500);
}

.filter-btn.active {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(217, 39, 46, 0.3);
}

/* Grid de Catálogo */
.catalog-container {
  max-width: 1280px;
  margin: 1.5rem auto 3rem auto;
  padding: 0 1.25rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Card de Smartphone */
.phone-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.phone-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(217, 39, 46, 0.3);
}

.card-badges-wrapper {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 10;
}

.badge-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  white-space: nowrap;
}

.badge-exclusivo {
  margin-left: auto;
  background-color: #2563eb;
  color: white;
}

.phone-image-wrapper {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0 1rem 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 0.25rem;
  cursor: zoom-in;
  position: relative;
}

.zoom-overlay-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(4px);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.phone-card:hover .zoom-overlay-hint {
  opacity: 1;
  transform: translateY(0);
}

.phone-image {
  height: 100%;
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
}

.phone-card:hover .phone-image {
  transform: scale(1.05);
}

.brand-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.phone-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.specs-list {
  list-style: none;
  background-color: var(--color-gray-100);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--color-gray-700);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spec-icon {
  color: var(--color-primary);
  width: 16px;
  text-align: center;
}

.price-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-gray-200);
}

.price-offer {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-primary);
}

.price-regular {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  text-decoration: line-through;
}

.btn-order-whatsapp {
  margin-top: 0.75rem;
  width: 100%;
  background-color: var(--color-dark);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.btn-order-whatsapp:hover {
  background-color: var(--color-primary);
}

/* Modal Anti-Fraude */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: white;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-box {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--color-gray-500);
  cursor: pointer;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gray-700);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
}

.geo-status-box {
  background: var(--color-primary-light);
  border: 1px solid rgba(217, 39, 46, 0.2);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-confirm-submit {
  width: 100%;
  background-color: var(--color-green);
  color: white;
  border: none;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-confirm-submit:hover {
  background-color: var(--color-green-dark);
}

/* ==========================================================================
   RESPONSIVE PREMIUM — Mobile-First Design System
   Principios: Claridad, jerarquía, espaciado generoso, sin saturación.
   ========================================================================== */

html, body {
  max-width: 100%;
  overflow-x: clip;
}

/* ── TABLET (≤ 900px) ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* ── MÓVIL GRANDE (≤ 768px) ───────────────────────────────────────────── */
@media (max-width: 768px) {

  /* --- Header --- */
  .site-header {
    box-shadow: 0 2px 8px rgba(217, 39, 46, 0.25);
  }

  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .logo-brand-wrap {
    gap: 0.45rem;
  }

  .claro-header-logo {
    height: 24px;
  }

  .badge-ejecutivo {
    font-size: 0.62rem;
    padding: 0.16rem 0.5rem;
  }

  .header-subtitle {
    display: none; /* Ocultar subtítulo en móvil para dar aire */
  }

  .btn-whatsapp-header {
    background-color: #ffffff;
    color: var(--color-dark);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.38rem 0.75rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
    white-space: nowrap;
  }

  /* --- Banner Promocional --- */
  .promo-banner {
    padding: 1rem 1.25rem;
  }

  .badge-promo {
    font-size: 0.68rem;
    padding: 0.2rem 0.6rem;
  }

  .promo-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 0.35rem;
  }

  .promo-subtitle {
    font-size: 0.78rem;
    opacity: 0.88;
    margin-top: 0.2rem;
    line-height: 1.4;
  }

  /* --- Controles: buscador y filtros Sticky Flotante --- */
  /* En móvil (≤768px): header ~52px + nav-tabs ~44px = 96px */
  .main-category-nav {
    top: 52px;
  }

  .controls-section {
    position: sticky;
    top: 96px;
    z-index: 90;
    background: rgba(241, 245, 249, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin: 0 auto;
    padding: 0.6rem 0.875rem 0.65rem 0.875rem;
    gap: 0.45rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 14px -3px rgba(15, 23, 42, 0.08);
  }

  .controls-inner {
    gap: 0.45rem;
  }

  .search-input {
    font-size: 0.82rem;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    border: 1.5px solid var(--color-gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  }

  .filters-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.4rem;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .filter-btn {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.28rem 0.65rem;
    border-radius: 20px;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  /* --- Grid de productos (2 columnas) --- */
  .catalog-container {
    padding: 0 0.875rem;
    margin: 0.75rem auto 2.5rem auto;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* --- Card de Smartphone rediseñada para móvil --- */
  .phone-card {
    padding: 0.85rem 0.75rem 0.85rem 0.75rem;
    border-radius: var(--radius-md);
  }

  .phone-image-wrapper {
    height: 150px;
    margin: 0.25rem 0 0.65rem 0;
    padding: 0.15rem;
    border-radius: 10px;
  }

  .phone-card:hover .phone-image {
    transform: scale(1.04);
  }

  .card-badges-wrapper {
    top: 8px;
    left: 8px;
    right: 8px;
    gap: 4px;
  }

  .badge-tag, .product-badge {
    font-size: 0.58rem;
    padding: 0.18rem 0.4rem;
  }

  .brand-label {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }

  .phone-title {
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.4rem;
  }

  .specs-list {
    padding: 0.55rem 0.6rem;
    font-size: 0.7rem;
    gap: 0.25rem;
    margin-bottom: 0.6rem;
    border-radius: 7px;
  }

  .spec-icon {
    width: 13px;
    font-size: 0.65rem;
  }

  .price-box {
    padding-top: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }

  .price-offer {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
  }

  .price-regular {
    font-size: 0.72rem;
  }

  .btn-order-whatsapp {
    margin-top: 0.6rem;
    padding: 0.6rem 0.5rem;
    font-size: 0.72rem;
    border-radius: 9px;
    gap: 0.35rem;
  }

  /* --- Modal (pantalla completa en móvil) --- */
  .modal-backdrop {
    align-items: flex-end;   /* Desliza desde abajo, más natural en móvil */
    padding: 0;
  }

  .modal-box {
    max-width: 100%;
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 1.5rem 1.25rem 2rem 1.25rem;
    margin: 0;
    transform: translateY(100%);
    max-height: 92dvh;
    overflow-y: auto;
  }

  .modal-backdrop.active .modal-box {
    transform: translateY(0);
  }

  .modal-title {
    font-size: 1.1rem;
  }

  .form-control {
    font-size: 1rem;        /* Evita zoom automático en iOS */
    padding: 0.7rem 0.9rem;
  }

  .btn-confirm-submit {
    padding: 0.95rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }
}

/* ── MÓVIL PEQUEÑO (≤ 380px) ──────────────────────────────────────────── */
@media (max-width: 380px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .phone-image-wrapper {
    height: 130px;
  }

  .phone-title {
    font-size: 0.8rem;
  }

  .price-offer {
    font-size: 1.25rem;
  }

  .btn-order-whatsapp {
    font-size: 0.68rem;
  }
}

/* ── FOOTER CORPORATIVO Y PRUEBA SOCIAL ─────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2.2rem 1.25rem 2.5rem 1.25rem;
  border-top: 1px solid #1e293b;
  margin-top: 3.5rem;
  text-align: center;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.footer-trust-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-stats {
  font-size: 0.82rem;
  color: #cbd5e1;
  background: #1e293b;
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  border: 1px solid #334155;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-stats strong {
  color: #38bdf8;
}

.footer-copy {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  max-width: 600px;
  line-height: 1.4;
}

/* ── LIGHTBOX / VISTA AMPLIADA DE IMAGEN ────────────────────────────── */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-dialog {
  background: #ffffff;
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-backdrop.active .lightbox-dialog {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.lightbox-close:hover {
  background: #d9272e;
  transform: scale(1.08);
}

.lightbox-image-container {
  height: 48vh;
  min-height: 260px;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #ffffff 0%, #f8fafc 100%);
  padding: 1.5rem;
  overflow: hidden;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
}

.lightbox-footer {
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lightbox-brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: #d9272e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lightbox-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.15rem 0 0.3rem 0;
}

.lightbox-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.lightbox-price-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.lightbox-price-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: #d9272e;
}

.btn-lightbox-cotizar {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-lightbox-cotizar:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

@media (max-width: 640px) {
  .lightbox-dialog {
    max-width: 92vw;
    border-radius: 16px;
  }

  .lightbox-image-container {
    height: 40vh;
    padding: 1rem;
  }

  .lightbox-title {
    font-size: 1.1rem;
  }

  .lightbox-price-val {
    font-size: 1.25rem;
  }
}

/* ── RESTRICCIÓN POR UBICACIÓN GPS OBLIGATORIA ─────────────────────── */
.location-lock-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.25rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.location-lock-screen.unlocked {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
}

.location-lock-card {
  background: #ffffff;
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-lock-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  background: #fee2e2;
  color: #d9272e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(217, 39, 46, 0.18);
}

.location-lock-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.location-lock-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 1.5rem 0;
}

.btn-location-activate {
  background: linear-gradient(135deg, #d9272e 0%, #b91c1c 100%);
  color: #ffffff;
  border: none;
  padding: 0.95rem 1.5rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 16px rgba(217, 39, 46, 0.35);
  transition: all 0.2s ease;
}

.btn-location-activate:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(217, 39, 46, 0.45);
}

.location-error-box {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #991b1e;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
  line-height: 1.4;
}

.location-help-tip {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  line-height: 1.4;
}

  .location-error-box {
    font-size: 0.78rem;
    padding: 0.6rem 0.85rem;
  }
}

/* ── GUÍA PASO A PASO PARA DESBLOQUEAR UBICACIÓN ─────────────────────── */
.location-denied-panel {
  margin-top: 1rem;
  text-align: left;
  animation: fadeIn 0.3s ease;
}

.pasos-desbloqueo-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-top: 0.85rem;
}

/* Barra simulada de navegador para guía visual ultra clara */
.mock-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  margin: 0.5rem 0 0.85rem 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mock-icon-tune {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
}

.mock-highlight {
  background: #fee2e2;
  color: #d9272e;
  border: 1.5px solid #f87171;
  animation: pulseHighlight 1.5s infinite alternate;
}

.mock-highlight-subtle {
  color: #64748b;
  font-size: 0.85rem;
}

.mock-url {
  font-family: monospace;
  font-size: 0.82rem;
  color: #334155;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mock-icon-right {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #64748b;
}

@keyframes pulseHighlight {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(217, 39, 46, 0.4);
  }
  100% {
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(217, 39, 46, 0);
  }
}

.pasos-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.6rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pasos-lista {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.6;
}

.pasos-lista li {
  margin-bottom: 0.35rem;
}

.pasos-lista li:last-child {
  margin-bottom: 0;
}

.badge-permitir {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
  border: 1px solid #bbf7d0;
}

.btn-reload-location {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 0.95rem 1.5rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-reload-location:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
}

/* ── BARRA DE PESTAÑAS DE NAVEGACIÓN PRINCIPAL ─────────────────────── */
/* top = altura del header en desktop (~68px) */
.main-category-nav {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 68px;
  z-index: 95;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: nowrap;           /* CRÍTICO: nunca apilar en múltiples filas */
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  box-sizing: border-box;
}

.category-nav-container::-webkit-scrollbar {
  display: none;
}

.nav-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-tab-btn i {
  font-size: 0.95rem;
  color: #64748b;
  transition: color 0.2s ease;
}

.nav-tab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.nav-tab-btn.active {
  background: #d9272e;
  border-color: #d9272e;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 39, 46, 0.3);
}

.nav-tab-btn.active i {
  color: #ffffff;
}

/* Etiquetas duales — desktop muestra completo, móvil muestra corto */
.tab-label-short {
  display: none !important;
}

.tab-label-full {
  display: inline !important;
}

/* En móvil y tablet (≤768px): distribuir pestañas en todo el ancho */
@media (max-width: 768px) {
  /* Sin scroll, distribuidas uniformemente */
  .category-nav-container {
    overflow-x: auto;
    padding: 0.35rem 0.5rem;
    gap: 0.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  /* Cada pestaña toma el mismo espacio */
  .nav-tab-btn {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 0.25rem;
    font-size: 0.72rem;
    gap: 0.2rem;
    min-width: 0;
    white-space: nowrap;
    border-radius: 9999px;
  }

  .nav-tab-btn i {
    font-size: 0.82rem;
  }

  /* Solo mostrar texto corto */
  .tab-label-short {
    display: inline !important;
  }

  .tab-label-full {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .nav-tab-btn {
    padding: 0.45rem 0.15rem;
    font-size: 0.68rem;
    gap: 0.15rem;
  }
  .nav-tab-btn i {
    font-size: 0.75rem;
  }
}

/* ── VISTAS DE CATEGORÍA ───────────────────────────────────────────── */
.category-view {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── SECCIÓN DE PORTABILIDAD ───────────────────────────────────────── */
.portabilidad-section {
  padding: 2rem 1rem 3rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.porta-card-hero {
  background: linear-gradient(135deg, #d9272e 0%, #991b1e 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 40px -10px rgba(217, 39, 46, 0.35);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.porta-card-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.porta-badge-top {
  display: inline-block;
  background: #fef08a;
  color: #854d0e;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.porta-main-title {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 0.6rem 0;
  letter-spacing: -0.02em;
}

.porta-main-desc {
  font-size: 1rem;
  opacity: 0.92;
  line-height: 1.5;
  margin: 0 0 1.75rem 0;
  max-width: 700px;
}

.porta-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.benefit-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  backdrop-filter: blur(10px);
}

.benefit-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-gold { color: #eab308; }
.icon-youtube { color: #ef4444; }
.icon-chat { color: #10b981; }
.icon-phone { color: #3b82f6; }
.icon-time { color: #8b5cf6; }
.icon-calendar { color: #f97316; }

.benefit-pill strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.benefit-pill span {
  display: block;
  font-size: 0.78rem;
  opacity: 0.85;
}

.btn-porta-cta {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 1.1rem 2rem;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.btn-porta-cta:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5);
}

/* Tarjeta Portabilidad GOLD */
.porta-card-gold {
  background: #ffffff;
  border-radius: 20px;
  border: 2px solid #fef08a;
  padding: 1.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.gold-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.badge-gold-pill {
  background: #fef3c7;
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.gold-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
}

.gold-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fffbeb;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.gold-apps {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.app-icon-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.icon-tiktok { color: #000000; }
.icon-whatsapp { color: #10b981; }

.gold-unlimited-text {
  color: #d9272e;
  font-size: 1rem;
  font-weight: 900;
}

.gold-price-box {
  text-align: right;
}

.gold-price {
  font-size: 1.85rem;
  font-weight: 900;
  color: #d9272e;
  line-height: 1;
}

.gold-vigencia {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.gold-note {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 1.25rem 0;
}

.btn-porta-gold-cta {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  padding: 0.95rem 1.5rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.btn-porta-gold-cta:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
}

/* ── SECCIÓN DE CHIPS NUEVOS & ACTIVACIONES ────────────────────────── */
.chips-section {
  padding: 2rem 1rem 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.chips-header-box {
  text-align: center;
  margin-bottom: 2.25rem;
}

.chips-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0.5rem 0 0.4rem 0;
  letter-spacing: -0.02em;
}

.chips-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
}

.chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.chip-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
}

.chip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.chip-card.card-featured {
  border: 2px solid #d9272e;
  box-shadow: 0 10px 30px rgba(217, 39, 46, 0.15);
  transform: scale(1.02);
}

.badge-card-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #d9272e;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.chip-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.chip-days {
  font-size: 0.85rem;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.chip-price {
  font-size: 1.85rem;
  font-weight: 900;
  color: #0f172a;
}

.chip-apps-badge {
  background: #fee2e2;
  color: #991b1e;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1.15rem;
}

.chip-apps-badge.badge-both {
  background: #fef08a;
  color: #854d0e;
}

.chip-specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  font-size: 0.84rem;
  color: #334155;
}

.chip-specs-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.chip-specs-list li i {
  color: #10b981;
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
}

.btn-order-chip {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
  width: 100%;
}

.btn-order-chip:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-order-chip-featured {
  background: linear-gradient(135deg, #d9272e 0%, #b91c1c 100%);
  box-shadow: 0 4px 14px rgba(217, 39, 46, 0.35);
}

.btn-order-chip-featured:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1e 100%);
  box-shadow: 0 6px 20px rgba(217, 39, 46, 0.45);
}

/* ==========================================================================
   RESPONSIVE COMPLETO — Portabilidad, Chips & Nav Tabs
   Breakpoints: PC >1024 / Tablet 641-900 / Móvil 380-640 / Tiny <380
   ========================================================================== */

/* ── PC GRANDE (>1024px): Todos los contenedores en su máximo esplendor ── */
@media (min-width: 1025px) {
  .porta-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .chips-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .portabilidad-section,
  .chips-section {
    padding: 2.5rem 1.5rem 4rem 1.5rem;
  }
}

/* ── TABLET (641–1024px): 2-columnas y ajustes de navegación ─────────── */
@media (max-width: 1024px) and (min-width: 641px) {
  /* Nav tabs: reducir padding y fuente */
  .nav-tab-btn {
    padding: 0.55rem 0.95rem;
    font-size: 0.84rem;
    gap: 0.4rem;
  }

  /* category-nav top = header ~60px en tablet */
  .main-category-nav {
    top: 60px;
  }

  /* controls-section top = header ~60px + nav-tabs ~44px = 104px */
  .controls-section {
    top: 104px;
  }

  /* Portabilidad: 2 columnas para beneficios */
  .porta-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .porta-card-hero {
    padding: 2rem 1.5rem;
  }

  .porta-main-title {
    font-size: 1.6rem;
  }

  /* Chips: 3 columnas en tablet */
  .chips-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  /* Card $12 no escala en tablet para evitar overflow */
  .chip-card.card-featured {
    transform: scale(1.01);
  }

  .portabilidad-section,
  .chips-section {
    padding: 2rem 1.25rem 3rem 1.25rem;
  }

  .porta-container {
    max-width: 800px;
  }

  .chips-container {
    max-width: 960px;
  }
}

/* ── MÓVIL (≤640px): Vista de columna única, táctil y limpia ─────────── */
@media (max-width: 640px) {
  /* Nav tabs: compacto y deslizable horizontalmente */
  .main-category-nav {
    top: 52px;
  }

  .category-nav-container {
    padding: 0.4rem 0.875rem;
    gap: 0.4rem;
  }

  .nav-tab-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.78rem;
    gap: 0.3rem;
    border-radius: 9999px;
  }

  .nav-tab-btn i {
    font-size: 0.85rem;
  }

  /* controls-section top = header ~52px + nav-tabs ~42px = 94px */
  .controls-section {
    top: 94px;
  }

  /* ── Portabilidad ── */
  .portabilidad-section {
    padding: 1.25rem 0.875rem 2.5rem 0.875rem;
  }

  .porta-card-hero {
    padding: 1.5rem 1.125rem 1.75rem 1.125rem;
    border-radius: 18px;
  }

  .porta-badge-top {
    font-size: 0.68rem;
    padding: 0.28rem 0.65rem;
    margin-bottom: 0.65rem;
  }

  .porta-main-title {
    font-size: 1.25rem;
    letter-spacing: -0.015em;
    line-height: 1.2;
  }

  .porta-main-desc {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    line-height: 1.45;
  }

  .porta-benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }

  .benefit-pill {
    padding: 0.65rem 0.75rem;
    gap: 0.6rem;
    border-radius: 12px;
  }

  .benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.1rem;
  }

  .benefit-pill strong {
    font-size: 0.8rem;
  }

  .benefit-pill span {
    font-size: 0.68rem;
  }

  .btn-porta-cta {
    padding: 0.95rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 14px;
  }

  /* GOLD */
  .porta-card-gold {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .gold-title {
    font-size: 1.05rem;
  }

  .gold-content-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .gold-price-box {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
  }

  .gold-price {
    font-size: 1.5rem;
  }

  .gold-apps {
    gap: 0.5rem;
  }

  /* ── Chips Nuevos (1 Columna en Móvil para máxima legibilidad sin cortes) ── */
  .chips-section {
    padding: 1.25rem 0.875rem 2.5rem 0.875rem;
  }

  .chips-header-box {
    margin-bottom: 1.5rem;
  }

  .chips-title {
    font-size: 1.35rem;
    margin: 0.4rem 0 0.3rem 0;
  }

  .chips-subtitle {
    font-size: 0.82rem;
  }

  .chips-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
    gap: 1.25rem;
  }

  .chip-card {
    padding: 1.4rem 1.25rem;
    border-radius: 18px;
    width: 100%;
    box-sizing: border-box;
  }

  .chip-card.card-featured {
    grid-column: auto;
    transform: none;
    border-radius: 18px;
  }

  .chip-card-header {
    margin-bottom: 0.75rem;
  }

  .chip-days {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
  }

  .chip-price {
    font-size: 1.75rem;
  }

  .chip-apps-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    margin-bottom: 1rem;
  }

  .chip-specs-list {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .chip-specs-list li {
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    line-height: 1.4;
  }

  .btn-order-chip {
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    border-radius: 12px;
    gap: 0.5rem;
  }

  .badge-card-top {
    font-size: 0.68rem;
    padding: 0.22rem 0.7rem;
    top: -11px;
  }
}

/* ── MÓVIL PEQUEÑO (<380px) ───────────────────────────────────────────── */
@media (max-width: 380px) {
  .porta-benefits-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .porta-main-title {
    font-size: 1.1rem;
  }

  .chip-price {
    font-size: 1.5rem;
  }
}

/* ── SECCIÓN DE UNIDADES DE PISO & SALDOS ──────────────────────────── */
.piso-section {
  padding: 2rem 1rem 3.5rem 1rem;
  max-width: 1240px;
  margin: 0 auto;
}

.piso-header-box {
  text-align: center;
  margin-bottom: 2rem;
}

.piso-badge-top {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  border: 1px solid #fde68a;
}

.piso-main-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.piso-main-desc {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0 auto;
  max-width: 680px;
  line-height: 1.5;
}

/* Buscador de Piso */
.piso-search-wrap {
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.piso-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 9999px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.piso-search-bar:focus-within {
  border-color: #d9272e;
  box-shadow: 0 4px 20px rgba(217, 39, 46, 0.12);
}

.piso-search-icon {
  position: absolute;
  left: 1.1rem;
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
}

.piso-search-input {
  width: 100%;
  padding: 0.8rem 1.25rem 0.8rem 2.8rem;
  border: none;
  border-radius: 9999px;
  font-size: 0.92rem;
  color: #0f172a;
  outline: none;
  background: transparent;
  font-family: inherit;
}

/* Grid de Unidades de Piso */
.piso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Tarjeta de Piso Individual */
.piso-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 1.35rem 1.2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.piso-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}

.piso-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.badge-piso-tag {
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #fee2e2;
}

.piso-tag-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
}

.piso-card-body {
  margin-bottom: 1.15rem;
}

.piso-icon-brand {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d9272e;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.piso-model-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  line-height: 1.35;
  min-height: 2.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.piso-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-bottom: 0.55rem;
}

.piso-price-currency {
  font-size: 1.1rem;
  font-weight: 800;
  color: #d9272e;
}

.piso-price-amount {
  font-size: 1.75rem;
  font-weight: 900;
  color: #d9272e;
  letter-spacing: -0.02em;
}

.piso-stock-info {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.35;
}

.btn-order-piso {
  background: #25D366;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-order-piso:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.piso-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
}

.piso-empty-state i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

/* Responsivo para Tablet y Móvil */
@media (max-width: 1024px) {
  .piso-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .piso-section {
    padding: 1.5rem 0.85rem 3rem 0.85rem;
  }

  .piso-main-title {
    font-size: 1.45rem;
  }

  .piso-main-desc {
    font-size: 0.85rem;
  }

  .piso-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .piso-card {
    padding: 1.15rem 0.95rem;
    border-radius: 16px;
  }

  .piso-model-title {
    font-size: 0.95rem;
    min-height: 2.5rem;
  }

  .piso-price-amount {
    font-size: 1.5rem;
  }

  .btn-order-piso {
    padding: 0.72rem 0.8rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .piso-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 1rem;
  }
}

/* ───────────────────────────────────────────────────────── */
/* ── MEJORAS VISUALES Y UX (BADGES, FILTROS, CONTADOR) ──── */
/* ───────────────────────────────────────────────────────── */

/* Filtros por Presupuesto */
.price-filters-wrapper {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none; /* Firefox */
}
.price-filters-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.price-btn {
  background: white;
  border: 1px solid var(--color-gray-200);
  color: var(--color-gray-600);
  border-radius: 20px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.price-btn:hover {
  background: var(--color-gray-100);
}
.price-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 4px 6px rgba(217, 39, 46, 0.2);
}

/* Contador Dinámico */
.results-count-container {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  font-weight: 500;
  margin-top: -0.25rem;
}
.results-count-container strong {
  color: var(--color-gray-800);
}

/* Badges de Producto */
.product-badge {
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  font-size: 0.70rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.badge-oferta {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.badge-destacado {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Animaciones suaves al filtrar (Fade in) */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.phone-card {
  animation: fadeInScale 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

