/* =========================
   BASE
   ========================= */
:root{
  --bg1: #cfd9ff;
  --bg2: #eef1ff;
  --bg3: #f5f7ff;

  --text: rgba(15,15,15,0.92);
  --muted: rgba(25,25,25,0.60);

  --ring: rgba(255,255,255,0.55);
  --shadow1: rgba(255,255,255,0.60);
  --shadow2: rgba(70,70,70,0.12);
  --shadow2-strong: rgba(70,70,70,0.16);

  --active: rgba(223,247,230,0.95);
}

*{ box-sizing: border-box; }

body{
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 30% 40%, var(--bg1) 0%, var(--bg2) 60%, var(--bg3) 100%);
  color: var(--text);
}

/* =========================
   CONTAINER
   ========================= */
.ts-container{
  width: 92%;
  max-width: 1300px;
  margin: 0 auto;
}

.ts-main{
  padding-bottom: 48px;
}

/* =========================
   HEADER
   ========================= */
.ts-header{
  width: 100%;
  background: radial-gradient(circle at 30% 40%, var(--bg1) 0%, var(--bg2) 60%, var(--bg3) 100%);
  border-bottom: 1px solid rgba(229,231,235,0.9);
  padding: 14px 0;
}

.ts-header .ts-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ts-logo img{
  height: 50px;
  width: auto;
  display: block;
}

.ts-flags{
  display: flex;
  gap: 12px;
  align-items: center;
}
.ts-flags img{
  width: 22px;
  height: 14px;
  object-fit: cover;
  border-radius: 4px;
  pointer-events: none;
}

.ts-login{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(25,25,25,0.55);
}

.ts-btn-login{
  padding: 10px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: #2e7d32;
    user-select: none;
  -webkit-user-select: none;

  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.55);
  cursor: pointer;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    -6px -6px 14px rgba(255,255,255,0.65),
     6px  6px 14px rgba(0,0,0,0.10);

  transition: transform .18s ease, box-shadow .18s ease;
}
.ts-btn-login:hover{
  transform: translateY(-2px);
  box-shadow:
    -8px -8px 18px rgba(255,255,255,0.75),
     8px  8px 18px rgba(0,0,0,0.12);
}
.ts-btn-login:active{
  transform: translateY(0);
  box-shadow:
    inset -4px -4px 10px rgba(255,255,255,0.65),
    inset  4px  4px 10px rgba(0,0,0,0.12);
}

