/* ==========================================================================
       VARIABLES Y PALETA EXACTA DE CHAMELEON TECH
       ========================================================================== */
    :root {
      --bg: #0B1C2D;
      --bg-darker: #071320;
      --card-bg: #162B3D; 
      --card-bg-hover: #1b354b;
      --accent: #19E3D2; 
      --accent-glow: rgba(25, 227, 210, 0.4);
      --accent-secondary: #0FB5A8;
      --text: #ffffff;
      --text-muted: #94A3B8;
      --wa-green: #25D366;
      --reserve-orange: #FF9800;
      --dark-blue: #0B1C2D;
      --old-price-color: #B0BCC7;
      --chat-bg: #0F2538;
      --chat-user: #19E3D2;
      --chat-bot: #162B3D;
      
      --radius-sm: 10px;
      --radius-md: 18px;
      --radius-lg: 28px;
      --radius-xl: 36px;
      --radius-full: 9999px;
      
      --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      background-color: var(--bg);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      color: var(--text);
      overflow-x: hidden;
      line-height: 1.5;
      min-height: 100vh;
    }

    /* Contenedor Responsivo Centralizado */
    .container {
      width: 100%;
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 20px;
    }

    @media (min-width: 768px) {
      .container {
        padding: 0 32px;
      }
    }

    /* ==========================================================================
       HEADER (Fijo, Adaptable a Móvil y Pantallas Anchas de Escritorio)
       ========================================================================== */
    header {
      position: sticky;
      top: 0;
      width: 100%;
      background: rgba(15, 37, 56, 0.94);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      z-index: 100;
      border-bottom: 1px solid rgba(25, 227, 210, 0.15);
      transition: var(--transition);
    }

    .header-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 76px;
    }
    
    .header-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    
    .logo-container {
      position: relative;
      display: inline-block;
      border-radius: 50%;
      overflow: hidden;
      width: 52px;
      height: 52px;
      flex-shrink: 0;
    }
    
    .brand-logo { 
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      filter: drop-shadow(0px 0px 14px var(--accent));
      position: relative;
      z-index: 1;
    }
    
    /* Animación de brillo original de la marca */
    .logo-container::before {
      content: '';
      position: absolute;
      top: -150%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(25, 227, 210, 0.25) 45%,
        rgba(25, 227, 210, 0.6) 50%,
        rgba(25, 227, 210, 0.25) 55%,
        transparent 70%
      );
      transform: rotate(35deg);
      animation: shine 6s infinite ease-in-out;
      z-index: 2;
      pointer-events: none;
    }
    
    @keyframes shine {
      0% { transform: rotate(35deg) translateX(-180%) translateY(-180%); opacity: 0; }
      30%, 70% { opacity: 0.9; }
      100% { transform: rotate(35deg) translateX(180%) translateY(180%); opacity: 0; }
    }
    
    .logo-container::after {
      content: '';
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(25, 227, 210, 0.2) 0%, transparent 70%);
      animation: pulse 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 0;
    }
    
    @keyframes pulse {
      0% { opacity: 0; transform: scale(0.95); }
      50% { opacity: 0.7; transform: scale(1.08); }
      100% { opacity: 0; transform: scale(1.15); }
    }
    
    .brand-name { 
      font-size: clamp(18px, 3.5vw, 24px); 
      font-weight: 900; 
      letter-spacing: 2px; 
      text-transform: uppercase;
      font-family: 'Outfit', 'Poppins', sans-serif;
      background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      white-space: nowrap;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .btn-header-wa {
      display: none;
      align-items: center;
      gap: 8px;
      padding: 8px 18px;
      border-radius: var(--radius-full);
      background: rgba(25, 227, 210, 0.12);
      border: 1.5px solid var(--accent);
      color: var(--accent);
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      transition: var(--transition);
    }

    @media (min-width: 640px) {
      .btn-header-wa {
        display: inline-flex;
      }
    }

    .btn-header-wa:hover {
      background: var(--accent);
      color: var(--dark-blue);
      box-shadow: 0 0 20px var(--accent-glow);
    }

    .cart-btn-header {
      position: relative;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(25, 227, 210, 0.3);
      cursor: pointer;
      color: var(--accent);
      transition: var(--transition);
    }

    .cart-btn-header:hover {
      background: rgba(25, 227, 210, 0.15);
      border-color: var(--accent);
      transform: translateY(-2px);
    }

    .cart-badge {
      position: absolute;
      top: -4px;
      right: -4px;
      background: #FF6B6B;
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      min-width: 18px;
      height: 18px;
      border-radius: var(--radius-full);
      display: none;
      align-items: center;
      justify-content: center;
      border: 2px solid var(--bg);
    }

    /* ==========================================================================
       HERO SECTION (Diseño Mejorado, Fondo Tech y Tipografía Adaptable)
       ========================================================================== */
    .hero { 
      position: relative;
      padding: clamp(50px, 8vw, 90px) 0 clamp(60px, 9vw, 100px);
      background-color: #0F2538;
      background-image: 
        radial-gradient(circle at 50% 30%, rgba(25, 227, 210, 0.15), transparent 60%),
        linear-gradient(180deg, rgba(11, 28, 45, 0.82) 0%, rgba(11, 28, 45, 0.96) 100%),
        url('assets/img/hero-bg.jpg');
      background-size: cover;
      background-position: center;
      border-bottom: 2px solid rgba(25, 227, 210, 0.12);
      text-align: center;
      overflow: hidden;
    }

    .hero-inner {
      max-width: 820px;
      margin: 0 auto;
    }

    .hero-badge-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 18px;
      border-radius: var(--radius-full);
      background: rgba(25, 227, 210, 0.1);
      border: 1px solid rgba(25, 227, 210, 0.35);
      color: var(--accent);
      font-size: 13px;
      font-weight: 700;
      margin-bottom: 22px;
      letter-spacing: 0.5px;
      backdrop-filter: blur(8px);
    }

    .hero-badge-pill .pill-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 10px var(--accent);
    }

    /* Tipografía de Alto Nivel para "Nos adaptamos a tus Gustos" */
    .hero h1 { 
      font-size: clamp(34px, 6vw, 62px); 
      font-weight: 900; 
      line-height: 1.12; 
      margin: 0;
      font-family: 'Outfit', 'Poppins', sans-serif;
      text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
      letter-spacing: -0.5px;
    }
    
    .hero h1 .highlight { 
      color: var(--accent);
      background: linear-gradient(135deg, #19E3D2 0%, #00F5D4 50%, #ffffff 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      text-shadow: none;
      position: relative;
      display: inline-block;
    }
    
    .hero h1 .highlight::after {
      content: '';
      position: absolute;
      bottom: 2px;
      left: 0;
      width: 100%;
      height: 6px;
      background: rgba(25, 227, 210, 0.4);
      border-radius: 4px;
      z-index: -1;
    }
    
    .hero p { 
      font-size: clamp(16px, 2.5vw, 22px); 
      margin: 22px auto 38px auto; 
      color: #E2E8F0; 
      font-weight: 500;
      text-shadow: 0 2px 12px rgba(0,0,0,0.7);
      line-height: 1.5;
      max-width: 640px;
    }
    
    .hero-buttons {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    .btn-outlined { 
      padding: 16px 36px; 
      border-radius: 20px; 
      font-size: 16px; 
      font-weight: 900; 
      text-align: center; 
      text-decoration: none; 
      display: inline-flex; 
      align-items: center;
      justify-content: center;
      gap: 10px;
      color: var(--accent); 
      border: 3px solid var(--accent);
      text-transform: uppercase;
      letter-spacing: 1px;
      box-shadow: 0 0 30px rgba(25, 227, 210, 0.25);
      transition: all 0.25s ease;
      background: rgba(11, 28, 45, 0.6);
      backdrop-filter: blur(10px);
    }

    .btn-outlined:hover {
      background: var(--accent);
      color: var(--dark-blue);
      transform: translateY(-3px);
      box-shadow: 0 10px 40px rgba(25, 227, 210, 0.5);
    }

    .btn-catalog-hero {
      padding: 16px 36px; 
      border-radius: 20px; 
      font-size: 16px; 
      font-weight: 900; 
      text-align: center; 
      text-decoration: none; 
      display: inline-flex; 
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: #000; 
      background: linear-gradient(135deg, #19E3D2, #0FB5A8);
      text-transform: uppercase;
      letter-spacing: 1px;
      box-shadow: 0 10px 35px rgba(25, 227, 210, 0.4);
      transition: all 0.25s ease;
      border: none;
      cursor: pointer;
    }

    .btn-catalog-hero:hover {
      transform: translateY(-3px);
      box-shadow: 0 15px 45px rgba(25, 227, 210, 0.6);
      filter: brightness(1.08);
    }

    /* ==========================================================================
       FEATURES (Compactas, Elegantes y Proporcionales en PC y Móvil)
       ========================================================================== */
    .features-section {
      padding: 16px 0 10px 0;
    }

    .features-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      max-width: 420px;
      margin: 0 auto;
      padding: 0 12px;
    }

    @media (min-width: 768px) {
      .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        max-width: 720px;
        padding: 0;
      }
    }

    .feature-card {
      border-radius: 12px;
      padding: 9px 8px;
      text-align: center;
      border: 1px solid rgba(25, 227, 210, 0.3);
      transition: all 0.2s ease;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      backdrop-filter: blur(8px);
    }
    
    .feature-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    }

    .feature-card:active {
      transform: scale(0.98);
    }
    
    .feature-icon {
      width: 22px;
      height: 22px;
      margin: 0 auto 4px auto;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .feature-icon svg {
      width: 100%;
      height: 100%;
    }
    
    .feature-title {
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.4px;
      margin-bottom: 1px;
      font-family: 'Outfit', sans-serif;
      line-height: 1.2;
    }

    .feature-sub {
      font-size: 10px;
      font-weight: 500;
      color: #CBD5E1;
      letter-spacing: 0.2px;
      line-height: 1.2;
    }

    @media (min-width: 768px) {
      .feature-card {
        padding: 10px 10px;
        border-radius: 14px;
      }
      .feature-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 5px;
      }
      .feature-title {
        font-size: 12.5px;
      }
      .feature-sub {
        font-size: 10.5px;
      }
    }

    /* Colores y estilos originales de las tarjetas */
    .feature-card:nth-child(1),
    .feature-card:nth-child(4) {
      background: linear-gradient(135deg, rgba(22, 43, 61, 0.95) 0%, rgba(15, 37, 56, 0.95) 100%);
    }
    .feature-card:nth-child(1) .feature-icon svg,
    .feature-card:nth-child(4) .feature-icon svg {
      stroke: var(--accent);
      filter: drop-shadow(0 0 5px rgba(25, 227, 210, 0.4));
    }
    .feature-card:nth-child(1) .feature-title,
    .feature-card:nth-child(4) .feature-title {
      color: var(--accent);
    }

    .feature-card:nth-child(2),
    .feature-card:nth-child(3) {
      background: linear-gradient(135deg, var(--accent) 0%, #0FB5A8 100%);
      border: 1px solid rgba(255, 255, 255, 0.4);
      box-shadow: 0 4px 14px rgba(25, 227, 210, 0.2);
    }
    .feature-card:nth-child(2) .feature-icon svg,
    .feature-card:nth-child(3) .feature-icon svg {
      stroke: var(--dark-blue);
    }
    .feature-card:nth-child(2) .feature-title,
    .feature-card:nth-child(3) .feature-title,
    .feature-card:nth-child(2) .feature-sub,
    .feature-card:nth-child(3) .feature-sub {
      color: var(--dark-blue);
    }

    /* ==========================================================================
       CATÁLOGO: ENCABEZADO Y CONTROLES
       ========================================================================== */
    .catalog-section {
      padding: 24px 0 60px 0;
    }

    .catalog-heading {
      text-align: center;
      margin-bottom: 26px;
      scroll-margin-top: 80px;
    }

    .catalog-badge {
      display: inline-block;
      padding: 4px 14px;
      border-radius: var(--radius-full);
      background: rgba(25, 227, 210, 0.1);
      border: 1px solid rgba(25, 227, 210, 0.3);
      color: var(--accent);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .catalog-title {
      font-size: clamp(24px, 4.5vw, 34px);
      font-weight: 800;
      margin: 0 0 6px 0;
      color: #ffffff;
      font-family: 'Outfit', 'Poppins', sans-serif;
      letter-spacing: -0.5px;
    }

    .catalog-subtitle {
      font-size: clamp(13px, 2vw, 15px);
      color: #94A3B8;
      margin: 0 auto;
      max-width: 500px;
      line-height: 1.4;
      font-weight: 400;
    }

    /* Barra de Búsqueda y Pestañas de Filtro */
    .catalog-toolbar {
      display: flex;
      flex-direction: column;
      gap: 16px;
      margin-bottom: 28px;
    }

    @media (min-width: 768px) {
      .catalog-toolbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
      }
    }

    .filter-pills {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 4px;
    }

    .filter-pill {
      padding: 8px 18px;
      border-radius: var(--radius-full);
      background: rgba(255, 255, 255, 0.05);
      border: 1.5px solid rgba(255, 255, 255, 0.12);
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: var(--transition);
      white-space: nowrap;
    }

    .filter-pill:hover {
      color: #fff;
      border-color: rgba(25, 227, 210, 0.4);
    }

    .filter-pill.active {
      background: rgba(25, 227, 210, 0.15);
      border-color: var(--accent);
      color: var(--accent);
      box-shadow: 0 0 15px rgba(25, 227, 210, 0.25);
    }

    .search-container {
      position: relative;
      min-width: 250px;
    }

    .search-input {
      width: 100%;
      padding: 10px 16px 10px 40px;
      border-radius: var(--radius-full);
      background: rgba(255, 255, 255, 0.06);
      border: 1.5px solid rgba(255, 255, 255, 0.12);
      color: #ffffff;
      font-size: 14px;
      outline: none;
      transition: var(--transition);
    }

    .search-input:focus {
      border-color: var(--accent);
      background: rgba(255, 255, 255, 0.09);
      box-shadow: 0 0 20px rgba(25, 227, 210, 0.2);
    }

    .search-icon {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      pointer-events: none;
    }

    /* Lista de Productos (Siempre visible) */
    #seccion-lista-productos { 
      display: block;
      width: 100%;
    }
    
    /* Grid Adaptable a Cualquier Dispositivo */
    #productos { 
      display: grid; 
      grid-template-columns: repeat(2, 1fr); 
      gap: 16px; 
      padding-bottom: 40px;
    }
    
    @media (max-width: 520px) {
      #productos {
        grid-template-columns: 1fr;
        gap: 20px;
      }
    }

    @media (min-width: 768px) {
      #productos {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
      }
    }

    @media (min-width: 1100px) {
      #productos {
        grid-template-columns: repeat(4, 1fr);
        gap: 26px;
      }
    }
    
    /* ==========================================================================
       TARJETA DE PRODUCTO (Acabados Premium, Fotos Reales y Badges)
       ========================================================================== */
    .card {
      background: var(--card-bg); 
      border-radius: var(--radius-lg); 
      overflow: hidden; 
      box-shadow: 0 15px 35px rgba(0,0,0,0.5);
      border: 2px solid rgba(25, 227, 210, 0.4);
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
      position: relative;
      display: flex;
      flex-direction: column;
    }
    
    .card:hover { 
      transform: translateY(-6px);
      border-color: var(--accent);
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(25, 227, 210, 0.25);
      background: var(--card-bg-hover);
    }
    
    /* Badge de DISPONIBLE / AGOTADO */
    .card-badge-status {
      position: absolute;
      top: 12px;
      left: 12px;
      z-index: 5;
      padding: 6px 14px;
      border-radius: var(--radius-full);
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      backdrop-filter: blur(8px);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .card-badge-status.disponible {
      background: rgba(0, 210, 106, 0.92);
      color: #ffffff;
      box-shadow: 0 2px 12px rgba(0, 210, 106, 0.45);
    }

    .card-badge-status.disponible::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #fff;
    }

    .card-badge-status.agotado {
      background: rgba(230, 81, 0, 0.92);
      color: #ffffff;
      box-shadow: 0 2px 12px rgba(230, 81, 0, 0.45);
    }

    .card-photos-count {
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 5;
      background: rgba(11, 28, 45, 0.75);
      backdrop-filter: blur(6px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #E2E8F0;
      font-size: 11px;
      font-weight: 700;
      padding: 4px 8px;
      border-radius: var(--radius-sm);
    }

    .img-wrap { 
      width: 100%; 
      height: 220px; 
      background: radial-gradient(circle at center, rgba(25, 227, 210, 0.08) 0%, #071320 75%);
      position: relative;
      overflow: hidden;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .img-wrap img { 
      width: 100%; 
      height: 100%; 
      object-fit: contain; 
      padding: 12px;
      transition: transform 0.4s ease;
    }

    .card:hover .img-wrap img {
      transform: scale(1.08);
    }

    .card-info { 
      padding: 18px; 
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    
    .card h3 { 
      font-size: 15px; 
      font-weight: 800; 
      margin: 0 0 10px 0; 
      text-transform: uppercase; 
      color: #FFFFFF;
      line-height: 1.35;
      letter-spacing: 0.5px;
      cursor: pointer;
      font-family: 'Outfit', sans-serif;
    }

    .card h3:hover {
      color: var(--accent);
    }
    
    .price-container {
      display: flex;
      align-items: baseline;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: auto;
      padding-top: 10px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .old-price {
      font-size: 14px;
      color: var(--old-price-color);
      text-decoration: line-through;
      text-decoration-thickness: 2px;
      text-decoration-color: #FF6B6B;
      opacity: 0.75;
    }

    .current-price {
      font-size: 22px;
      font-weight: 900;
      color: var(--accent);
      font-family: 'Outfit', sans-serif;
    }

    .discount-badge {
      background: #FF6B6B;
      color: white;
      padding: 4px 8px;
      border-radius: var(--radius-sm);
      font-size: 11px;
      font-weight: 800;
      margin-left: auto;
    }

    .card-actions-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px;
      margin-top: 12px;
    }

    .btn-card-pedir {
      background: rgba(25, 227, 210, 0.12);
      border: 1px solid var(--accent);
      color: var(--accent);
      padding: 9px 12px;
      border-radius: var(--radius-md);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: var(--transition);
      text-decoration: none;
    }

    .btn-card-pedir:hover {
      background: var(--accent);
      color: var(--dark-blue);
      box-shadow: 0 0 15px var(--accent-glow);
    }

    .btn-card-pedir.agotado-btn {
      border-color: rgba(255, 255, 255, 0.2);
      color: var(--text-muted);
      background: rgba(255, 255, 255, 0.04);
    }

    .btn-card-ver {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #E2E8F0;
      width: 40px;
      height: 40px;
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: var(--transition);
    }

    .btn-card-ver:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: rgba(25, 227, 210, 0.1);
    }

    /* ==========================================================================
       MODAL DE DETALLE (Móvil: Bottom Sheet / Escritorio: Diálogo Centrado)
       ========================================================================== */
    .modal { 
      display: none; 
      position: fixed; 
      inset: 0; 
      background: rgba(0, 0, 0, 0.88); 
      backdrop-filter: blur(10px); 
      -webkit-backdrop-filter: blur(10px);
      z-index: 1000; 
      align-items: flex-end; 
      justify-content: center;
      padding: 0;
    }

    @media (min-width: 768px) {
      .modal {
        align-items: center;
        padding: 30px;
      }
    }

    .modal-content { 
      background: #0F2538; 
      width: 100%; 
      max-width: 860px;
      max-height: 90vh; 
      border-radius: var(--radius-xl) var(--radius-xl) 0 0; 
      overflow-y: auto; 
      border: 2px solid rgba(25, 227, 210, 0.25);
      box-shadow: 0 30px 80px rgba(0,0,0,0.9);
      position: relative;
      animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @media (min-width: 768px) {
      .modal-content {
        border-radius: var(--radius-lg);
        max-height: 85vh;
        display: grid;
        grid-template-columns: 1.05fr 1fr;
      }
    }

    @keyframes modalSlideUp {
      from { opacity: 0; transform: translateY(40px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .modal-close-desktop {
      position: absolute;
      top: 14px;
      right: 14px;
      z-index: 20;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.5);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(255, 255, 255, 0.2);
      cursor: pointer;
      transition: var(--transition);
    }

    .modal-close-desktop:hover {
      background: var(--accent);
      color: var(--dark-blue);
    }

    .modal-left-gallery {
      padding: 24px;
      background: #071320;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .foto-principal {
      width: 100%;
      height: 300px;
      border-radius: var(--radius-md);
      overflow: hidden;
      margin-bottom: 14px;
      background: #000;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .foto-principal img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .fotos-miniaturas {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      width: 100%;
      padding-bottom: 6px;
      justify-content: center;
    }

    .miniatura {
      width: 62px;
      height: 62px;
      border-radius: var(--radius-sm);
      overflow: hidden;
      cursor: pointer;
      border: 2px solid rgba(25, 227, 210, 0.3);
      transition: var(--transition);
      flex-shrink: 0;
      background: #000;
    }

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

    .miniatura.activa {
      border: 2px solid var(--accent);
      transform: scale(1.06);
      box-shadow: 0 0 15px rgba(25, 227, 210, 0.6);
    }

    .modal-body { 
      padding: 28px 24px 34px 24px; 
      display: flex;
      flex-direction: column;
      background: linear-gradient(180deg, #162B3D 0%, #0B1C2D 100%);
    }

    .close-bar { 
      width: 60px; 
      height: 6px; 
      background: rgba(255,255,255,0.3); 
      border-radius: 10px; 
      margin: 14px auto 10px auto; 
      cursor: pointer;
    }

    @media (min-width: 768px) {
      .close-bar {
        display: none;
      }
    }

    .product-title { 
      font-size: clamp(20px, 3.5vw, 26px); 
      font-weight: 900; 
      margin-bottom: 14px; 
      text-transform: uppercase; 
      line-height: 1.25; 
      font-family: 'Outfit', sans-serif;
    }
    
    .modal-price-container {
      display: flex;
      align-items: baseline;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 18px;
    }

    .modal-old-price {
      font-size: 18px;
      color: var(--old-price-color);
      text-decoration: line-through;
      text-decoration-thickness: 2px;
      text-decoration-color: #FF6B6B;
    }

    .modal-current-price {
      font-size: clamp(30px, 5vw, 40px);
      font-weight: 900;
      color: var(--accent);
      font-family: 'Outfit', sans-serif;
    }

    .modal-discount {
      background: #FF6B6B;
      color: white;
      padding: 5px 12px;
      border-radius: var(--radius-sm);
      font-size: 13px;
      font-weight: 800;
    }

    .chip-estado {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 18px;
      border-radius: var(--radius-full);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.5px;
      margin-bottom: 18px;
    }

    .chip-estado.disponible {
      background: linear-gradient(135deg, #00D26A 0%, #00A84F 100%);
      color: white;
      box-shadow: 0 0 20px rgba(0, 210, 106, 0.4);
    }

    .chip-estado.agotado {
      background: linear-gradient(135deg, #FF9800 0%, #E65100 100%);
      color: white;
      box-shadow: 0 0 20px rgba(255, 152, 0, 0.4);
    }
    
    .product-desc { 
      font-size: 14px; 
      color: #CBD5E1; 
      line-height: 1.6; 
      margin-bottom: 24px;
      white-space: pre-line;
      flex: 1;
    }

    .wa-btn {
      color: white;
      text-decoration: none;
      padding: 16px 24px;
      border-radius: var(--radius-md);
      display: flex;
      justify-content: center;
      align-items: center;
      font-weight: 900;
      font-size: 16px;
      gap: 10px;
      transition: var(--transition);
      letter-spacing: 0.5px;
      margin-top: auto;
    }

    .wa-btn:hover {
      transform: translateY(-2px);
    }

    .btn-pedir {
      background: var(--wa-green);
      box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    }

    .btn-reservar {
      background: linear-gradient(135deg, #FF9800 0%, #E65100 100%);
      box-shadow: 0 10px 30px rgba(255, 152, 0, 0.4);
    }

    /* ==========================================================================
       CHATBOT ASISTENTE TRU (Flotante, Cómodo en Móvil y Escritorio)
       ========================================================================== */
    .chatbot-wrapper {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 999;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .chatbot-hint {
      background: rgba(15, 37, 56, 0.95);
      backdrop-filter: blur(12px);
      border: 1.5px solid rgba(25, 227, 210, 0.4);
      border-radius: var(--radius-full);
      padding: 8px 18px;
      font-size: 13px;
      font-weight: 700;
      color: #FFFFFF;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
      white-space: nowrap;
      position: relative;
      transition: opacity 0.4s ease, transform 0.4s ease;
      cursor: pointer;
    }

    .chatbot-hint::after {
      content: '';
      position: absolute;
      right: -8px;
      top: 50%;
      transform: translateY(-50%);
      width: 0;
      height: 0;
      border-left: 8px solid rgba(15, 37, 56, 0.95);
      border-top: 6px solid transparent;
      border-bottom: 6px solid transparent;
    }

    .chatbot-hint.oculto {
      opacity: 0;
      transform: translateX(15px) scale(0.9);
      pointer-events: none;
    }

    .chatbot-toggle {
      width: 62px;
      height: 62px;
      border-radius: 50%;
      background: #0B1C2D;
      border: 2.5px solid var(--accent);
      box-shadow: 0 8px 30px rgba(25, 227, 210, 0.5);
      cursor: pointer;
      transition: var(--transition);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      animation: floatBtn 3s ease-in-out infinite;
      padding: 0;
      overflow: hidden;
    }

    .chatbot-toggle img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.25s ease;
    }

    @keyframes floatBtn {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-6px); }
    }

    .chatbot-toggle:hover {
      transform: scale(1.08) translateY(-3px);
      box-shadow: 0 15px 40px rgba(25, 227, 210, 0.7);
    }

    .chatbot-toggle:hover img {
      transform: scale(1.08);
    }

    .chatbot-toggle .badge-notif {
      position: absolute;
      top: -2px;
      right: -2px;
      background: #FF6B6B;
      color: white;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      font-size: 11px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid var(--bg);
    }

    .chatbot-widget {
      position: fixed;
      bottom: 95px;
      right: 24px;
      width: 380px;
      max-width: calc(100vw - 48px);
      height: 520px;
      max-height: 80vh;
      background: var(--chat-bg);
      border-radius: var(--radius-lg);
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
      border: 2px solid rgba(25, 227, 210, 0.25);
      display: none;
      flex-direction: column;
      overflow: hidden;
      z-index: 1000;
      animation: slideUpChat 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .chatbot-widget.abierto {
      display: flex;
    }

    @keyframes slideUpChat {
      from { opacity: 0; transform: translateY(30px) scale(0.95); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .chat-header {
      padding: 16px 20px;
      background: linear-gradient(135deg, #0F2538, #162B3D);
      border-bottom: 1px solid rgba(25, 227, 210, 0.15);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
    }

    .chat-header-info {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .chat-avatar {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      overflow: hidden;
      flex-shrink: 0;
      border: 2px solid var(--accent);
      background: #0B1C2D;
      padding: 0;
      box-shadow: 0 0 10px var(--accent-glow);
    }

    .chat-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .chat-header-title {
      font-size: 15px;
      font-weight: 700;
      color: #fff;
    }

    .chat-header-status {
      font-size: 12px;
      color: #00D26A;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .chat-header-status::before {
      content: '';
      width: 8px;
      height: 8px;
      background: #00D26A;
      border-radius: 50%;
      display: inline-block;
    }

    .chat-close {
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 24px;
      cursor: pointer;
      line-height: 1;
    }
    .chat-close:hover { color: #FF6B6B; }

    .chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .msg {
      max-width: 86%;
      padding: 12px 16px;
      border-radius: var(--radius-md);
      font-size: 13.5px;
      line-height: 1.5;
    }

    .msg-bot {
      align-self: flex-start;
      background: var(--chat-bot);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: #fff;
      border-bottom-left-radius: 4px;
    }

    .msg-user {
      align-self: flex-end;
      background: var(--chat-user);
      color: var(--dark-blue);
      font-weight: 600;
      border-bottom-right-radius: 4px;
    }

    .msg-bot-header {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 6px;
    }

    .bot-msg-avatar {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      object-fit: cover;
      border: 1px solid var(--accent);
      flex-shrink: 0;
    }

    .msg-bot .bot-name {
      font-size: 11px;
      color: var(--accent);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .chat-welcome-banner {
      display: flex;
      align-items: center;
      gap: 12px;
      background: rgba(11, 28, 45, 0.95);
      border: 1px solid rgba(25, 227, 210, 0.35);
      border-radius: var(--radius-md);
      padding: 12px 14px;
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
      margin-bottom: 4px;
    }

    .chat-welcome-img {
      width: 52px;
      height: 64px;
      object-fit: contain;
      flex-shrink: 0;
      filter: drop-shadow(0 2px 10px rgba(25, 227, 210, 0.35));
    }

    .chat-welcome-text {
      display: flex;
      flex-direction: column;
      gap: 3px;
      font-size: 12.5px;
      line-height: 1.4;
      color: var(--text-muted);
    }

    .chat-welcome-text strong {
      color: #ffffff;
      font-size: 13.5px;
      font-family: 'Outfit', sans-serif;
    }

    .msg-options {
      align-self: flex-start;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 6px;
    }

    .msg-options .opt-btn {
      background: rgba(25, 227, 210, 0.12);
      border: 1.5px solid rgba(25, 227, 210, 0.3);
      color: #fff;
      padding: 7px 14px;
      border-radius: var(--radius-full);
      font-size: 12.5px;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
    }

    .msg-options .opt-btn:hover {
      background: rgba(25, 227, 210, 0.25);
      border-color: var(--accent);
    }

    .msg-options .wa-opt-btn {
      background: rgba(37, 211, 102, 0.18);
      border: 1.5px solid rgba(37, 211, 102, 0.5);
      color: #25D366;
      padding: 9px 16px;
      border-radius: var(--radius-full);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: var(--transition);
    }

    .msg-options .wa-opt-btn:hover {
      background: rgba(37, 211, 102, 0.3);
      transform: translateY(-1px);
    }

    /* Tarjeta de Producto Interactiva dentro del Chat */
    .chat-product-card {
      align-self: flex-start;
      width: 100%;
      background: #0B1C2D;
      border: 1px solid rgba(25, 227, 210, 0.35);
      border-radius: var(--radius-md);
      padding: 12px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
      margin-top: 4px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .chat-card-top {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .chat-card-img {
      width: 54px;
      height: 54px;
      border-radius: var(--radius-sm);
      object-fit: contain;
      background: rgba(7, 19, 32, 0.8);
      border: 1px solid rgba(255, 255, 255, 0.08);
      padding: 4px;
      flex-shrink: 0;
    }

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

    .chat-card-title {
      font-size: 12.5px;
      font-weight: 700;
      color: #ffffff;
      line-height: 1.35;
      margin-bottom: 4px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    .chat-card-price-row {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .chat-card-price {
      font-size: 14.5px;
      font-weight: 800;
      color: var(--accent);
      font-family: 'Outfit', sans-serif;
    }

    .chat-card-status {
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      padding: 2px 6px;
      border-radius: 4px;
    }

    .chat-card-status.disponible {
      background: rgba(25, 227, 210, 0.15);
      color: var(--accent);
    }

    .chat-card-status.agotado {
      background: rgba(244, 63, 94, 0.15);
      color: #f43f5e;
    }

    .chat-card-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      padding-top: 6px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .chat-card-btn {
      padding: 7px 10px;
      font-size: 11.5px;
      font-weight: 700;
      border-radius: var(--radius-full);
      cursor: pointer;
      text-align: center;
      transition: all 0.15s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      border: none;
      text-decoration: none;
      font-family: inherit;
    }

    .chat-card-btn.btn-cart {
      background: rgba(25, 227, 210, 0.15);
      border: 1px solid rgba(25, 227, 210, 0.4);
      color: var(--accent);
    }

    .chat-card-btn.btn-cart:hover {
      background: var(--accent);
      color: #071320;
    }

    .chat-card-btn.btn-detail {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #ffffff;
    }

    .chat-card-btn.btn-detail:hover {
      background: rgba(255, 255, 255, 0.14);
    }

    .chat-card-btn.btn-wa-full {
      grid-column: 1 / -1;
      background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
      color: #ffffff;
      font-weight: 800;
      padding: 8px 12px;
    }

    .chat-card-btn.btn-wa-full:hover {
      filter: brightness(1.1);
      transform: translateY(-1px);
    }

    .chat-input-area {
      padding: 12px 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      gap: 8px;
      flex-shrink: 0;
      background: var(--chat-bg);
    }

    .chat-input-area input {
      flex: 1;
      padding: 10px 16px;
      border-radius: var(--radius-full);
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.06);
      color: #fff;
      font-size: 13.5px;
      outline: none;
    }
    .chat-input-area input:focus { border-color: var(--accent); }

    .chat-input-area .send-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      background: linear-gradient(135deg, #19E3D2, #0FB5A8);
      color: var(--dark-blue);
      font-size: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* ==========================================================================
       FOOTER
       ========================================================================== */
    footer {
      background: #071320;
      border-top: 1px solid rgba(25, 227, 210, 0.15);
      padding: 45px 0 25px 0;
      margin-top: 40px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 30px;
      margin-bottom: 35px;
    }

    @media (min-width: 768px) {
      .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
      }
    }

    .footer-brand h4 {
      font-size: 20px;
      font-weight: 900;
      color: #fff;
      font-family: 'Outfit', sans-serif;
      margin-bottom: 12px;
      letter-spacing: 1px;
    }

    .footer-brand p {
      color: var(--text-muted);
      font-size: 14px;
      line-height: 1.6;
      max-width: 420px;
    }

    .footer-col h5 {
      color: var(--accent);
      font-size: 14px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 14px;
    }

    .footer-col ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
      font-size: 13.5px;
      color: #CBD5E1;
    }

    .footer-bottom {
      text-align: center;
      padding-top: 24px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      font-size: 13px;
      color: var(--text-muted);
    }


/* ==========================================================================
   CARRITO DE COMPRAS DESLIZABLE (OFFCANVAS) & BADGES
   ========================================================================== */
.cart-btn-header {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(25, 227, 210, 0.08);
  border: 1px solid rgba(25, 227, 210, 0.25);
  transition: var(--transition);
}

.cart-btn-header:hover {
  background: rgba(25, 227, 210, 0.2);
  transform: scale(1.06);
  box-shadow: 0 0 16px var(--accent-glow);
}

.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #f43f5e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.6);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge-count.bump {
  transform: scale(1.35);
}

.btn-card-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(25, 227, 210, 0.12);
  border: 1px solid rgba(25, 227, 210, 0.4);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-card-add-cart:hover {
  background: var(--accent);
  color: #071320;
  box-shadow: 0 0 14px var(--accent-glow);
}

.btn-card-add-cart:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 18, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #0B1C2D;
  border-left: 1px solid rgba(25, 227, 210, 0.2);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 37, 56, 0.6);
}

.cart-drawer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-drawer-title span {
  color: var(--accent);
}

.cart-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.cart-close-btn:hover {
  background: rgba(244, 63, 94, 0.18);
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.4);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty-state {
  text-align: center;
  margin: auto 0;
  padding: 40px 20px;
  color: var(--text-muted);
}

.cart-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(25, 227, 210, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--card-bg);
  border: 1px solid rgba(25, 227, 210, 0.12);
  border-radius: var(--radius-md);
  position: relative;
  transition: var(--transition);
}

.cart-item:hover {
  border-color: rgba(25, 227, 210, 0.3);
  background: var(--card-bg-hover);
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: rgba(7, 19, 32, 0.6);
  padding: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 12px;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.2px;
}

.cart-item-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-controls {
  display: inline-flex;
  align-items: center;
  background: #071320;
  border: 1px solid rgba(25, 227, 210, 0.25);
  border-radius: 9999px;
  height: 32px;
  box-sizing: border-box;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.cart-qty-btn svg {
  display: block;
  pointer-events: none;
}

.cart-qty-btn:hover {
  background: rgba(25, 227, 210, 0.2);
  color: var(--accent);
}

.cart-qty-btn:active {
  background: rgba(25, 227, 210, 0.35);
  transform: scale(0.92);
}

.cart-qty-num {
  font-size: 13.5px;
  font-weight: 800;
  min-width: 24px;
  text-align: center;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  user-select: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
}

.cart-item-remove {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.cart-item-remove svg {
  display: block;
  pointer-events: none;
}

.cart-item-remove:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.12);
  transform: scale(1.08);
}

.cart-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 19, 32, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-muted);
}

.cart-summary-total {
  font-size: 16.5px;
  font-weight: 800;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 9px;
  margin-top: 2px;
}

.cart-summary-total span:last-child {
  color: var(--accent);
  font-size: 20px;
}

.cart-input-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}

.cart-select {
  width: 100%;
  background: #0F2538;
  border: 1px solid rgba(25, 227, 210, 0.25);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.cart-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.cart-checkout-btn {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.cart-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.cart-clear-link {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding-top: 2px;
  transition: var(--transition);
}

.cart-clear-link:hover {
  color: #f43f5e;
  text-decoration: underline;
}

.toast-notification {
  position: fixed;
  bottom: 96px;
  right: 24px;
  background: #0F2538;
  border: 1px solid var(--accent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  font-size: 13.5px;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-btn {
  background: var(--accent);
  color: #071320;
  font-weight: 800;
  font-size: 11.5px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  transition: var(--transition);
}

.toast-btn:hover {
  filter: brightness(1.1);
}

/* ==========================================================================
   CHATBOT ASISTENTE TRU - ESTILOS OFICIALES
   ========================================================================== */
.chat-launcher-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1900;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

/* Card de Saludo Temporal de Tru */
.tru-greeting-card {
  position: relative;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(145deg, rgba(15, 37, 56, 0.98) 0%, rgba(7, 19, 32, 0.98) 100%);
  border: 1.5px solid rgba(25, 227, 210, 0.45);
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(25, 227, 210, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, opacity 0.35s ease;
  z-index: 1910;
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

/* Indicador de flecha hacia el botón de Tru (en escritorio) */
.tru-greeting-card::after {
  content: '';
  position: absolute;
  right: -8px;
  bottom: 22px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 8px solid rgba(25, 227, 210, 0.5);
}

.tru-greeting-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: truGreetingBounce 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tru-greeting-card.desvanecer {
  opacity: 0;
  transform: translateY(12px) scale(0.94);
  pointer-events: none;
  transition: all 0.35s ease;
}

.tru-greeting-card.oculto {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@keyframes truGreetingBounce {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.88);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tru-greeting-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 32px rgba(25, 227, 210, 0.35);
}

/* Header del saludo */
.tru-greeting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(25, 227, 210, 0.15);
}

.tru-greeting-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}

.tru-status-dot {
  width: 8px;
  height: 8px;
  background: #00D26A;
  border-radius: 50%;
  box-shadow: 0 0 8px #00D26A;
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

.tru-greeting-agent {
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.3px;
  font-family: 'Outfit', sans-serif;
}

.tru-greeting-sub {
  color: var(--accent);
  font-weight: 600;
  font-size: 10.5px;
}

.tru-greeting-close {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 13px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.tru-greeting-close:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.15);
}

/* Cuerpo del saludo */
.tru-greeting-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 10px;
}

.tru-greeting-avatar-wrap {
  flex-shrink: 0;
  width: 62px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(25, 227, 210, 0.25));
  animation: truWaveFloat 3s ease-in-out infinite;
}

@keyframes truWaveFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.tru-greeting-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tru-greeting-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.tru-greeting-badge {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.6px;
  display: inline-block;
}

.tru-greeting-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  margin: 0;
  line-height: 1.2;
}

.tru-greeting-text {
  font-size: 11.5px;
  color: #CBD5E1;
  line-height: 1.35;
  margin: 0;
}

/* Chips rápidos */
.tru-greeting-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 12px;
  flex-wrap: wrap;
}

.tru-greeting-chip {
  background: rgba(25, 227, 210, 0.08);
  border: 1px solid rgba(25, 227, 210, 0.28);
  color: #E2E8F0;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.tru-greeting-chip:hover {
  background: rgba(25, 227, 210, 0.22);
  border-color: var(--accent);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.tru-greeting-chip-cta {
  background: linear-gradient(135deg, rgba(25, 227, 210, 0.25) 0%, rgba(15, 181, 168, 0.35) 100%);
  border-color: var(--accent);
  color: #FFFFFF;
  font-weight: 800;
  margin-left: auto;
}

.tru-greeting-chip-cta:hover {
  background: linear-gradient(135deg, var(--accent) 0%, #0FB5A8 100%);
  color: #071320;
}

/* Barra de progreso / tiempo */
.tru-greeting-progress {
  width: 100%;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.tru-greeting-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #19E3D2 0%, #00D26A 100%);
  transform-origin: left center;
  animation: truProgressDrain 9s linear forwards;
}

@keyframes truProgressDrain {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* Adaptación Responsiva para Móvil */
@media (max-width: 640px) {
  .chat-launcher-wrap {
    flex-direction: column;
    align-items: flex-end;
    bottom: 18px;
    right: 18px;
    gap: 10px;
  }

  .tru-greeting-card {
    width: min(340px, calc(100vw - 36px));
  }

  .tru-greeting-card::after {
    right: 24px;
    bottom: -8px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid rgba(25, 227, 210, 0.45);
    border-bottom: none;
  }
}


.chatbot-toggle {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: #0B1C2D;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(25, 227, 210, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

.chatbot-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(25, 227, 210, 0.6);
  border-color: #29f3e4;
}

.chat-toggle-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.chat-online-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #00D26A;
  border: 2.5px solid #071320;
  border-radius: 50%;
  box-shadow: 0 0 8px #00D26A;
}

.chat-notif-badge {
  position: absolute;
  top: -3px;
  left: -3px;
  background: #FF6B6B;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  border: 2px solid #071320;
  line-height: 1;
}

/* Chat Widget Container */
.chat-widget {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 120px);
  background: #071320;
  border: 1px solid rgba(25, 227, 210, 0.3);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 30px rgba(25, 227, 210, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 1950;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-widget.abierto {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Chat Header */
.chat-header {
  background: linear-gradient(135deg, #0B1C2D 0%, #0F2538 100%);
  border-bottom: 1px solid rgba(25, 227, 210, 0.2);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.chat-header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  box-shadow: 0 0 12px var(--accent-glow);
}

.chat-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: #00D26A;
  border: 2px solid #0B1C2D;
  border-radius: 50%;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
}

.chat-header-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.3px;
}

.chat-header-role {
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 600;
}

.chat-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Chat Messages Area */
.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: radial-gradient(circle at top right, rgba(25, 227, 210, 0.04), transparent 60%), #071320;
}

.chat-messages::-webkit-scrollbar {
  width: 5px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(25, 227, 210, 0.3);
  border-radius: 4px;
}

/* Welcome Card with Tru */
.chat-welcome-banner {
  background: linear-gradient(135deg, rgba(15, 37, 56, 0.9) 0%, rgba(11, 28, 45, 0.9) 100%);
  border: 1px solid rgba(25, 227, 210, 0.3);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  margin-bottom: 4px;
}

.chat-welcome-img {
  width: 68px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
}

.chat-welcome-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-welcome-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.chat-welcome-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  font-family: 'Outfit', sans-serif;
}

.chat-welcome-desc {
  font-size: 12px;
  color: #CBD5E1;
  line-height: 1.4;
}

/* Messages */
.msg {
  max-width: 88%;
  font-size: 13px;
  line-height: 1.45;
  border-radius: 14px;
  padding: 10px 14px;
  word-break: break-word;
}

.msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #19E3D2 0%, #00B4D8 100%);
  color: #071320;
  font-weight: 600;
  border-bottom-right-radius: 3px;
  box-shadow: 0 3px 12px rgba(25, 227, 210, 0.3);
}

.msg-bot {
  align-self: flex-start;
  background: #0F2538;
  border: 1px solid rgba(25, 227, 210, 0.2);
  color: #F1F5F9;
  border-bottom-left-radius: 3px;
}

.msg-bot-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.bot-msg-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  object-fit: cover;
}

.bot-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.msg-bot-text {
  font-size: 13px;
  line-height: 1.45;
}

/* Quick Action Options */
.msg-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
}

.opt-btn {
  background: rgba(15, 37, 56, 0.7);
  border: 1px solid rgba(25, 227, 210, 0.35);
  color: #E2E8F0;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.opt-btn:hover {
  background: rgba(25, 227, 210, 0.15);
  border-color: var(--accent);
  color: #fff;
  transform: translateX(3px);
}

/* Chat Product Card */
.chat-product-card {
  background: #0B1C2D;
  border: 1px solid rgba(25, 227, 210, 0.35);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.chat-card-top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-card-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: #071320;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.chat-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.chat-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-card-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-card-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
}

.chat-card-status {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.chat-card-status.disponible {
  background: rgba(0, 210, 106, 0.2);
  color: #00D26A;
  border: 1px solid rgba(0, 210, 106, 0.4);
}

.chat-card-status.agotado {
  background: rgba(255, 107, 107, 0.2);
  color: #FF6B6B;
  border: 1px solid rgba(255, 107, 107, 0.4);
}

.chat-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-card-btn {
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: var(--transition);
}

.chat-card-btn.btn-cart {
  background: var(--accent);
  color: #071320;
}
.chat-card-btn.btn-cart:hover {
  filter: brightness(1.1);
}

.chat-card-btn.btn-detail {
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.chat-card-btn.btn-detail:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.chat-card-btn.btn-wa-full {
  width: 100%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 2px;
}
.chat-card-btn.btn-wa-full:hover {
  filter: brightness(1.1);
}

/* Chat Footer */
.chat-footer {
  padding: 0;
  background: #0B1C2D;
  border-top: 1px solid rgba(25, 227, 210, 0.2);
  display: flex;
  flex-direction: column;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
}

.chat-footer input {
  flex: 1;
  background: #071320;
  border: 1px solid rgba(25, 227, 210, 0.3);
  color: #fff;
  padding: 9px 13px;
  border-radius: var(--radius-full);
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.chat-footer input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(25, 227, 210, 0.3);
}

.chat-footer input::placeholder {
  color: #64748B;
  font-size: 12px;
}

.chat-send-btn {
  background: var(--accent);
  color: #071320;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.chat-send-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .chat-widget {
    bottom: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  .chat-launcher-wrap {
    bottom: 16px;
    right: 16px;
  }
  .chatbot-toggle {
    width: 56px;
    height: 56px;
  }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (IntersectionObserver - Zero Dependencies)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   TESTIMONIOS / PRUEBA SOCIAL
   ========================================================================== */
.testimonials-section {
  padding: 30px 0 50px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(22, 43, 61, 0.8) 0%, rgba(15, 37, 56, 0.9) 100%);
  border: 1px solid rgba(25, 227, 210, 0.2);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -8px;
  right: 14px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: rgba(25, 227, 210, 0.08);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  border-color: rgba(25, 227, 210, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(25, 227, 210, 0.15);
}

.testimonial-stars {
  color: #FFC107;
  font-size: 16px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.testimonial-text {
  font-size: 13.5px;
  color: #CBD5E1;
  line-height: 1.6;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0FB5A8);
  color: #071320;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
}

.testimonial-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.testimonial-location {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1800;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 35px rgba(37, 211, 102, 0.7);
}

.whatsapp-float-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: waPulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 16px;
    left: 16px;
    width: 52px;
    height: 52px;
  }
}

/* ==========================================================================
   TYPING INDICATOR ("Tru está escribiendo...")
   ========================================================================== */
.typing-indicator {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0F2538;
  border: 1px solid rgba(25, 227, 210, 0.25);
  border-radius: 14px;
  border-bottom-left-radius: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  animation: typingFadeIn 0.25s ease-out;
}

.typing-indicator .typing-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  object-fit: cover;
  flex-shrink: 0;
}

.typing-text {
  font-size: 11.5px;
  color: #8FA3BF;
  font-style: italic;
  font-weight: 500;
  user-select: none;
}

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

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ==========================================================================
   FAQ CHIPS (Quick actions above chat input)
   ========================================================================== */
.chat-faq-chips {
  display: flex;
  gap: 6px;
  padding: 8px 14px 4px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-faq-chips::-webkit-scrollbar {
  display: none;
}

.faq-chip {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: rgba(25, 227, 210, 0.08);
  border: 1px solid rgba(25, 227, 210, 0.25);
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.faq-chip:hover {
  background: rgba(25, 227, 210, 0.2);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.faq-chip:active {
  transform: scale(0.96);
}

/* ==========================================================================
   COMPARADOR DE PRODUCTOS (Tabla dentro del chat)
   ========================================================================== */
.chat-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  font-size: 11.5px;
  background: #0B1C2D;
  border: 1px solid rgba(25, 227, 210, 0.25);
  margin-top: 4px;
}

.chat-compare-table th {
  background: rgba(25, 227, 210, 0.12);
  color: var(--accent);
  font-weight: 800;
  padding: 8px 10px;
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(25, 227, 210, 0.2);
}

.chat-compare-table td {
  padding: 7px 10px;
  text-align: center;
  color: #CBD5E1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-compare-table tr:last-child td {
  border-bottom: none;
}

.chat-compare-table .compare-label {
  text-align: left;
  color: #94A3B8;
  font-weight: 600;
  font-size: 11px;
}

.chat-compare-table .compare-highlight {
  color: var(--accent);
  font-weight: 800;
}

/* ==========================================================================
   MESSAGE TIMESTAMP
   ========================================================================== */
.msg-time {
  font-size: 10px;
  color: #64748B;
  margin-top: 4px;
  text-align: right;
}

.msg-bot .msg-time {
  text-align: left;
}
