/* ======================================================= */
/*                   LANDING LLAVE EN MANO 5.6 A.6         */
/* ======================================================= */

#tw-hero-premium,
#tw-why-premium,
#tw-category-header {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#tw-hero-premium ul,
#tw-why-premium ul,
#tw-category-header ul {
  margin: 0; padding: 0; list-style: none;
}

/* ========================= HERO ========================= */

#tw-hero-premium {
  position: relative; z-index: 20; color: #fff; overflow: hidden;
  border-radius: 22px 22px 28px 28px;
  padding: 3.4rem 3.3rem 3.2rem; margin: 2rem auto 3.6rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(120,190,255,.16) 0, transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(16,44,92,.55) 0, transparent 55%),
    linear-gradient(135deg, #10253f 0%, #0b1a32 55%, #081325 100%);
  box-shadow:
    0 20px 50px rgba(6,20,40,.40),
    0 40px 60px rgba(8,18,36,.22);
}
#tw-hero-premium::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(120deg, rgba(255,255,255,.035) 0, transparent 35%),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: 260px 260px, 100% 22px, 22px 100%;
}
#tw-hero-premium::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 85px;
  background: linear-gradient(to bottom, rgba(8,19,37,.28), rgba(8,19,37,.05), transparent);
  pointer-events: none;
}

.tw-hero-premium-inner {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 3.2rem;
}
.tw-hero-main { max-width: 600px; }

.tw-hero-badge {
  display: inline-flex; padding: .38rem 1rem; border-radius: 999px;
  background: rgba(13,34,68,.85); border: 1px solid rgba(137,197,255,.4);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: #d5e6ff; margin-bottom: 1.7rem;
}

.tw-hero-title {
  font-weight: 800; font-size: 3.35rem; line-height: 1.07;
  letter-spacing: -.022em; margin: 0 0 1.5rem;
}
.tw-hero-title span { color: #63baff; }

.tw-hero-subtitle {
  font-size: 1.08rem; line-height: 1.62; color: #d2deef;
  margin: 0 0 2rem; max-width: 630px;
}

/* ======================== CTAS ========================= */

.tw-hero-ctas {
  display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.85rem;
}
.tw-btn-primary,
.tw-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2.2rem; border-radius: 999px;
  font-weight: 600; font-size: .96rem; cursor: pointer;
  border: none; text-decoration: none!important;
  transition: all .22s cubic-bezier(.25,.46,.45,.94);
}

.tw-btn-primary {
  background: linear-gradient(135deg, #ffcf55, #f6b445);
  color: #041021!important;
  box-shadow: 0 10px 24px rgba(255,197,66,.28);
}
.tw-btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffd86e, #ffc45d);
}

.tw-btn-secondary {
  background: rgba(7,21,43,.92);
  border: 1px solid rgba(162,199,255,.55);
  color: #e5efff!important;
}
.tw-btn-secondary:hover {
  transform: translateY(-1px); background: rgba(20,52,96,.96);
}

/* ======================= FEATURES ======================= */

.tw-hero-features {
  display: flex; flex-wrap: wrap;
  gap: .55rem 1.9rem; font-size: .9rem; color: #cbd8ea;
}
.tw-hero-features li { display: inline-flex; align-items: center; }
.tw-hero-features i {
  width: 18px; text-align: center; font-size: .95rem;
  opacity: .9; margin-right: .48rem; color: #cbd8ea;
}
.tw-hero-extra-feature {
  display: flex; align-items: center; font-size: .9rem;
  line-height: 1.3; color: #cbd8ea;
}
.tw-hero-extra-feature i {
  margin-right: .5rem; font-size: .92rem; color: #cbd8ea;
}

/* ======================================================= */
/*                       SIDECARD DESKTOP                  */
/* ======================================================= */

.tw-hero-sidecard {
  position: relative; flex: 0 0 320px; max-width: 340px;
  background: linear-gradient(to bottom, rgba(255,255,255,.06), transparent),
              rgba(18,33,55,.48);
  border-radius: 22px; box-shadow: 0 10px 22px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12);
  padding: 2.2rem 2rem 2rem; margin-top: 1.25rem;
}
.tw-hero-sidecard-title {
  font-size: 1.15rem; font-weight: 700; margin: 0 0 1.4rem; color: #fff;
}
.tw-hero-sidecard-list {
  font-size: .95rem; color: #dfe9f7; line-height: 1.62; margin-bottom: 1.8rem;
}
.tw-hero-sidecard-list li {
  position: relative; padding-left: .85rem; margin-bottom: .55rem;
}
.tw-hero-sidecard-list li::before {
  content: ""; position: absolute; left: 0; top: .63rem;
  width: 4px; height: 4px; border-radius: 50%; background: #87bde7; opacity: .7;
}