@media (max-width: 860px){
  .ts-header .ts-container{
    flex-wrap: wrap;
    justify-content: center;
  }
  .ts-login{
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   HERO
   ========================= */
.ts-hero{
  text-align: center;
  padding: 42px 0 18px 0;
}

.ts-hero h1{
  margin: 0 0 14px 0;
  font-weight: 300;
  letter-spacing: -0.8px;
  line-height: 1.12;
  font-size: clamp(28px, 3.2vw, 44px);
  color: rgba(15,15,15,0.90);
}

.ts-subtitle{
  margin: 0;
  font-weight: 300;
  line-height: 1.25;
  font-size: clamp(16px, 2vw, 28px);
  color: rgba(25,25,25,0.55);
}

/* =========================
   NEUMORPH BUTTONS (shared)
   ========================= */
.neo-radio{
  position: fixed;
  top: -9999px;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.neo-btn{
  height: 110px;
  width: 110px;
  border-radius: 50%;
  border: 8px solid rgba(255,255,255,0.55);
  background: #ececec;
  display: grid;
  place-items: center;
  box-shadow:
    -10px -10px 15px var(--shadow1),
     10px  10px 15px var(--shadow2);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.neo-btn::after{
  content: "";
  width: 100px;
  height: 100px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  transition: transform .15s ease, opacity .15s ease, filter .15s ease;
}

.neo-btn:hover{
  transform: translateY(-4px);
  box-shadow:
    -12px -12px 18px rgba(255,255,255,0.72),
     12px  12px 18px var(--shadow2-strong);
}
.neo-btn:active{
  transform: scale(0.97);
}

/* =========================
   3 PASOS - con imagen + texto + flechas
   ========================= */
.steps-flow{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.step-item{
  display: grid;
  place-items: center;
  gap: 10px;
}

.step-caption{
  font-size: 12px;
  font-weight: 700;
  color: rgba(25,25,25,0.55);
  text-align: center;
  line-height: 1.2;
  user-select: none;
}

.step-arrow{
  width: 54px;
  height: 2px;
  background: rgba(120,220,185,0.35);
  position: relative;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.step-arrow::after{
  content:"";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  border-right: 2px solid rgba(120,220,185,0.55);
  border-top: 2px solid rgba(120,220,185,0.55);
}

.step-btn::after{
  width: 90px;
  height: 90px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  overflow: hidden;
}

.step-1 .step-btn::after{ background-image: url("img/crea_ y_ activa_ tu_ tienda.png"); }
.step-2 .step-btn::after{ background-image: url("img/agrega_productos.png"); }
.step-3 .step-btn::after{ background-image: url("img/pos_mercadopago.png"); }

@media (max-width: 560px){
  .steps-flow{ gap: 14px; }
  .step-arrow{ width: 36px; }
  .step-btn{ width: 92px; height: 92px; border-width: 7px; }
  .step-btn::after{ width: 76px; height: 76px; }
}

.ts-steps{
  display: grid;
  place-items: center;
  padding: 16px 0 8px 0;
}

.steps-buttons{
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
}

.neo-btn--on{
  background-color: var(--active);
  box-shadow:
    -10px -10px 15px var(--shadow1),
     10px  10px 15px var(--shadow2),
    inset -10px -10px 15px var(--shadow1),
    inset  10px  10px 15px var(--shadow2);
  pointer-events: none;
  cursor: default;
}

/* =========================
   CONTAINERS
   ========================= */
.container{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.container-liquid{
  align-items: flex-end;
}

.container-card{
  align-items: center;
}

/* =========================
   SECCIÓN LIQUID - CREAR TIENDA
   ========================= */
.form{
  width: 420px;
  max-width: 92vw;
  position: relative;
  overflow: hidden;

  border-radius: 52% 48% 33% 67% / 38% 45% 55% 62%;
  transition: all .5s ease;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);

  box-shadow:
    inset 12px 12px 20px rgba(255,255,255,0.35),
    inset -14px -14px 25px rgba(0,0,0,0.06),
    30px 40px 35px rgba(0,0,0,0.10);
}

.form::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.65), transparent 40%),
    radial-gradient(circle at 18% 16%, rgba(255,255,255,0.85), transparent 22%);
  opacity: .55;
  pointer-events:none;
}

.form::after{
  content:'';
  position:absolute;
  inset: 12px;
  border-radius: inherit;
  background: radial-gradient(circle at 60% 65%, rgba(255,255,255,0.18), transparent 55%);
  border: 1px solid rgba(255,255,255,0.15);
  pointer-events:none;
}

.form:hover{ border-radius: 50%; }

.login-box{
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;

  padding: 80px 60px;
}

.login-box h1{
  color: rgba(20,20,20,0.65);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
}

form{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.field{ width: 100%; }

.input-box{
  width: 100%;
  border-radius: 25px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.50);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.70),
    12px 14px 16px rgba(0,0,0,0.06);

  overflow: hidden;
}

.input-box input{
  width: 100%;
  height: 44px;
  font-size: 15px;
  padding: 0 16px;

  background: transparent;
  outline: none;
  border: none;

  color: #2e2e2e;
  font-weight: 600;
}

.input-box input::placeholder{
  font-size: 13px;
  color: rgba(0,0,0,0.35);
  font-weight: 600;
}

.input-box:focus-within{
  border-color: rgba(120,220,185,0.70);
  box-shadow:
    0 0 0 4px rgba(120,220,185,0.18),
    inset 0 1px 0 rgba(255,255,255,0.75);
}

.btn{
  width: 100%;
  height: 44px;
  border-radius: 25px;
  cursor: pointer;
  user-select: none;
  border: none;
  transition: all .25s ease;
}

.btn-create{
  background: linear-gradient(
    180deg,
    rgba(170,242,214,0.65),
    rgba(5,141,91,0.45)
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    0 18px 25px rgba(0,0,0,0.10);

  color: #ffffff;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-create:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.btn-create:active{
  transform: translateY(0);
  filter: brightness(0.98);
}

.hint{
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: rgba(129,129,129,0.45);
  font-weight: 400;
  margin-top: 4px;
}

@media (max-width: 720px){
  .form{ width: 360px; }
}

/* =========================
   FEATURES GRID
   ========================= */
.ts-features{
  padding: 16px 0 10px 0;
}

.buttons{
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  padding: 26px 0 10px 0;
  margin: 0 auto;
}

.ts-features .buttons .neo-btn{
  background: #ececec;
  border: 8px solid #ececec;
  box-shadow:
    -10px -10px 15px rgba(255, 255, 255, 0.55),
     10px  10px 15px rgba(70, 70, 70, 0.12);
}

.ts-features .buttons .neo-btn:hover{
  transform: translateY(-4px);
  box-shadow:
    -12px -12px 18px rgba(255, 255, 255, 0.70),
     12px  12px 18px rgba(70, 70, 70, 0.15);
}

#b1:checked ~ main .ts-features .buttons label[for="b1"],
#b2:checked ~ main .ts-features .buttons label[for="b2"],
#b3:checked ~ main .ts-features .buttons label[for="b3"],
#b4:checked ~ main .ts-features .buttons label[for="b4"],
#b5:checked ~ main .ts-features .buttons label[for="b5"],
#b6:checked ~ main .ts-features .buttons label[for="b6"],
#b7:checked ~ main .ts-features .buttons label[for="b7"],
#b8:checked ~ main .ts-features .buttons label[for="b8"],
#b9:checked ~ main .ts-features .buttons label[for="b9"]{
  background-color: var(--active);
  border-color: rgba(255,255,255,0.55);
  box-shadow:
    -10px -10px 15px var(--shadow1),
     10px  10px 15px var(--shadow2),
    inset -10px -10px 15px var(--shadow1),
    inset  10px  10px 15px var(--shadow2);
}

#b1:checked ~ main .ts-features .buttons label[for="b1"]::after,
#b2:checked ~ main .ts-features .buttons label[for="b2"]::after,
#b3:checked ~ main .ts-features .buttons label[for="b3"]::after,
#b4:checked ~ main .ts-features .buttons label[for="b4"]::after,
#b5:checked ~ main .ts-features .buttons label[for="b5"]::after,
#b6:checked ~ main .ts-features .buttons label[for="b6"]::after,
#b7:checked ~ main .ts-features .buttons label[for="b7"]::after,
#b8:checked ~ main .ts-features .buttons label[for="b8"]::after,
#b9:checked ~ main .ts-features .buttons label[for="b9"]::after{
  transform: scale(0.96);
  opacity: 0.95;
}

.ts-features .buttons label[for="b1"]::after{ background-image: url("img/diseño_premium_tienda.png"); }
.ts-features .buttons label[for="b2"]::after{ background-image: url("img/psicologia_de_la_venta.png"); }
.ts-features .buttons label[for="b3"]::after{ background-image: url("img/sube_tu_catalogo.png"); }
.ts-features .buttons label[for="b4"]::after{ background-image: url("img/sincroniza_mercadolibre.png"); }
.ts-features .buttons label[for="b5"]::after{ background-image: url("img/activa_mercado_pago.png"); }
.ts-features .buttons label[for="b6"]::after{ background-image: url("img/configura_envios.png"); }
.ts-features .buttons label[for="b7"]::after{ background-image: url("img/activa_meta_ads.png"); }
.ts-features .buttons label[for="b8"]::after{ background-image: url("img/indicadores_ecommerce.png"); }
.ts-features .buttons label[for="b9"]::after{ background-image: url("img/conecta_tu_dominio.png"); }

#b1:checked ~ main .ts-features .buttons label[for="b1"]::after{ background-image: url("img/diseño_premium_tienda_activo.png"); }
#b2:checked ~ main .ts-features .buttons label[for="b2"]::after{ background-image: url("img/psicologia_de_la_venta_activo.png"); }
#b3:checked ~ main .ts-features .buttons label[for="b3"]::after{ background-image: url("img/sube_tu_catalogo_activo.png"); }
#b4:checked ~ main .ts-features .buttons label[for="b4"]::after{ background-image: url("img/sincroniza_mercadolibre_activo.png"); }
#b5:checked ~ main .ts-features .buttons label[for="b5"]::after{ background-image: url("img/activa_mercado_pago_activo.png"); }
#b6:checked ~ main .ts-features .buttons label[for="b6"]::after{ background-image: url("img/configura_envios_activo.png"); }
#b7:checked ~ main .ts-features .buttons label[for="b7"]::after{ background-image: url("img/activa_meta_ads_activo.png"); }
#b8:checked ~ main .ts-features .buttons label[for="b8"]::after{ background-image: url("img/indicadores_ecommerce_activo.png"); }
#b9:checked ~ main .ts-features .buttons label[for="b9"]::after{ background-image: url("img/conecta_tu_dominio_activo.png"); }

@media (max-width: 560px){
  .neo-btn{ width: 92px; height: 92px; border-width: 7px; }
  .neo-btn::after{ width: 82px; height: 82px; }
  .steps-buttons{ gap: 16px; }
}

.feature-caption{
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(25,25,25,0.55);
  text-align: center;
  line-height: 1.2;
  user-select: none;
}

/* =========================
   FEATURE DIALOG
   ========================= */
.feature-item{
  position: relative;
  display: grid;
  place-items: center;
}

.feature-pop{
  position: absolute;
  left: 50%;
  top: -14px;
  transform: translate(-50%, -100%);
  width: min(420px, 86vw);
  padding: 16px 16px;
  border-radius: 18px;
  z-index: 60;

  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow:
    0 18px 60px rgba(0,0,0,0.16),
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 0 0 1px rgba(120,220,185,0.10),
    0 18px 45px rgba(0, 190, 120, 0.18),
    0 0 60px rgba(0, 190, 120, 0.12);

  display: none;
  overflow: hidden;
}

.feature-pop::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.35), transparent 55%);
  pointer-events:none;
}

