/* ==============================================================
   NV MARKETING DIGITAL — Hero, Texto Rotativo y Contadores
   Archivo: css/hero.css
============================================================== */

  /* ── ROTATING WORDS ── */
  .rotating-wrap {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    /* Ancho para la palabra más larga: "Email Marketing" */
    min-width: 185px;
    height: 1.25em;
    overflow: hidden;
  }

  .rotating-word {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--fucsia), var(--violeta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
    opacity: 0;
    transform: translateY(110%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    white-space: nowrap;
    line-height: 1.25;
  }

  .rotating-word.active {
    opacity: 1;
    transform: translateY(0%);
  }

  .rotating-word.exit {
    opacity: 0;
    transform: translateY(-110%);
  }

  /* ── SERVICE TAGS ── */
  .service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2.6rem;
    animation: fadeUp 0.5s 0.2s ease both;
  }
  .service-tag {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(207,42,177,0.25);
    color: rgba(210,195,255,0.6);
    background: rgba(207,42,177,0.06);
    cursor: default;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }
  .service-tag:hover {
    border-color: rgba(207,42,177,0.5);
    color: #e08ed5;
    background: rgba(207,42,177,0.12);
  }

  /* ── ANIMATED COUNTERS ── */
  .counters-bar {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 0;
    margin-top: 5rem;
    padding-top: 2.2rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    animation: fadeUp 0.5s 0.32s ease both;
  }
  .counter-item {
    flex: 1;
    padding-right: 2rem;
    border-right: 1px solid rgba(255,255,255,0.07);
    margin-right: 2rem;
  }
  .counter-item:last-child {
    border-right: none;
    margin-right: 0;
  }
  .counter-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--fucsia), var(--violeta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 2px;
  }
  .counter-suffix {
    font-size: 1.2rem;
    background: linear-gradient(90deg, var(--fucsia), var(--violeta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .counter-label {
    font-size: 0.77rem;
    color: var(--muted);
    margin-top: 4px;
  }



  /* ── HERO ── */
  @media (max-width: 1024px) {
    .hero { padding: 3.5rem 2rem 3rem; min-height: auto; }
    h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); }
    .hero-content { max-width: 100%; }
    .float-card {
      position: relative;
      right: auto; top: auto;
      transform: none;
      animation: fadeUp 0.6s 0.4s ease both;
      width: 100%;
      max-width: 320px;
      margin: 2.5rem auto 0;
    }
    @keyframes floatCard { 0%,100%{ transform: none; } }
  }

  @media (max-width: 768px) {
    .hero { padding: 2.5rem 1.25rem 2.5rem; }
    h1 { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 1.2rem; }
    .hero-sub { font-size: 0.95rem; margin-bottom: 0; }
    .rotating-wrap { min-width: 150px; height: 1.25em; }
    .service-tags { gap: 6px; margin-bottom: 1.8rem; }
    .service-tag { font-size: 0.68rem; padding: 5px 10px; }
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
    .counters-bar {
      gap: 0;
      flex-wrap: wrap;
      margin-top: 3rem;
    }
    .counter-item {
      flex: 0 0 50%;
      padding: 0.8rem 0;
      border-right: none !important;
      margin-right: 0 !important;
      border-bottom: 1px solid var(--border);
    }
    .counter-item:nth-child(1),
    .counter-item:nth-child(2) { border-bottom: 1px solid var(--border); }
    .counter-item:nth-child(3),
    .counter-item:nth-child(4) { border-bottom: none; }
    .counter-num { font-size: 1.6rem; }

    /* Float card full width on mobile */
    .float-card {
      width: calc(100% - 0px);
      max-width: 100%;
      border-radius: 16px;
    }
  }

  @media (max-width: 480px) {
    .hero { padding: 2rem 1rem 2rem; }
    h1 { font-size: clamp(1.8rem, 9vw, 2.4rem); }
    nav { padding: 1rem; }
  }

  /* ── CLIENTS CAROUSEL ── */
  @media (max-width: 768px) {
    .clients-label { padding: 28px 1.25rem 20px; }
    .clients-label::before, .clients-label::after { max-width: 60px; }
    
    
    
    .carousel-wrapper { padding-bottom: 28px; }
    .carousel-track { gap: 12px; }
    .carousel-track.row1 { animation-duration: 22s; }
    .carousel-track.row2 { animation-duration: 18s; }
  }

  /* ── NOSOTROS ── */
  @media (max-width: 1024px) {
    .nos-grid {
      grid-template-columns: 1fr;
      gap: 3rem;
    }
    .nosotros-section { padding: 5rem 2rem; }
  }

  @media (max-width: 768px) {
    .nosotros-section { padding: 3.5rem 1.25rem; }
    .nos-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
    .nos-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .nos-stat-num { font-size: 1.8rem; }
    .nos-stat-label { font-size: 0.75rem; }
    .nos-cta-row { flex-direction: column; gap: 0.8rem; }
    .nos-cta-row .btn-primary,
    .nos-cta-row .btn-ghost { width: 100%; justify-content: center; }
    .nos-certs { gap: 6px; }
    .nos-cert { font-size: 0.7rem; padding: 6px 10px; }
    .nos-quote { padding: 1.2rem 1.1rem; }
    .nos-quote p { font-size: 0.88rem; }
    .nos-quote-mark { font-size: 3rem; }
    .nos-bio { font-size: 0.92rem; }
    .nos-values li { font-size: 0.85rem; }
  }

  @media (max-width: 480px) {
    .nosotros-section { padding: 2.5rem 1rem; }
    .nos-stats { grid-template-columns: 1fr 1fr; }
  }

  /* ── FLOATING CARD RESPONSIVE ── */
  @media (max-width: 1024px) {
    .drag-handle { cursor: default; }
  }

  /* ── WHATSAPP FAB ── */
  @media (max-width: 768px) {
    .wa-btn { width: 50px; height: 50px; bottom: 1.2rem; right: 1.2rem; }
    .wa-btn svg { width: 26px; height: 26px; }
    .wa-tooltip { display: none; }
  }

  /* ── DIAMOND DECO — hide on small screens ── */
  @media (max-width: 768px) {
    .diamond, .diamond-sm, .ring-1, .ring-2, .ring-3 { display: none; }
    .dot-grid { display: none; }
  }


  /* ── HERO CENTRADO — diagramación Caissa ── */
  .hero {
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 5rem;
  }

  .hero-content {
    max-width: 820px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-sub {
    max-width: 580px;
    text-align: center;
    margin-bottom: 2rem;
  }

  .service-tags {
    justify-content: center;
  }

  .counters-bar {
    max-width: 660px;
    width: 100%;
    justify-content: center;
    margin-top: 3.5rem;
  }

  .counter-item {
    text-align: center;
    align-items: center;
  }

  .counter-num {
    justify-content: center;
  }

  /* ── CTA CARD — botón + badges en línea ── */
  .hero-cta-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 14px 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    animation: fadeUp 0.5s 0.24s ease both;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-divider {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
  }

  .cta-partners {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-partner-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    cursor: default;
    transition: background 0.2s;
  }

  .cta-partner-badge:hover {
    background: rgba(255, 255, 255, 0.10);
  }

  .cta-partner-logo {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .cta-partner-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .cta-partner-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  .cta-partner-label {
    font-size: 0.58rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  /* Light mode */
  html.light .hero-cta-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(90, 37, 207, 0.15);
    box-shadow: 0 8px 32px rgba(90, 37, 207, 0.08);
  }
  html.light .cta-partner-badge {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(90, 37, 207, 0.12);
  }
  html.light .cta-divider {
    background: rgba(90, 37, 207, 0.15);
  }

  /* Responsive */
  @media (max-width: 768px) {
    .hero { padding: 4rem 1.25rem 3rem; }
    .hero-cta-card { gap: 12px; padding: 12px 14px; }
    .cta-divider { display: none; }
  }

  @media (max-width: 480px) {
    .hero-cta-card { flex-direction: column; width: 100%; }
    .hero-cta-card .btn-primary { width: 100%; justify-content: center; }
    .cta-partners { justify-content: center; }
  }