/* ===================== WHY SECTION ====================== */

#tw-why-premium {
  background: #f1f4f8; padding: 8rem 0 4.5rem; border-radius: 22px;
  margin-top: -5.7rem!important; position: relative; z-index: 10;
  border: 1px solid rgba(0,0,0,.04);
}
.tw-why-container {
  max-width: 1120px; margin: 0 auto; padding: 0 1.6rem; text-align: center;
}
.tw-why-microtitle {
  font-size: .80rem; font-weight: 650; letter-spacing: .25em;
  color: #4c6fa5; text-transform: uppercase; margin-bottom: .95rem!important;
}
.tw-why-title {
  font-size: 2.55rem; font-weight: 800; line-height: 1.14;
  letter-spacing: -.018em; color: #0b2847;
  margin: 0 auto .95rem; max-width: 780px;
}
.tw-why-subtitle {
  font-size: 1.14rem; color: #556981;
  line-height: 1.58!important; margin: 0 auto 2.4rem; max-width: 760px;
}

/* WHY – TOP GRID */

.tw-why-top-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.6rem; margin-bottom: 2.32rem!important;
}
.tw-why-top-card {
  background: #fff; border-radius: 20px;
  padding: 2.05rem 1.7rem; border: 1px solid rgba(0,0,0,.035);
  box-shadow: 0 12px 32px rgba(20,40,70,.065);
  transition: all .25s ease;
}
.tw-why-top-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 38px rgba(20,40,70,.09);
}
.tw-kpi-label {
  font-size: .82rem; letter-spacing: .12em; font-weight: 600; color: #73829b;
}
.tw-kpi-value {
  display: block; margin: .6rem 0 .4rem; font-size: 2.05rem;
  font-weight: 800; color: #0b2747;
}
.tw-kpi-desc { font-size: .92rem; color: #566a83; }

/* WHY – BENEFICIOS */

.tw-why-benefits-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.6rem; margin-top: .18rem!important;
}
.tw-why-benefit {
  background: #fff; border-radius: 18px;
  padding: 1.9rem 1.7rem; min-height: 190px; text-align: left;
  border: 1px solid rgba(0,0,0,.035);
  box-shadow: 0 12px 32px rgba(20,40,70,.06);
  transition: all .25s ease;
}
.tw-why-benefit:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(20,40,70,.10);
}

.tw-icon-round {
  width: 42px; height: 42px; border-radius: 999px; background: #e8f2ff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .95rem;
}
.tw-icon-round i { color: #316cb2; font-size: 1.05rem; }

.tw-why-benefit h3 {
  margin: 0 0 .5rem; font-size: 1.18rem; font-weight: 700; color: #0b2747;
}
.tw-why-benefit p {
  font-size: .95rem; color: #4d6178; line-height: 1.48;
}

/* Patch diseño */
#tw-why-premium .tw-why-benefit {
  text-align: center!important;
  padding: 1.55rem 1.4rem 1.7rem!important;
  min-height: 150px!important;
  border: 1px solid rgba(0,0,0,.03)!important;
  box-shadow: 0 10px 26px rgba(20,40,70,.05)!important;
}
#tw-why-premium .tw-why-benefit .tw-icon-round {
  width: 40px!important; height: 40px!important;
  margin: 0 auto .85rem!important;
}
#tw-why-premium .tw-why-benefit h3 {
  font-size: 1.07rem!important;
  margin-bottom: .45rem!important; line-height: 1.3!important;
}
#tw-why-premium .tw-why-benefit p {
  font-size: .9rem!important; line-height: 1.42!important;
}

/* ===================== CATEGORY HEADER ===================== */

#tw-category-header {
  width: 100%; background: #fff;
  padding: 3.7rem 0 6.8rem !important;
}
.tw-category-container {
  max-width: 1520px; margin: 0 auto;
  padding: 0 2.2rem; text-align: center;
}
.tw-cat-title {
  font-size: 2.35rem; font-weight: 800; color: #0b2847;
  margin-bottom: .65rem; letter-spacing: -.015em; line-height: 1.22!important;
}
.tw-cat-desc {
  font-size: 1rem; color: #4c607a;
  margin: 0 auto 1.9rem; line-height: 1.5!important;
}