.feature-pop::after{
  content:"";
  position:absolute;
  left: 50%;
  bottom: -9px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%) rotate(45deg);

  background: rgba(255,255,255,0.18);
  border-right: 1px solid rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.35);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow:
    0 10px 22px rgba(0, 190, 120, 0.14),
    0 0 34px rgba(0, 190, 120, 0.10);
}

.feature-pop h3{
  margin: 0 0 8px 0;
  font: 700 16px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: rgba(15,15,15,0.92);
}

.feature-pop p{
  margin: 0 0 12px 0;
  font: 400 13px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: rgba(25,25,25,0.75);
}

#b1:checked ~ main .feature-item--b1 .feature-pop{ display: block; animation: bubblePop .16s ease-out both; }
#b2:checked ~ main .feature-item--b2 .feature-pop{ display: block; animation: bubblePop .16s ease-out both; }
#b3:checked ~ main .feature-item--b3 .feature-pop{ display: block; animation: bubblePop .16s ease-out both; }
#b4:checked ~ main .feature-item--b4 .feature-pop{ display: block; animation: bubblePop .16s ease-out both; }
#b5:checked ~ main .feature-item--b5 .feature-pop{ display: block; animation: bubblePop .16s ease-out both; }
#b6:checked ~ main .feature-item--b6 .feature-pop{ display: block; animation: bubblePop .16s ease-out both; }
#b7:checked ~ main .feature-item--b7 .feature-pop{ display: block; animation: bubblePop .16s ease-out both; }
#b8:checked ~ main .feature-item--b8 .feature-pop{ display: block; animation: bubblePop .16s ease-out both; }
#b9:checked ~ main .feature-item--b9 .feature-pop{ display: block; animation: bubblePop .16s ease-out both; }

