:root {
    --ember: #FF4A1C;       /* Signal */
    --ember-dim: #CC3B16;
    --coal: #0E0D0C;        /* Ink — dark background */
    --ash: #1A1917;         /* Alternate section bg */
    --smoke: #2A2825;       /* Toggles */
    --warm-gray: #8C8880;   /* Muted text */
    --cream: #F2EFE8;       /* Paper — text / light surfaces */
    --stone: #E8E3D6;       /* Stone */
    --gold: #E8A945;        /* Amber */
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--coal);
    color: var(--cream);
    overflow-x: hidden;
  }
  h1, h2, h3, h4, .font-display { font-family: 'Playfair Display', Georgia, serif; }

  /* Grain overlay */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
  }
  .hidden { display: none; }

  /* Ocultar barra de Google Translate */
  .goog-te-banner-frame,
  .goog-te-balloon-frame,
  #goog-gt-tt,
  .goog-te-menu-frame {
    display: none !important;
  }
  body {
    top: 0 !important;
  }
  .skiptranslate {
    display: none !important;
  }

  /* Language switcher */
  .lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(242,239,232,0.1);
    border-radius: 999px;
    padding: 3px;
  }
  .lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.15s, transform 0.15s;
    opacity: 0.45;
    line-height: 1;
  }
  .lang-btn.active {
    background: rgba(255,255,255,0.1);
    opacity: 1;
    transform: scale(1.08);
  }
  .lang-btn:hover:not(.active) {
    opacity: 0.75;
  }

  /* CTA demo buttons */
  .demo-agent-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 26px;
    border-radius: 50px;
    font-size: 14.5px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: filter 0.18s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
    letter-spacing: 0.01em;
  }
  .demo-agent-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
  }
  .demo-agent-btn:active {
    transform: scale(0.96);
  }
  .demo-agent-btn svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
  }
  .demo-agent-btn--sm {
    padding: 9px 20px;
    font-size: 13.5px;
  }

  .hero-demo-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(242,239,232,0.08);
    background: rgba(255,255,255,0.02);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 10px 30px rgba(0,0,0,0.12);
  }

  .hero-demo-cta-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(232,169,69,0.1);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  @media (max-width: 767px) {
    .hero-demo-cta {
      display: flex;
      flex-wrap: wrap;
      border-radius: 22px;
    }
  }

  /* ============================================================
     CTA SPOTLIGHT — Hero rediseñado con efectos de atención
     ============================================================ */

  /* Outer stage: envuelve anillos + tarjeta sin cortar los anillos */
  .cta-stage {
    position: relative;
    display: inline-flex;
    justify-content: center;
  }

  /* Anillos pulsantes que irradian desde los bordes de la tarjeta */
  .cta-ring {
    position: absolute;
    inset: -3px;
    border-radius: 27px;
    border: 1px solid rgba(255,74,28,0.6);
    animation: cta-ring-expand 3.6s ease-out infinite;
    pointer-events: none;
  }
  .cta-ring--1 { animation-delay: 0s; }
  .cta-ring--2 { animation-delay: 1.2s; }
  .cta-ring--3 { animation-delay: 2.4s; }

  @keyframes cta-ring-expand {
    0%   { transform: scale(1);    opacity: 0.65; }
    100% { transform: scale(1.28); opacity: 0; }
  }

  /* Tarjeta principal */
  .cta-spotlight-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 48px 26px;
    border-radius: 24px;
    border: 1px solid rgba(255,74,28,0.22);
    background:
      radial-gradient(ellipse 90% 65% at 50% 0%, rgba(255,74,28,0.13) 0%, transparent 65%),
      rgba(26,25,23,0.75);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
    text-align: center;
    max-width: 520px;
    backdrop-filter: blur(10px);
    animation: card-border-breathe 3s ease-in-out infinite;
  }

  @keyframes card-border-breathe {
    0%, 100% {
      border-color: rgba(255,74,28,0.22);
      box-shadow: 0 20px 60px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
    }
    50% {
      border-color: rgba(255,74,28,0.52);
      box-shadow: 0 0 42px rgba(255,74,28,0.18), 0 20px 60px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
    }
  }

  /* Shimmer sweep sobre la tarjeta */
  .cta-spotlight-card::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.05) 50%, transparent 80%);
    animation: card-shimmer 5.5s ease-in-out 2s infinite;
    pointer-events: none;
  }
  @keyframes card-shimmer {
    0%        { left: -80%; }
    35%, 100% { left: 160%; }
  }

  /* Badge "en linea" */
  .cta-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.28);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4ade80;
  }
  .cta-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    flex-shrink: 0;
    animation: dot-breathe 1.8s ease-in-out infinite;
  }
  @keyframes dot-breathe {
    0%, 100% { opacity: 1;    box-shadow: 0 0 6px #22c55e; }
    50%       { opacity: 0.4;  box-shadow: 0 0 14px #22c55e; }
  }

  /* Headline del CTA */
  .cta-spotlight-headline {
    font-size: 1rem;
    font-weight: 500;
    color: var(--cream);
    letter-spacing: -0.01em;
    line-height: 1.45;
  }

  /* Fila de botones */
  .cta-spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  /* Boton de voz — ember con pulse + shine periodico */
  .cta-btn-voice {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    border: none;
    background: var(--ember);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: voice-glow-pulse 2.4s ease-in-out infinite;
  }
  @keyframes voice-glow-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(255,74,28,0.45), 0 0 0 0px rgba(255,74,28,0.3); }
    55%       { box-shadow: 0 4px 28px rgba(255,74,28,0.65), 0 0 0 9px rgba(255,74,28,0); }
  }
  /* Shine que barre el boton de voz */
  .cta-btn-voice::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,0.22) 50%, transparent 75%);
    animation: voice-shine 3.5s ease-in-out 0.8s infinite;
    pointer-events: none;
  }
  @keyframes voice-shine {
    0%        { left: -100%; }
    30%, 100% { left: 160%; }
  }
  .cta-btn-voice:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 36px rgba(255,74,28,0.65);
    animation: none;
  }
  .cta-btn-voice svg { width: 16px; height: 16px; flex-shrink: 0; }

  /* Boton de chat — secundario indigo */
  .cta-btn-chat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    border: 1.5px solid rgba(99,102,241,0.45);
    background: rgba(99,102,241,0.1);
    color: #a5b4fc;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: all 0.2s;
  }
  .cta-btn-chat:hover {
    background: rgba(99,102,241,0.22);
    border-color: rgba(99,102,241,0.75);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.2);
  }
  .cta-btn-chat svg { width: 15px; height: 15px; flex-shrink: 0; }

  /* Microcopia debajo de los botones */
  .cta-microcopy {
    font-size: 0.7rem;
    color: var(--warm-gray);
    letter-spacing: 0.06em;
    opacity: 0.8;
  }

  /* ============================================================
     HERO CTA ROW — grid 2 cols: card ancha + mascota
     ============================================================ */
  .hero-cta-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 48px;
    align-items: center;
  }
  /* Stage ocupa todo su ancho de columna */
  .cta-stage--hero {
    display: block;
    width: 100%;
  }
  /* Card sin max-width para que llene la columna */
  .cta-spotlight-card--hero {
    max-width: none;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    padding: 28px 36px;
    text-align: left;
  }
  .cta-spotlight-card--hero .cta-spotlight-headline,
  .cta-spotlight-card--hero .cta-microcopy {
    text-align: left;
  }
  /* Mascota */
  .hero-cta-mascot {
    flex-shrink: 0;
  }
  .hero-cta-mascot img {
    width: min(280px, 28vw);
    height: auto;
    display: block;
  }
  @media (max-width: 900px) {
    .hero-cta-row {
      grid-template-columns: 1fr;
    }
    .hero-cta-mascot {
      display: none;
    }
    .cta-spotlight-card--hero {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    .cta-spotlight-card--hero .cta-spotlight-headline,
    .cta-spotlight-card--hero .cta-microcopy {
      text-align: center;
    }
  }

  /* Variante inline (horizontal) — seccion como-funciona */
  .cta-stage--inline {
    display: block;
    width: 100%;
  }
  .cta-spotlight-card--inline {
    max-width: 100%;
    flex-direction: column;
    gap: 18px;
    padding: 28px 36px;
    text-align: left;
    align-items: flex-start;
  }
  .cta-inline-body {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
  }
  .cta-inline-body .cta-spotlight-actions {
    flex-shrink: 0;
  }

  /* Responsive */
  @media (max-width: 600px) {
    .cta-spotlight-card {
      padding: 26px 22px 22px;
      border-radius: 20px;
    }
    .cta-spotlight-card--inline {
      padding: 22px 18px;
    }
    .cta-inline-body {
      flex-direction: column;
      align-items: flex-start;
    }
    .cta-ring { border-radius: 23px; }
    .cta-spotlight-actions {
      flex-direction: column;
      width: 100%;
    }
    .cta-btn-voice, .cta-btn-chat {
      width: 100%;
      justify-content: center;
    }
  }

  /* ============================================================
     HERO DEMO FRAME — iframe de cally-demo.html en el hero
     ============================================================ */
  .hero-demo-frame-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-demo-frame-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.22);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #4ade80;
  }

  .hero-demo-frame {
    width: 340px;
    height: 524px;
    border: none;
    border-radius: 22px;
    overflow: hidden;
    display: block;
    /* sutil halo ember para que encaje con el hero */
    box-shadow:
      0 0 0 1px rgba(255,74,28,0.15),
      0 24px 56px rgba(0,0,0,0.5),
      0 0 48px rgba(255,74,28,0.08);
  }

  @media (max-width: 767px) {
    .hero-demo-frame { width: 300px; height: 464px; }
  }

  /* Ember glow */
  .ember-glow {
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,74,28,0.18) 0%, transparent 70%);
  }
  .ember-dot {
    width: 6px; height: 6px;
    background: var(--ember);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--ember), 0 0 20px rgba(255,74,28,0.4);
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
  }
  .ember-btn {
    background: var(--ember);
    color: white;
    font-family: 'Sansation', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
  }
  .ember-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.2s;
  }
  .ember-btn:hover::after { opacity: 1; }
  .ember-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(255,74,28,0.4); }

  .ghost-btn {
    border: 1px solid rgba(242,239,232,0.2);
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    transition: all 0.2s;
  }
  .ghost-btn:hover { border-color: rgba(242,239,232,0.5); background: rgba(242,239,232,0.05); }

  .ember-outline-btn {
    border: 1.5px solid var(--ember);
    color: var(--ember);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    transition: all 0.2s;
    background: transparent;
  }
  .ember-outline-btn:hover {
    background: rgba(255,74,28,0.1);
    box-shadow: 0 0 18px rgba(255,74,28,0.2);
  }

  /* Cards */
  .card {
    background: var(--ash);
    border: 1px solid rgba(242,239,232,0.07);
    transition: border-color 0.3s;
  }
  .card:hover { border-color: rgba(255,74,28,0.25); }
  .card-featured {
    background: var(--ash);
    border: 1px solid rgba(255,74,28,0.5);
    position: relative;
  }
  .card-featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,74,28,0.3), transparent 60%);
    pointer-events: none;
  }

  /* Table */
  .data-table th {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--warm-gray);
    border-bottom: 1px solid rgba(242,239,232,0.08);
    padding: 12px 16px;
  }
  .data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(242,239,232,0.05);
    font-size: 14px;
  }
  .data-table tr:last-child td { border-bottom: none; }
  .data-table tr:hover td { background: rgba(255,74,28,0.04); }

  /* Bar */
  .margin-bar {
    height: 4px;
    background: rgba(242,239,232,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
  }
  .margin-bar-fill { height: 100%; border-radius: 2px; }

  /* Nav */
  nav {
    backdrop-filter: blur(12px);
    background: rgba(14,13,12,0.8);
    border-bottom: 1px solid rgba(242,239,232,0.06);
  }

  /* Fade in animation */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .fade-up { animation: fadeUp 0.7s ease forwards; }
  .fade-up-1 { animation-delay: 0.1s; opacity: 0; }
  .fade-up-2 { animation-delay: 0.25s; opacity: 0; }
  .fade-up-3 { animation-delay: 0.4s; opacity: 0; }
  .fade-up-4 { animation-delay: 0.55s; opacity: 0; }
  .fade-up-5 { animation-delay: 0.70s; opacity: 0; }

  /* Tabs */
  .tab-btn { transition: all 0.2s; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 13px; }
  .tab-btn.active-voice { background: var(--ember); color: white; }
  .tab-btn.active-chat  { background: #1D9E75; color: white; }
  .tab-btn:not(.active-voice):not(.active-chat) {
    background: var(--smoke);
    color: var(--warm-gray);
  }

  /* Section divider */
  .section-label {
    font-family: 'Sansation', sans-serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ember);
  }

  /* Comparison */
  .vs-human { background: rgba(226,75,74,0.08); border: 1px solid rgba(226,75,74,0.2); }
  .vs-fogo  { background: rgba(255,74,28,0.08); border: 1px solid rgba(255,74,28,0.3); }

  /* Scroll reveal */
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* Decorative line */
  .deco-line {
    width: 40px; height: 2px;
    background: var(--ember);
    border-radius: 1px;
  }

  /* Pricing toggle */
  .toggle-wrap {
    background: var(--smoke);
    border-radius: 9999px;
    padding: 3px;
    display: inline-flex;
  }
  .toggle-opt {
    padding: 6px 20px;
    border-radius: 9999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--warm-gray);
  }
  .toggle-opt.on { background: var(--ember); color: white; }
  .toggle-opt:not(.on):hover { color: var(--cream); }

  /* Setup badge */
  .setup-badge {
    background: rgba(232,169,69,0.12);
    border: 1px solid rgba(232,169,69,0.25);
    color: var(--gold);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  /* Feature check */
  .feat-check { color: var(--ember); font-size: 14px; flex-shrink: 0; margin-top: 1px; }

  /* Big number */
  .big-num {
    font-family: 'Sansation', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
  }

  /* Overflow table wrapper */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Billing toggle (Mensual / Anual) */
  .billing-toggle-wrap {
    background: var(--smoke);
    border-radius: 9999px;
    padding: 3px;
    display: inline-flex;
    align-items: center;
  }
  .billing-opt {
    padding: 6px 18px;
    border-radius: 9999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--warm-gray);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .billing-opt.on { background: var(--ember); color: white; }
  .billing-opt:not(.on):hover { color: var(--cream); }

  /* Badge "Ahorra 20%" dentro del toggle anual */
  .annual-save-badge {
    background: rgba(232,169,69,0.2);
    color: var(--gold);
    font-size: 10px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 1px 7px;
    border-radius: 9999px;
    white-space: nowrap;
  }
  .billing-opt.on .annual-save-badge {
    background: rgba(255,255,255,0.2);
    color: white;
  }

  /* Bloques de precio por modalidad */
  .price-block--annual { display: none; }
  .billing-annual .price-block--monthly { display: none; }
  .billing-annual .price-block--annual  { display: block; }