.tw-cat-chips {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: .55rem .75rem;
}
.tw-chip {
  padding: .48rem 1.25rem; font-size: .88rem; font-weight: 500;
  border-radius: 999px; background: #fff; color: #0e2a4d;
  border: 1px solid #d8e2ee; cursor: pointer;
  transition: all .22s ease;
}
.tw-chip:hover {
  border-color: #316cb2; color: #316cb2;
  background: #f4f8ff; transform: translateY(-1px);
}
.tw-chip.active {
  background: linear-gradient(135deg, #ffd467, #ffbe39);
  color: #0d1a2b; border: none;
  box-shadow: 0 4px 14px rgba(255,196,70,.25);
}
.tw-chip.active:hover { transform: translateY(-2px); }

/* ========================= ANIMACIONES ========================= */

.tw-reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.tw-reveal.visible {
  opacity: 1; transform: translateY(0);
}
#tw-category-header.tw-reveal { transition-delay: .10s!important; }
#tw-category-header .tw-cat-title.tw-reveal { transition-delay: .25s!important; }
#tw-category-header .tw-cat-desc.tw-reveal { transition-delay: .40s!important; }
#tw-category-header .tw-cat-chips.tw-reveal { transition-delay: .55s!important; }

/* ========================== PILL BUTTONS ========================== */

.tw-pill-btn {
  display: inline-flex; align-items: center;
  padding: 1px 17px; font-size: .84rem; font-weight: 600;
  border-radius: 20px; white-space: nowrap; letter-spacing: .15px;
  pointer-events: none; backdrop-filter: blur(8px); box-shadow: none;
}

.tw-hero-side-actions { display: flex; gap: 12px; margin-top: 24px; }

/* Pill 1 */
.tw-pill-btn:nth-child(1) {
  background: linear-gradient(to bottom right,
              rgba(255,208,120,.45),
              rgba(255,184,80,.28));
  border: 1px solid rgba(255,210,130,.75);
  color: #fff2d0;
}
/* Pill 2 */
.tw-pill-btn:nth-child(2) {
  background: linear-gradient(to bottom right,
              rgba(150,190,255,.40),
              rgba(110,160,255,.22));
  border: 1px solid rgba(150,190,255,.75);
  color: #eaf1ff;
}

/* ======================= MOBILE HERO EXTRAS ======================= */

.tw-hero-mobile-separator {
  height: 1px; background: rgba(255,255,255,.15);
  margin: .9rem 0 1rem; border-radius: 1px;
}
.tw-hero-mobile-pills-container {
  display: flex; gap: 10px; margin-top: 5px;
}
.tw-pill-gold {
  background: #ffdb92; color: #2b1b00;
  border: 1px solid rgba(255,200,120,.65);
}
.tw-pill-blue {
  background: #bcd6ff; color: #061b38;
  border: 1px solid rgba(170,200,255,.55);
}

/* ==================== VISIBILIDAD DESKTOP/MOBILE ==================== */

.desktop-only { display: block; }
.mobile-only { display: none; }
@media (max-width:768px) {
  .desktop-only { display: none!important; }
  .mobile-only { display: block!important; }
}

/* ========================= MOBILE STYLES ========================= */

@media (max-width:768px) {

  h1, h2, h3, h4 { letter-spacing: -.012em!important; }
  p, li, span { letter-spacing: -.004em!important; }

  #tw-hero-premium {
    margin: 0!important;
    border-radius: 0 0 16px 16px!important;
    padding: 2rem 1.45rem 1.35rem!important;
    box-shadow: 0 4px 12px rgba(0,0,0,.07)!important;
  }

  .tw-hero-premium-inner {
    flex-direction: column; gap: 1.35rem!important;
  }

  .tw-hero-title {
    font-size: clamp(2.3rem, 6.5vw, 2.55rem)!important;
    margin-bottom: 1rem!important;
  }
  .tw-hero-subtitle {
    font-size: .97rem!important; line-height: 1.45!important;
    margin-bottom: 1.45rem!important;
  }

  .tw-hero-features li:first-child { display: none!important; }

  .tw-btn-primary {
    padding: .85rem 1.7rem!important;
    font-size: .95rem!important;
    border-radius: 22px!important;
  }
  .tw-btn-secondary {
    padding: .8rem 1.6rem!important;
    font-size: .92rem!important;
    border-radius: 20px!important;
  }

  .tw-hero-mobile-separator {
    margin: 1.1rem 0 1rem!important;
  }

  .tw-hero-mobile-pills-container {
    justify-content: center!important;
    margin-top: 22px!important;
    margin-bottom: 3px;
  }
  .tw-hero-mobile-pills-container .tw-pill-btn {
    font-size: .82rem!important; padding: 2px 23px;
  }

  #tw-why-premium {
    margin-top: -1.15rem!important;
    padding: 2.65rem 0 2.7rem!important;
  }
  .tw-why-title {
    font-size: clamp(1.55rem, 5vw, 1.72rem)!important;
    margin-bottom: .5rem!important;
  }
  .tw-why-subtitle {
    margin-bottom: 1.55rem!important; font-size: 1rem!important;
  }

  .tw-why-top-grid,
  .tw-why-benefits-grid {
    grid-template-columns: 1fr!important;
    gap: 1.35rem!important;
  }

  .tw-why-top-card,
  .tw-why-benefit {
    padding: 1.1rem 1.15rem!important;
    border-radius: 12px!important;
    box-shadow:
      0 2px 8px rgba(10,20,40,.045),
      0 1px 3px rgba(10,20,40,.025)!important;
  }

  .tw-icon-round {
    width: 30px!important; height: 30px!important;
    margin-bottom: .5rem!important;
  }

  .tw-why-benefit:nth-child(4),
  .tw-why-benefit:nth-child(6) {
    display: none!important;
  }

  .tw-cat-title {
    font-size: clamp(1.42rem, 5vw, 1.6rem)!important;
    margin-bottom: .4rem!important;
  }
  .tw-cat-desc {
    margin-bottom: 1.15rem!important; font-size: .9rem!important;
  }

  .tw-cat-chips {
    margin-top: .4rem!important;
    gap: .35rem .5rem!important;
  }

  .tw-chip {
    padding: .48rem 1rem!important; min-height: 40px!important;
    border-radius: 12px!important; font-size: .84rem!important;
    background: #fff!important; border: 1px solid rgba(0,0,0,.08)!important;
    color: #0a2540!important;
  }

  .tw-chip.active {
    background: #fef4d8!important;
    border-color: #ffd36a!important;
    color: #5c4100!important;
    font-weight: 600!important;
  }

  .tw-reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity .75s ease, transform .75s cubic-bezier(.25,.46,.45,.94)!important;
  }
  .tw-reveal.visible {
    opacity: 1; transform: translateY(0);
  }
}