@keyframes bubblePop{
  from{ transform: translate(-50%, -100%) translateY(6px); opacity: 0; }
  to{ transform: translate(-50%, -100%) translateY(0); opacity: 1; }
}

@media (max-width: 560px){
  .feature-pop{
    top: auto;
    bottom: -14px;
    transform: translate(-50%, 100%);
  }
  .feature-pop::after{
    top: -9px;
    bottom: auto;
    transform: translateX(-50%) rotate(45deg);
    border-right: none;
    border-bottom: none;
    border-left: 1px solid rgba(255,255,255,0.35);
    border-top: 1px solid rgba(255,255,255,0.35);
  }
  @keyframes bubblePop{
    from{ transform: translate(-50%, 100%) translateY(-6px); opacity: 0; }
    to{ transform: translate(-50%, 100%) translateY(0); opacity: 1; }
  }
}

/* =========================
   CTA (bottom)
   ========================= */
.ts-cta{
  display: grid;
  place-items: center;
  padding: 26px 0 8px 0;
}

.glass-btn-green{
  position:relative;
  display:flex;
  align-items:center;
  gap:18px;
  padding:14px 32px 14px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.55);
  background: rgba(0, 200, 120, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor:pointer;
  transition: all .35s ease;

  box-shadow:
    0 8px 25px rgba(0,120,70,0.25),
    inset 0 1px 1px rgba(255,255,255,0.6);
}

.glass-btn-green::before{
  content:"";
  position:absolute;
  top:0;
  left:10%;
  width:80%;
  height:50%;
  border-radius:999px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  opacity:0.5;
  pointer-events:none;
}

.glass-icon{
  width:44px;
  height:44px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.8),
    0 4px 12px rgba(0,120,70,0.25);
}

.glass-text{
  font-size:16px;
  font-weight:600;
  color:white;
  letter-spacing:0.3px;
}

.glass-btn-green:hover{
  transform:translateY(-2px);
  box-shadow:
    0 14px 35px rgba(0,120,70,0.35),
    inset 0 1px 1px rgba(255,255,255,0.8);
}

/* =========================
   MODALES (Glassmorphism)
   ========================= */
.panel{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  z-index: 1000;
}

.panel-backdrop{
  position: absolute;
  inset: 0;
  background: transparent;
  cursor: pointer;
}

/* ✅ Backdrop oscuro también para verify */
.panel-login .panel-backdrop,
.panel-signup .panel-backdrop,
.panel-verify .panel-backdrop{
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.panel-inner{
  position: relative;
  width: min(640px, calc(100% - 28px));
  border-radius: 24px;
  padding: 22px;

  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow:
    0 18px 60px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.35);

  overflow: hidden;
}

.panel-inner::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.35), transparent 55%);
  pointer-events:none;
}

