/* === VARIABLES Y BASE === */
:root {
    --purple: #a855f7;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --dark: #0f0f1a;
    --card: #14141f;
    --border: #1e1e2e;
    --step-color: var(--purple);
  }
  
  * { box-sizing: border-box; }
  
  html { scroll-behavior: smooth; }
  
  body {
    background-color: var(--dark);
    font-family: 'Inter', sans-serif;
  }
  
  /* === GRADIENTE TEXTO === */
  .text-gradient {
    background: linear-gradient(135deg, var(--purple), var(--blue), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  /* === NAVBAR scroll activo === */
  #navbar.scrolled {
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  /* === GLASS CARD === */
  .glass-card {
    background: rgba(20, 20, 31, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  
  /* === BOTÓN GLOW === */
  .btn-glow {
    position: relative;
    overflow: hidden;
  }
  .btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--purple), var(--blue), var(--cyan));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    filter: blur(8px);
  }
  .btn-glow:hover::before { opacity: 0.6; }
  
  /* === BADGE PULSE === */
  .badge-pulse {
    animation: badgePulse 3s ease-in-out infinite;
  }
  @keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(168,85,247,0); }
  }
  
  /* === TECH PILLS === */
  .tech-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
    cursor: default;
  }
  .tech-pill:hover {
    background: rgba(168,85,247,0.15);
    border-color: rgba(168,85,247,0.4);
    color: white;
  }
  
  /* === SECTION LABEL === */
  .section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple);
    background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.25);
    padding: 0.3rem 0.9rem;
    border-radius: 9999px;
  }
  
  /* === SERVICE ICON === */
  .service-icon {
    font-size: 2rem;
    display: inline-block;
    transition: transform 0.3s;
  }
  .group:hover .service-icon { transform: scale(1.15) rotate(-5deg); }
  
  /* === FEATURE PILLS === */
  .feature-pill {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.25);
  }
  
  /* === STEP NUMBER === */
  .step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--step-color, var(--purple)), rgba(168,85,247,0.2));
    border: 2px solid var(--step-color, var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(168,85,247,0.25);
  }
  
  /* === PHONE MOCKUP CSS === */
  .phone-mockup {
    width: 200px;
    height: 400px;
    border-radius: 32px;
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    border: 2px solid rgba(168,85,247,0.3);
    padding: 10px;
    box-shadow:
      0 0 40px rgba(168,85,247,0.2),
      0 20px 60px rgba(0,0,0,0.5),
      inset 0 1px 0 rgba(255,255,255,0.05);
    animation: phoneFloat 4s ease-in-out infinite;
    position: relative;
  }
  @keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  .phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: #0d0d1a;
    overflow: hidden;
  }
  .phone-ui { height: 100%; display: flex; flex-direction: column; }
  
  .phone-topbar {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
  }
  .phone-hero-img {
    height: 60px;
    background: linear-gradient(135deg, #1e1e35, #2d1b4e);
    position: relative;
    overflow: hidden;
  }
  .phone-hero-img::after {
    content: '🍕 ¡Pide ahora!';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: rgba(255,255,255,0.6);
  }
  .phone-content { flex: 1; padding: 8px; overflow: hidden; }
  
  .phone-category-row {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
  }
  .phone-cat {
    font-size: 7px;
    padding: 2px 5px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.5);
    cursor: default;
    white-space: nowrap;
  }
  .phone-cat.active {
    background: rgba(168,85,247,0.3);
    color: var(--purple);
    border: 1px solid rgba(168,85,247,0.4);
  }
  .phone-card-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 6px;
    margin-bottom: 5px;
  }
  .phone-item-img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    flex-shrink: 0;
  }
  .phone-item-title { font-size: 8px; font-weight: 600; color: white; }
  .phone-item-price { font-size: 7px; color: var(--cyan); }
  .phone-add-btn {
    margin-left: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
  }
  
  /* === FORMULARIO === */
  .form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.4rem;
  }
  .form-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
  }
  .form-input::placeholder { color: rgba(255,255,255,0.25); }
  .form-input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.12);
  }
  select.form-input option {
    background: #1a1a2e;
    color: white;
  }
  
  /* === CONTACT ITEM === */
  .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.85rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    transition: border-color 0.2s, background 0.2s;
    text-decoration: none;
  }
  a.contact-item:hover {
    background: rgba(168,85,247,0.06);
    border-color: rgba(168,85,247,0.3);
  }
  .contact-icon {
    font-size: 1.3rem;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    flex-shrink: 0;
  }
  
  /* === REVEAL ANIMATION (Intersection Observer) === */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* === CANVAS fondo hero === */
  #hero-canvas { opacity: 0.35; }
  
  /* === SCROLLBAR personalizada === */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--dark); }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--purple), var(--blue));
    border-radius: 3px;
  }
  