/* ======================== DESKTOP SIDEBAR ======================== */

@media (min-width:768px) {

  .tw-hero-mobile-pills-container,
  .tw-hero-mobile-separator {
    display: none;
  }

  .tw-hero-sidecard {
    margin-top: 12px; border-radius: 24px; padding: 2.4rem 2.2rem;
    background: rgba(18,33,55,.55); backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.20);
    box-shadow:
      0 10px 25px rgba(0,0,0,.16),
      inset 0 0 32px rgba(255,255,255,.04);
  }
  .tw-hero-sidecard-title {
    font-size: 1.18rem; font-weight: 750;
    margin-bottom: 1.3rem; letter-spacing: -.015em;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
  }
  .tw-hero-sidecard-list li {
    padding-left: 1.2rem; margin-bottom: .85rem;
  }
  .tw-hero-sidecard-list li::before {
    width: 6px; height: 6px; background: #9ac7ff; opacity: .9; top: .55rem;
  }

  .tw-hero-side-separator {
    height: 1px;
    background: linear-gradient(to right,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.16) 50%,
      rgba(255,255,255,0) 100%);
    opacity: .7; margin: 1.4rem 0 1rem;
  }

  .tw-hero-side-actions { margin-top: 22px; gap: 12px; }

  .tw-pill-btn {
    font-size: .83rem; border-radius: 26px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
  }

  .tw-pill-btn:nth-child(1) {
    background: rgba(255,219,110,.22);
    color: #ffe6b3;
    border-color: rgba(255,225,150,.35);
  }

  .tw-pill-btn:nth-child(2) {
    background: rgba(140,180,255,.18);
    color: #dfeaff;
    border-color: rgba(160,195,255,.32);
  }
}