.panel-inner h3{
  margin: 0 0 8px 0;
  font: 700 18px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: rgba(15,15,15,0.92);
}

.panel-inner p{
  margin: 0 0 16px 0;
  font: 400 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: rgba(25,25,25,0.75);
}

.panel-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.glass-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;

  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: rgba(15,15,15,0.85);
  font: 600 13px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial;

  transition: transform .15s ease, box-shadow .15s ease;
}
.glass-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.panel-login .panel-inner{
  width: min(380px, calc(100% - 28px));
  text-align: center;
}
.panel-signup .panel-inner{
  width: min(420px, calc(100% - 28px));
  text-align: center;
}
/* verify usa el mismo tamaño que login para verse fino */
.panel-verify .panel-inner{
  width: min(380px, calc(100% - 28px));
  text-align: center;
}

.login-header{ margin-bottom: 10px; }
.login-header img{
  width: 90px;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
}

.login-form{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-form input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;

  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  font-size: 14px;
  outline: none;
}

.login-form input:focus{
  border-color: rgba(34,197,94,0.45);
}

.login-btn{
  width: 100%;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: 600;
  font-size: 13px;

  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: rgba(15,15,15,0.85);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.login-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.login-btn--primary{
  background: rgba(34,197,94,0.22);
  border-color: rgba(34,197,94,0.30);
  color: rgba(10,60,25,0.95);
}

.login-btn--ghost{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
  color: rgba(20,20,20,0.70);
}

.login-footer{
  margin-top: 16px;
  font-size: 13px;
  color: rgba(25,25,25,0.75);
}

.login-link{
  color: #2e7d32;
  font-weight: 600;
  margin-left: 4px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.login-link:hover{
  text-decoration: underline;
}

/* ✅ Mostrar modales con radios */
#login:checked ~ .panel-login{ display: grid; }
#signup:checked ~ .panel-signup{ display: grid; }
#verify:checked ~ .panel-verify{ display: grid; }

/* FIX: "Cancelar" en modal SIGNUP no debe achicarse */
.panel-signup .signup-row{
  width: 100%;
}
.panel-signup .signup-row .login-btn{
  display: flex !important;
  width: 100% !important;
}

/* =========================
   CARD PLAN + TAB
   ========================= */
.card-wrap{
  position: relative;
  width: min(440px, 92vw);
  display: block;
  margin: 0 auto;
}

.card{
  width: 100%;
  max-width: none;
  text-align: center;
  padding: 64px 34px 44px;
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 18px 60px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);

  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(1200px 500px at 50% 0%,
            rgba(255,255,255,0.18),
            rgba(0,0,0,0.06));
  pointer-events:none;
}

.card img{
  width: 140px;
  border-radius: 50%;
  display:block;
  margin: 0 auto 10px auto;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.18));
}

.card h2{
  font-size: 46px;
  font-weight: 800;
  color: rgba(255,255,255,0.98);
  text-shadow: 0 6px 18px rgba(0,0,0,0.15);
  margin-bottom: 5px;
}

.card h2 span{
  font-size: 22px;
  font-weight: 500;
  opacity: 0.8;
}

.plan-tab{
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  z-index: 50;

  width: calc(100% - 56px);
  max-width: 360px;
  text-align: center;

  padding: 14px 18px;
  border-radius: 16px;

  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: none;

  color: rgba(255,255,255,0.95);
  background: rgba(115, 135, 255, 0.95);
  border: 1px solid rgba(255,255,255,0.28);

  box-shadow:
    0 10px 22px rgba(80, 100, 255, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.42);

  backdrop-filter: blur(12px);
  isolation: isolate;
}

.plan-tab::after{
  content:"";
  position:absolute;
  left: 50%;
  top: 70%;
  transform: translateX(-50%);

  width: 100%;
  max-width: 360px;
  height: 180px;

  background: radial-gradient(closest-side,
    rgba(115,135,255,0.70),
    rgba(115,135,255,0.00) 75%);

  filter: blur(28px);
  opacity: 0.95;
  z-index: -1;
  pointer-events: none;
}

.plan-tab::before{
  content:"";
  position:absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);

  width: 92%;
  height: 16px;
  border-radius: 999px;

  background: linear-gradient(to bottom,
    rgba(255,255,255,0.40),
    rgba(255,255,255,0.00));
  filter: blur(10px);
  opacity: 0.9;

  z-index: -1;
  pointer-events: none;
}

/* FIX DEFINITIVO: "¿Olvidaste tu contraseña?" sin subrayado permanente */
a.login-link,
a.login-link:link,
a.login-link:visited{
  text-decoration: none !important;
}

a.login-link:hover,
a.login-link:focus{
  text-decoration: underline !important;
}

/* =========================
   VERIFY PANEL (mejorado)
   ========================= */
