/* ============================================
   LANDING TPV V2 - CSS DIFERENCIADO
   Extiende landingFichaje.css
   ============================================ */

/* ===== HERO V2 ===== */
.tpv-hero-v2 {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
    background: var(--fichaje-bg);
  }

  .tpv-hero-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at top, rgba(55, 100, 237, 0.15) 0%, transparent 60%),
      linear-gradient(180deg, transparent 0%, var(--fichaje-bg-darker) 100%);
    pointer-events: none;
  }

  .tpv-hero-v2-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
  }

  .tpv-hero-v2-text h1 {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: white;
    margin-bottom: 24px;
  }

  .tpv-hero-v2-text h1 .accent { color: var(--fichaje-primary); }

  .tpv-hero-v2-sub {
    font-size: 20px;
    line-height: 1.5;
    color: var(--fichaje-text-muted);
    margin-bottom: 36px;
    max-width: 540px;
  }

  .tpv-hero-v2-sub strong { color: white; font-weight: 700; }

  /* Mockup TPV */
  .tpv-mockup {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    perspective: 1200px;
  }

  .tpv-mockup-screen {
    position: relative;
    background: linear-gradient(145deg, #1a1f3a 0%, #0f1428 100%);
    border-radius: 24px;
    padding: 24px;
    box-shadow:
      0 50px 100px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(55, 100, 237, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: rotateY(-8deg) rotateX(2deg);
    transform-style: preserve-3d;
  }

  .tpv-mockup-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .tpv-mockup-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }

  .tpv-mockup-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #4ade80;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .tpv-mockup-status .dot-live {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
  }

  @keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
  }

  .tpv-mockup-ticket {
    background: white;
    border-radius: 12px;
    padding: 28px 24px 20px;
    position: relative;
    font-family: 'Courier New', monospace;
    color: #242424;
  }

  .tpv-mockup-ticket::before,
  .tpv-mockup-ticket::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 12px;
  }

  .tpv-mockup-ticket::before {
    top: -6px;
    background: radial-gradient(circle at 6px 0, transparent 5px, white 5px) 0 0/12px 12px;
  }

  .tpv-mockup-ticket::after {
    bottom: -6px;
    background: radial-gradient(circle at 6px 12px, transparent 5px, white 5px) 0 0/12px 12px;
  }

  .tpv-ticket-header {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
  }

  .tpv-ticket-business {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
  }

  .tpv-ticket-meta {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.5);
  }

  .tpv-ticket-items { margin-bottom: 16px; }

  .tpv-ticket-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
    font-weight: 500;
  }

  .tpv-ticket-row.total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0, 0, 0, 0.15);
    font-size: 15px;
    font-weight: 800;
  }

  .tpv-ticket-verifactu {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #3764ed 0%, #2548b8 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
  }

  .tpv-ticket-verifactu::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
  }

  .tpv-ticket-qr {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    padding: 6px;
  }

  .tpv-ticket-qr svg { width: 100%; height: 100%; }

  .tpv-ticket-verifactu-info { color: white; flex: 1; }

  .tpv-ticket-verifactu-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
    font-family: -apple-system, sans-serif;
    margin-bottom: 4px;
  }

  .tpv-ticket-verifactu-hash {
    font-size: 11px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    line-height: 1.3;
    opacity: 0.95;
  }

  .tpv-mockup-badge {
    position: absolute;
    top: 30px;
    right: -20px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #042f0d;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.3);
    transform: rotate(8deg);
    z-index: 3;
  }

  .tpv-mockup-badge svg { width: 18px; height: 18px; }

  .tpv-hero-v2-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 80px;
    padding: 32px 0 0;
    border-top: 1px solid rgba(55, 100, 237, 0.15);
  }

  .tpv-hero-v2-stat {
    text-align: center;
    padding: 0 24px;
    position: relative;
  }

  .tpv-hero-v2-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: 1px;
    background: rgba(55, 100, 237, 0.2);
  }

  .tpv-hero-v2-stat-value {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, white 0%, var(--fichaje-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    line-height: 1;
  }

  .tpv-hero-v2-stat-label {
    font-size: 13px;
    color: var(--fichaje-text-muted);
    font-weight: 500;
  }

  .tpv-hero-v2-ctas {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  /* CTA principal con icono de teléfono */
  .tpv-btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #3764ed 0%, #5a82f5 100%);
    color: white;
    padding: 18px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    position: relative;
    box-shadow: 0 16px 40px rgba(55, 100, 237, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .tpv-btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(55, 100, 237, 0.6);
    color: white;
  }

  .tpv-btn-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: 14px;
    pointer-events: none;
  }

  .tpv-btn-glow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: white;
    stroke-width: 2.5;
    flex-shrink: 0;
  }

  .tpv-no-card-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fichaje-text-muted);
    font-size: 14px;
    font-weight: 500;
  }

  .tpv-no-card-note svg {
    width: 18px;
    height: 18px;
    stroke: #4ade80;
    fill: none;
    stroke-width: 2.5;
  }

  /* ===== TIMELINE PROBLEMA ===== */
  .tpv-timeline {
    max-width: 800px;
    margin: 60px auto 0;
    position: relative;
  }

  .tpv-timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(180deg,
      rgba(55, 100, 237, 0.3) 0%,
      var(--fichaje-primary) 50%,
      #ef4444 100%);
  }

  .tpv-timeline-item {
    position: relative;
    padding-left: 96px;
    padding-bottom: 48px;
  }

  .tpv-timeline-item:last-child { padding-bottom: 0; }

  .tpv-timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(55, 100, 237, 0.15) 0%, rgba(55, 100, 237, 0.05) 100%);
    border: 1px solid rgba(55, 100, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(10px);
  }

  .tpv-timeline-marker.urgent {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-color: rgba(239, 68, 68, 0.4);
  }

  .tpv-timeline-marker.now {
    background: linear-gradient(135deg, var(--fichaje-primary) 0%, #2548b8 100%);
    border-color: var(--fichaje-primary);
    box-shadow: 0 0 0 6px rgba(55, 100, 237, 0.15);
  }

  .tpv-timeline-marker svg {
    width: 28px;
    height: 28px;
    stroke: var(--fichaje-primary);
    fill: none;
    stroke-width: 2;
  }

  .tpv-timeline-marker.urgent svg { stroke: #ef4444; }
  .tpv-timeline-marker.now svg { stroke: white; }

  .tpv-timeline-date {
    font-size: 13px;
    font-weight: 700;
    color: var(--fichaje-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
  }

  .tpv-timeline-marker.urgent + .tpv-timeline-content .tpv-timeline-date { color: #ef4444; }
  .tpv-timeline-marker.now + .tpv-timeline-content .tpv-timeline-date { color: #4ade80; }

  .tpv-timeline-content h3 {
    font-size: 26px;
    color: white;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .tpv-timeline-content p {
    color: var(--fichaje-text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    max-width: 580px;
  }

  .tpv-timeline-content p strong { color: white; font-weight: 700; }

  /* ===== SOLUCIÓN ASIMÉTRICA ===== */
  .tpv-features-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    margin-top: 60px;
  }

  .tpv-feature-card {
    background: linear-gradient(145deg, rgba(55, 100, 237, 0.08) 0%, rgba(55, 100, 237, 0.02) 100%);
    border: 1px solid rgba(55, 100, 237, 0.15);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
  }

  .tpv-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(55, 100, 237, 0.4);
  }

  .tpv-feature-hero {
    grid-row: span 2;
    background: linear-gradient(145deg, var(--fichaje-primary) 0%, #2548b8 100%);
    border-color: var(--fichaje-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 460px;
  }

  .tpv-feature-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
  }

  .tpv-feature-hero .tpv-feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    margin-bottom: 32px;
  }

  .tpv-feature-hero .tpv-feature-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    fill: none;
    stroke-width: 1.8;
  }

  .tpv-feature-hero h3 {
    font-size: 36px;
    color: white;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
  }

  .tpv-feature-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .tpv-feature-hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
  }

  .tpv-feature-hero-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 15px;
    font-weight: 500;
  }

  .tpv-feature-hero-list li:first-child { border: none; }

  .tpv-feature-hero-list svg {
    width: 18px;
    height: 18px;
    stroke: white;
    fill: none;
    stroke-width: 3;
    flex-shrink: 0;
  }

  .tpv-feature-small {
    display: flex;
    flex-direction: column;
  }

  .tpv-feature-small .tpv-feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(55, 100, 237, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }

  .tpv-feature-small .tpv-feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--fichaje-primary);
    fill: none;
    stroke-width: 2;
  }

  .tpv-feature-small h3 {
    font-size: 22px;
    color: white;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
  }

  .tpv-feature-small p {
    color: var(--fichaje-text-muted);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
  }

  /* ===== SECTORES con SVG icons ===== */
  .tpv-sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
  }

  .tpv-sector-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--fichaje-border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
  }

  .tpv-sector-card:hover {
    transform: translateY(-4px);
    border-color: rgba(55, 100, 237, 0.4);
    background: rgba(55, 100, 237, 0.05);
  }

  .tpv-sector-icon-wrap {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(55, 100, 237, 0.15) 0%, rgba(55, 100, 237, 0.05) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
  }

  .tpv-sector-icon-wrap svg {
    width: 32px;
    height: 32px;
    stroke: var(--fichaje-primary);
    fill: none;
    stroke-width: 1.8;
  }

  .tpv-sector-card h4 {
    color: white;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
  }

  .tpv-sector-card p {
    color: var(--fichaje-text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
  }

  /* ===== TIMELINE HORIZONTAL DEL PROCESO ===== */
  .tpv-trial-timeline {
    position: relative;
    margin: 80px 0 40px;
    padding: 0 20px;
  }

  .tpv-trial-timeline-line {
    position: absolute;
    top: 36px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg,
      var(--fichaje-primary) 0%,
      var(--fichaje-primary) 100%);
    z-index: 1;
  }

  .tpv-trial-timeline-line::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    background-size: 30% 100%;
    background-repeat: no-repeat;
    animation: timeline-flow 3s linear infinite;
  }

  @keyframes timeline-flow {
    0% { background-position: -30% 0; }
    100% { background-position: 130% 0; }
  }

  .tpv-trial-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
  }

  .tpv-trial-step {
    text-align: center;
    position: relative;
  }

  .tpv-trial-step-number {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a1f3a 0%, #0f1428 100%);
    border: 2px solid var(--fichaje-primary);
    color: white;
    font-size: 28px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 12px 32px rgba(55, 100, 237, 0.3);
  }

  .tpv-trial-step:first-child .tpv-trial-step-number {
    background: linear-gradient(135deg, var(--fichaje-primary) 0%, #2548b8 100%);
    border-color: var(--fichaje-primary);
  }

  .tpv-trial-step h4 {
    font-size: 18px;
    color: white;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
  }

  .tpv-trial-step p {
    color: var(--fichaje-text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    max-width: 200px;
    margin: 0 auto;
  }

  /* ===== SVG en CTAs heredados (header, mobile, CTA final) ===== */
  .fichaje-nav-cta svg,
  .fichaje-mobile-cta svg,
  .fichaje-btn-white svg {
    fill: none;
    stroke: currentColor;
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 968px) {
    .tpv-hero-v2-grid {
      grid-template-columns: 1fr;
      gap: 60px;
    }

    .tpv-mockup { max-width: 420px; }

    .tpv-hero-v2-stats {
      grid-template-columns: 1fr;
      gap: 24px;
      margin-top: 60px;
    }

    .tpv-hero-v2-stat { padding: 16px 0; }

    .tpv-hero-v2-stat:not(:last-child)::after { display: none; }

    .tpv-hero-v2-stat:not(:last-child) {
      border-bottom: 1px solid rgba(55, 100, 237, 0.15);
    }

    .tpv-features-grid {
      grid-template-columns: 1fr;
    }

    .tpv-feature-hero {
      grid-row: auto;
      min-height: auto;
    }

    .tpv-feature-hero h3 { font-size: 28px; }

    .tpv-trial-timeline-line { display: none; }

    .tpv-trial-steps {
      grid-template-columns: 1fr;
      gap: 32px;
    }

    .tpv-timeline-item { padding-left: 80px; }

    .tpv-timeline-marker {
      width: 56px;
      height: 56px;
    }

    .tpv-timeline::before { left: 28px; }

    .tpv-timeline-content h3 { font-size: 22px; }
  }

  @media (max-width: 600px) {
    .tpv-sectors-grid { grid-template-columns: 1fr 1fr; }

    .tpv-btn-glow {
      width: 100%;
      justify-content: center;
      padding: 20px;
    }

    .tpv-no-card-note {
      width: 100%;
      justify-content: center;
    }
  }