.panel-verify .verify-panel{
  width: min(390px, calc(100% - 28px));
  text-align: center;
  padding: 22px 22px 18px;
}

.verify-header{
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.verify-header img{
  width: 86px;
  height: auto;
  display: block;
}

.verify-title{
  font-weight: 800;
  font-size: 15px;
  color: rgba(15,15,15,0.92);
  margin: 6px 0 10px;
}

.verify-emailbox{
  margin: 0 auto 12px;
  width: 100%;
  border-radius: 14px;
  padding: 10px 12px;

  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.verify-emailhint{
  font-size: 12px;
  color: rgba(25,25,25,0.65);
  margin-bottom: 6px;
}

.verify-email{
  font-size: 13px;
  font-weight: 800;
  color: rgba(15,15,15,0.90);
  word-break: break-word;
}

.verify-check{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin: 10px auto 8px;

  display: grid;
  place-items: center;

  background: rgba(24,173,94,0.92);
  box-shadow: 0 12px 26px rgba(0,120,70,0.25);
}

.verify-strong{
  font-weight: 900;
  font-size: 13px;
  color: rgba(24,173,94,0.95);
  margin: 6px 0 6px;
}

.verify-text{
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(25,25,25,0.65);
  margin: 0 0 14px;
}

.verify-flash{
  margin: 10px 0 0;
  font: 800 12px/1.35 system-ui;
}
.verify-flash--ok{ color: rgba(24,173,94,0.95); }
.verify-flash--err{ color: #b93a2f; }
.verify-flash--info{ color: rgba(25,25,25,0.70); }

.verify-actions{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.verify-form{
  width: 100%;
  margin: 0;
}

.verify-btn{
  width: 100%;
  height: 42px;
  border-radius: 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: 800;
  font-size: 13px;

  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: rgba(15,15,15,0.85);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}

.verify-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.verify-btn--primary{
  background: rgba(34,197,94,0.22);
  border-color: rgba(34,197,94,0.30);
  color: rgba(10,60,25,0.95);
}

.verify-btn--ghost{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
  color: rgba(20,20,20,0.70);
}

.verify-link{
  font-size: 12.5px;
  font-weight: 800;
  color: rgba(24,173,94,0.95);
  text-decoration: none;
}
.verify-link:hover{ text-decoration: underline; }

.verify-link--muted{
  color: rgba(25,25,25,0.65);
}

.verify-text-link{
  font-size: 13px;
  font-weight: 800;
  color: rgba(24,173,94,0.95);
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s ease;
}

.verify-text-link:hover{
  text-decoration: underline;
  opacity: .85;
}

.verify-flash{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font: 700 12px/1.35 system-ui;
  text-align: center;
}

.verify-flash--info{
  color: rgba(24,173,94,0.95);
  background: rgba(24,173,94,0.08);
  border: 1px solid rgba(24,173,94,0.18);
}

.verify-flash--err{
  color: rgba(185,58,47,0.95);
  background: rgba(185,58,47,0.08);
  border: 1px solid rgba(185,58,47,0.18);
}

/* Backdrop debajo del modal (para que NO tape botones) */
.panel-verify .panel-backdrop{
  position: fixed;
  inset: 0;
  z-index: 10;
}

/* Modal por encima del backdrop */
.panel-verify .panel-inner{
  position: relative;
  z-index: 11;
}

/* =========================
   FOOTER
   ========================= */
.ts-footer{
  margin-top: 60px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.35);

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ts-footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ts-footer-left{
  display: flex;
  align-items: center;
  gap: 10px;
}

.ts-footer-left img{
  width: 22px;
  height: 22px;
}

.ts-footer-text{
  font-size: 13px;
  font-weight: 500;
  color: rgba(25,25,25,0.65);
}

.ts-footer-flags{
  display: flex;
  gap: 10px;
  align-items: center;
}

.ts-footer-flags img{
  width: 22px;
  height: 14px;
  border-radius: 4px;
  object-fit: cover;
}

/* Mobile */
@media (max-width: 560px){
  .ts-footer-inner{
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .ts-footer-text{
    font-size: 12.5px;
  }
}
/* =========================
   HEADER v2 (Desktop botones + Mobile hamburguesa)
   ========================= */

.ts-header .ts-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

/* Botones header */
.ts-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.ts-btn{
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  border: 1px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.ts-btn--glass{
  color: rgba(25,25,25,0.75);
  background: rgba(255,255,255,0.28);
  box-shadow:
    -6px -6px 14px rgba(255,255,255,0.65),
     6px  6px 14px rgba(0,0,0,0.10);
}

.ts-btn--green{
  color: rgba(255,255,255,0.96);
  background: rgba(0, 190, 120, 0.28);
  border-color: rgba(255,255,255,0.55);
  box-shadow:
    0 12px 28px rgba(0,120,70,0.22),
    inset 0 1px 0 rgba(255,255,255,0.55);
}

.ts-btn:hover{ transform: translateY(-2px); }
.ts-btn:active{ transform: translateY(0); filter: brightness(0.98); }

/* ---------- Mobile menu ---------- */
.ts-menu{ display:none; position:relative; }

.ts-menu-toggle{
  position: fixed;
  top: -9999px;
  left: -9999px;
  opacity: 0;
}

.ts-burger{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  cursor:pointer;
  background: rgba(255,255,255,0.24);
  border: 1px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    -6px -6px 14px rgba(255,255,255,0.65),
     6px  6px 14px rgba(0,0,0,0.10);
}

.ts-burger span{
  display:block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(25,25,25,0.70);
  margin: 2px 0;
}

/* Panel */
.ts-menu-panel{
  position: fixed;
  right: 12px;
  top: 64px;
  width: min(260px, calc(100% - 24px));
  border-radius: 18px;
  padding: 10px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.40);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.16);
  z-index: 9500;
  display:none;
}

.ts-menu-item{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  color: rgba(25,25,25,0.78);
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  cursor:pointer;
  user-select:none;
  -webkit-user-select:none;
}

.ts-menu-item + .ts-menu-item{ margin-top: 8px; }

.ts-menu-item--green{
  color: rgba(255,255,255,0.96);
  background: rgba(0, 190, 120, 0.28);
  border-color: rgba(255,255,255,0.45);
}

/* Backdrop */
.ts-menu-backdrop{
  position: fixed;
  inset: 0;
  z-index: 9400;
  display:none;
  background: rgba(0,0,0,0.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Toggle open */
#tsMenuToggle:checked ~ .ts-menu-panel{ display:block; }
#tsMenuToggle:checked ~ .ts-menu-backdrop{ display:block; }

/* Breakpoints: desktop vs mobile */
@media (max-width: 720px){
  .ts-actions{ display:none; }
  .ts-menu{ display:block; }
}

/* FIX: modales por encima del menú */
.panel{ z-index: 12000 !important; }

/* Click en item → cierra menú (checkbox) y abre modal (radio) */
.ts-menu-open-login,
.ts-menu-open-signup{ display:none; }

/* Cuando el menú está abierto, al tocar el item se cierra; luego activamos el radio con :active */
#tsMenuToggle:checked ~ .ts-menu-panel .ts-menu-item:active ~ .ts-menu-open-login{
  display:block;
}
/* =========================
   MOBILE MENU CENTRADO
   ========================= */
@media (max-width: 720px){

  .ts-menu-panel{
    top: 50% !important;
    right: auto !important;
    left: 50% !important;

    transform: translate(-50%, -50%) !important;

    width: min(320px, 90vw) !important;
    padding: 16px !important;
  }

}

/* Logo dentro del menú mobile */
.ts-menu-logo{
  display:flex;
  justify-content:center;
  margin-bottom:14px;
}

.ts-menu-logo img{
  width: 110px;
  height:auto;
  opacity:0.95;
}

/* =========================
   HAMBURGUESA ULTRA PREMIUM
   ========================= */

.ts-burger{
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;

  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;

  background: rgba(255,255,255,0.20) !important;
  border: 1px solid rgba(255,255,255,0.55) !important;

  backdrop-filter: blur(22px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(150%) !important;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.6);

  transition: all .25s ease !important;
}

/* Líneas elegantes */
.ts-burger span{
  width: 20px !important;
  height: 2px !important;
  background: rgba(25,25,25,0.65) !important;
  border-radius: 999px !important;
  margin: 3px 0 !important;
  transition: transform .25s ease, opacity .2s ease !important;
}

/* Animación a X */
#tsMenuToggle:checked + .ts-burger span:nth-child(1){
  transform: translateY(5px) rotate(45deg);
}
#tsMenuToggle:checked + .ts-burger span:nth-child(2){
  opacity: 0;
}
#tsMenuToggle:checked + .ts-burger span:nth-child(3){
  transform: translateY(-5px) rotate(-45deg);
}

/* Glow verde cuando está abierto */
#tsMenuToggle:checked + .ts-burger{
  box-shadow:
    0 0 0 3px rgba(0,190,120,0.25),
    0 12px 35px rgba(0,190,120,0.35),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Pequeña reacción táctil */
.ts-burger:active{
  transform: scale(0.95);
}
.ts-menu-panel{
  padding: 24px 22px 34px !important;
}

/* =========================
   FIX MOBILE: 3 pasos SIEMPRE en una línea
   ========================= */
@media (max-width: 560px){

  /* En vez de flex-wrap, usamos grid (Paso - Flecha - Paso - Flecha - Paso) */
  .steps-flow{
    display: grid;
    grid-template-columns: 1fr 22px 1fr 22px 1fr;
    align-items: center;
    justify-items: center;
    gap: 10px;
    width: 100%;
  }

  /* Cada paso centrado y sin “ensuciar” */
  .step-item{
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  /* Botón (círculo) un poco más chico para que quepa cómodo */
  .step-btn{
    width: 84px;
    height: 84px;
    border-width: 6px;
  }
  .step-btn::after{
    width: 68px;
    height: 68px;
  }

  /* Flechas más cortas */
  .step-arrow{
    width: 22px;
    height: 2px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  }
  .step-arrow::after{
    width: 8px;
    height: 8px;
    right: -2px;
    border-right-width: 2px;
    border-top-width: 2px;
  }

  /* Texto más compacto para no forzar quiebres */
  .step-caption{
    font-size: 11px;
    line-height: 1.15;
  }
}

/* =========================
   MOBILE: Feature dialog como Bottom Sheet (no tapa el grid)
   ========================= */
@media (max-width: 560px){

  /* Dale aire al final para que el sheet no tape la última fila */
  .ts-features{
    padding-bottom: 20px; /* ajusta si lo quieres más alto/bajo */
  }

  /* El popup se vuelve "sheet" fijo abajo */
  .feature-pop{
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    top: auto !important;

    transform: none !important;
    width: auto !important;

    border-radius: 22px;
    padding: 16px 16px 14px;

    z-index: 9999;

    display: none;
    overflow: hidden;
  }

  /* Sin flechita */
  .feature-pop::after{ display:none !important; }

  /* Título/Texto más compactos en mobile */
  .feature-pop h3{
    font-size: 15px;
    margin-bottom: 6px;
  }
  .feature-pop p{
    font-size: 13px;
    margin-bottom: 12px;
  }

  /* Botón cerrar centrado */
  .panel-actions{ justify-content: center; }

  /* MOSTRAR el sheet según radio */
  #b1:checked ~ main .feature-item--b1 .feature-pop,
  #b2:checked ~ main .feature-item--b2 .feature-pop,
  #b3:checked ~ main .feature-item--b3 .feature-pop,
  #b4:checked ~ main .feature-item--b4 .feature-pop,
  #b5:checked ~ main .feature-item--b5 .feature-pop,
  #b6:checked ~ main .feature-item--b6 .feature-pop,
  #b7:checked ~ main .feature-item--b7 .feature-pop,
  #b8:checked ~ main .feature-item--b8 .feature-pop,
  #b9:checked ~ main .feature-item--b9 .feature-pop{
    display: block;
    animation: sheetUp .18s ease-out both;
  }

  @keyframes sheetUp{
    from{ transform: translateY(10px); opacity: 0; }
    to{ transform: translateY(0); opacity: 1; }
  }

  /* Opcional: marca visual del ícono activo (más claro que “ya lo vi”) */
  #b1:checked ~ main .ts-features .buttons label[for="b1"],
  #b2:checked ~ main .ts-features .buttons label[for="b2"],
  #b3:checked ~ main .ts-features .buttons label[for="b3"],
  #b4:checked ~ main .ts-features .buttons label[for="b4"],
  #b5:checked ~ main .ts-features .buttons label[for="b5"],
  #b6:checked ~ main .ts-features .buttons label[for="b6"],
  #b7:checked ~ main .ts-features .buttons label[for="b7"],
  #b8:checked ~ main .ts-features .buttons label[for="b8"],
  #b9:checked ~ main .ts-features .buttons label[for="b9"]{
    outline: 3px solid rgba(0,190,120,0.22);
    outline-offset: 4px;
  }
}

/* =========================
   HERO PUENTE (antes de Features)
   ========================= */
.ts-hero-bridge{
  padding: 34px 0 10px 0; /* más compacto que el hero principal */
}

.ts-bridge-title{
  margin: 0 0 10px 0;
  font-weight: 500;
  letter-spacing: -0.4px;
  line-height: 1.18;
  font-size: clamp(20px, 2.2vw, 28px);
  color: rgba(25,25,25,0.72);
}

.ts-bridge-title span{
  display: inline;
  font-weight: 700;
  color: rgba(25,25,25,0.78);
}

.ts-bridge-subtitle{
  margin: 0 0 10px 0;
  font-weight: 400;
  line-height: 1.35;
  font-size: clamp(14px, 1.6vw, 18px);
  color: rgba(25,25,25,0.55);
}

.ts-bridge-focus{
  margin: 6px 0 0 0;
  font-weight: 800;
  letter-spacing: -0.2px;
  font-size: clamp(16px, 1.9vw, 22px);
  color: rgba(15,15,15,0.78);
}