:root {
  --mate-blue: #1f4fd8;
  --mate-violet: #6a1fd8;
  --mate-dark: #0b1020;
  --mate-light: #f4f7fb;
  --mate-gray: #6b7280;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--mate-dark);
  background: #fff;
}

/* NAVBAR */
.navbar {
  background: rgba(11, 16, 32, 0.9);
  backdrop-filter: blur(12px);
}
.navbar-brand {
  font-weight: 900;
  letter-spacing: 0.5px;
}

/* HERO */
.hero {
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(106,31,216,0.35), transparent),
              radial-gradient(1200px 600px at 80% 10%, rgba(31,79,216,0.35), transparent),
              linear-gradient(135deg, var(--mate-blue), var(--mate-violet));
  color: white;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.05;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
}

.btn-main {
  background: white;
  color: var(--mate-blue);
  border-radius: 999px;
  padding: 14px 34px;
  font-weight: 800;
  border: none;
}

.btn-outline-main {
  border: 2px solid white;
  color: white;
  border-radius: 999px;
  padding: 14px 34px;
  font-weight: 700;
}

/* SECTIONS */
.section {
  padding: 100px 0;
}

.bg-soft {
  background: var(--mate-light);
}

/* CARDS */
.card-mate {
  border-radius: 20px;
  border: none;
  padding: 34px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  background: white;
  transition: 0.25s;
}
.card-mate:hover {
  transform: translateY(-8px);
}

/* METRICS */
.metric {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--mate-blue);
}

/* RUBROS */
.rubro-box {
  background: linear-gradient(135deg, var(--mate-blue), var(--mate-violet));
  color: white;
  border-radius: 18px;
  padding: 28px;
  height: 100%;
}

/* PRICING */
.price-card {
  background: white;
  border-radius: 22px;
  padding: 44px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.12);
  border: 3px solid transparent;
}

.price-card.featured {
  border-color: var(--mate-blue);
  transform: scale(1.06);
}

.price {
  font-size: 48px;
  font-weight: 900;
  color: var(--mate-blue);
}

/* BADGES */
.badge-ai {
  background: linear-gradient(135deg, var(--mate-blue), var(--mate-violet));
  color: white;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  margin: 3px;
}

/* FOOTER */
footer {
  background: var(--mate-dark);
  color: white;
  padding: 70px 0;
}

.btn-whatsapp {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 3rem;
    background-color: var(--whatsapp);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    text-align: center;
    color: white;
    text-decoration: none !important;
}

/* LANDING 2026 */
.section-intro {
  max-width: 760px;
  margin: 0 auto 52px;
}

.section-intro > span,
.story-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--mate-blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-intro h2,
.story-copy h2 {
  margin: 0;
  color: var(--mate-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-intro p {
  margin: 18px auto 0;
  color: var(--mate-gray);
  font-size: 1rem;
}

/* HERO CON IMAGEN */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: white;
  background:
    url("/resources/imagenes-index/hero-comercio.jpg") center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(11,16,32,0.8) 0%, rgba(11,16,32,0.47) 43%, rgba(11,16,32,0.7) 100%),
    linear-gradient(135deg, rgba(31,79,216,0.32), rgba(106,31,216,0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 870px;
  padding-top: 84px;
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 14px;
  color: white;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 26px 0 22px;
  font-size: clamp(3.6rem, 7.2vw, 6.4rem);
  letter-spacing: -0.065em;
  text-shadow: 0 8px 28px rgba(0,0,0,0.28);
}

.hero p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions .btn-main,
.hero-actions .btn-outline-main {
  margin: 0;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.hero-actions a:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.hero-actions .btn-outline-main:hover {
  color: var(--mate-dark);
  background: white;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: rgba(255,255,255,0.86);
  background: rgba(11,16,32,0.48);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9px;
  backdrop-filter: blur(9px);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-badges i {
  color: #9fc1ff;
}

/* MODULOS */
.module-card {
  height: 100%;
  min-height: 245px;
  padding: 30px;
  background: white;
  border: 1px solid rgba(11,16,32,0.09);
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(11,16,32,0.07);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.module-card:hover {
  border-color: rgba(31,79,216,0.3);
  box-shadow: 0 22px 55px rgba(31,79,216,0.12);
  transform: translateY(-5px);
}

.module-card > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 38px;
  color: var(--mate-blue);
  background: #edf2ff;
  border-radius: 12px;
  font-size: 1.15rem;
}

.module-card h3 {
  margin: 0 0 10px;
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.25;
}

.module-card p {
  margin: 0;
  color: var(--mate-gray);
  font-size: 0.83rem;
}

/* HISTORIAS DE VENTA */
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 90px;
}

.story-layout-reverse {
  grid-template-columns: minmax(420px, 1.05fr) minmax(0, 0.95fr);
}

.story-copy h2 {
  margin-bottom: 22px;
}

.story-lead {
  margin: 0;
  color: var(--mate-gray);
  font-size: 1.05rem;
  line-height: 1.75;
}

.story-steps {
  display: grid;
  gap: 15px;
  margin: 30px 0;
}

.story-steps > div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.story-steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--mate-blue);
  background: #edf2ff;
  border-radius: 10px;
  font-size: 0.73rem;
}

.story-steps strong,
.story-steps span {
  display: block;
}

.story-steps strong {
  color: var(--mate-dark);
  font-size: 0.9rem;
}

.story-steps span {
  color: var(--mate-gray);
  font-size: 0.78rem;
}

.catalog-story {
  background: #f3f6fc;
}

.catalog-visual {
  position: relative;
  padding: 38px 38px 78px;
  background:
    radial-gradient(circle at 15% 10%, rgba(106,31,216,0.35), transparent 35%),
    linear-gradient(145deg, var(--mate-blue), var(--mate-dark));
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(31,79,216,0.22);
}

.catalog-window {
  position: relative;
  min-height: 390px;
  padding: 26px;
  overflow: hidden;
  color: var(--mate-dark);
  background: white;
  border: 7px solid #10182c;
  border-radius: 20px;
  box-shadow: 0 20px 55px rgba(0,0,0,0.25);
}

.catalog-window-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e7eaf0;
}

.catalog-window-top > span {
  width: 8px;
  height: 8px;
  background: #d9deea;
  border-radius: 50%;
}

.catalog-window-top > span:first-child {
  background: #6a1fd8;
}

.catalog-window-top small {
  margin-left: auto;
  color: var(--mate-gray);
  font-size: 0.7rem;
}

.scanner-line {
  position: absolute;
  top: 105px;
  right: 22px;
  left: 22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef3f67, transparent);
  box-shadow: 0 0 14px rgba(239,63,103,0.7);
}

.catalog-barcode {
  display: block;
  margin: 38px auto 14px;
  color: #18233e;
  font-size: 5.4rem;
  text-align: center;
}

.catalog-status {
  display: block;
  color: #168a54;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.catalog-product {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  padding: 13px;
  background: #f4f7fc;
  border: 1px solid #e1e6ef;
  border-radius: 11px;
}

.catalog-product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--mate-blue);
  background: #e4ecff;
  border-radius: 9px;
}

.catalog-product small,
.catalog-product strong {
  display: block;
}

.catalog-product small {
  color: var(--mate-gray);
  font-size: 0.66rem;
}

.catalog-product strong {
  font-size: 0.8rem;
}

.catalog-window > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 0;
  padding: 14px;
  color: var(--mate-gray);
  background: white;
  border: 1px solid #dce1eb;
  border-radius: 10px;
  font-size: 0.75rem;
}

.catalog-window > label strong {
  color: var(--mate-dark);
  font-size: 1rem;
}

.catalog-time {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
}

.catalog-time strong {
  color: #b7caff;
  font-size: 1.65rem;
  font-weight: 900;
}

.catalog-time span {
  max-width: 200px;
  color: rgba(255,255,255,0.65);
  font-size: 0.7rem;
  line-height: 1.35;
}

.offline-story {
  color: white;
  background: var(--mate-dark);
}

.offline-story .story-kicker {
  color: #a8c1ff;
}

.offline-story .story-copy h2 {
  color: white;
}

.offline-story .story-lead {
  color: rgba(255,255,255,0.62);
}

.offline-benefits {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.offline-benefits li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
}

.offline-benefits > li > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  color: var(--mate-dark);
  background: #a8c1ff;
  border-radius: 50%;
  font-size: 0.7rem;
}

.offline-benefits strong,
.offline-benefits span {
  display: block;
}

.offline-benefits strong {
  color: white;
  font-size: 0.9rem;
}

.offline-benefits span {
  color: rgba(255,255,255,0.57);
  font-size: 0.78rem;
}

.offline-visual {
  position: relative;
  min-height: 470px;
  padding: 40px 90px 40px 20px;
  background:
    radial-gradient(circle at 20% 100%, rgba(31,79,216,0.5), transparent 46%),
    #121d37;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
}

.offline-screen {
  min-height: 385px;
  padding: 28px;
  color: var(--mate-dark);
  background: #f6f8fc;
  border: 8px solid #050914;
  border-radius: 20px;
  box-shadow: 0 26px 70px rgba(0,0,0,0.35);
}

.offline-state {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 17px;
  border-bottom: 1px solid #dde2eb;
  font-size: 0.7rem;
}

.offline-state span {
  color: #b1425f;
}

.offline-state b {
  color: #14834f;
}

.offline-sale {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 42px 0;
}

.offline-sale small,
.offline-sale span {
  color: var(--mate-gray);
  font-size: 0.7rem;
}

.offline-sale strong {
  margin: 4px 0;
  color: var(--mate-blue);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.print-job {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  color: white;
  background: var(--mate-blue);
  border-radius: 11px;
}

.print-job > i {
  font-size: 1.35rem;
  text-align: center;
}

.print-job strong,
.print-job span {
  display: block;
}

.print-job strong {
  font-size: 0.79rem;
}

.print-job span {
  color: rgba(255,255,255,0.72);
  font-size: 0.68rem;
}

.thermal-ticket {
  position: absolute;
  top: 80px;
  right: 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 105px;
  min-height: 250px;
  padding: 24px 12px;
  color: var(--mate-dark);
  background: white;
  border-radius: 4px 4px 12px 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
  transform: rotate(3deg);
}

.thermal-ticket::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 8px;
  background: linear-gradient(135deg, transparent 5px, white 0) 0 0/10px 10px repeat-x;
  content: "";
}

.thermal-ticket i {
  margin: 15px 0 35px;
  font-size: 2.5rem;
}

.thermal-ticket span {
  font-size: 0.72rem;
  font-weight: 900;
}

.thermal-ticket small {
  margin-top: 5px;
  color: var(--mate-gray);
  font-size: 0.56rem;
  text-align: center;
}

/* RUBROS CON IMAGENES */
.rubros-section {
  background: white;
}

.rubro-box {
  height: 100%;
  padding: 0;
  overflow: hidden;
  color: var(--mate-dark);
  background: white;
  border: 1px solid rgba(11,16,32,0.1);
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(11,16,32,0.08);
  transition: transform 0.22s, box-shadow 0.22s;
}

.rubro-box:hover {
  box-shadow: 0 24px 60px rgba(11,16,32,0.14);
  transform: translateY(-5px);
}

.rubro-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-image: url("/resources/imagenes-index/rubros-sprite.jpg");
  background-repeat: no-repeat;
  background-size: 400% 300%;
}

.rubro-image-1 { background-position: 0% 0%; }
.rubro-image-2 { background-position: 33.333% 0%; }
.rubro-image-3 { background-position: 66.666% 0%; }
.rubro-image-4 { background-position: 100% 0%; }
.rubro-image-5 { background-position: 0% 50%; }
.rubro-image-6 { background-position: 33.333% 50%; }
.rubro-image-7 { background-position: 66.666% 50%; }
.rubro-image-8 { background-position: 100% 50%; }
.rubro-image-9 { background-position: 0% 100%; }
.rubro-image-10 { background-position: 33.333% 100%; }
.rubro-image-11 { background-position: 66.666% 100%; }
.rubro-image-12 { background-position: 100% 100%; }
.rubro-image-verduleria {
  background-image: url("/resources/imagenes-index/verduleria-card.png");
  background-position: center;
  background-size: cover;
}

.rubro-content {
  position: relative;
  padding: 25px 26px 28px;
}

.rubro-content h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 900;
}

.rubro-content ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--mate-gray);
  font-size: 0.78rem;
  list-style: none;
}

.rubro-content li::before {
  margin-right: 8px;
  color: var(--mate-blue);
  content: "✓";
  font-weight: 900;
}

.rubro-featured {
  border-color: rgba(31,79,216,0.48);
  box-shadow: 0 18px 50px rgba(31,79,216,0.13);
}

.rubro-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 9px;
  color: white;
  background: linear-gradient(135deg, var(--mate-blue), var(--mate-violet));
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* PLANES */
.payment-toggle {
    display: flex;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 6px;
    background: #e5ebf8;
    border: 1px solid #d5def2;
    border-radius: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 13px 20px;
    color: #414e68;
    background: transparent;
    border: 0;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.payment-option:hover {
    background: rgba(255,255,255,0.65);
}

.payment-option.active {
    color: white;
    background: var(--mate-blue);
    box-shadow: 0 5px 15px rgba(31,79,216,0.2);
}

.payment-option-unico {
    color: #92320e;
    background: linear-gradient(135deg, #fff5df, #ffe2c7);
    box-shadow: inset 0 0 0 1px #edbb82;
}

.payment-option-unico:hover {
    background: #ffddb5;
}

.payment-option-unico.active {
    color: white;
    background: linear-gradient(135deg, #b83e0d, #8f290b);
    box-shadow: 0 5px 18px rgba(184,62,13,0.25);
}

.payment-option:focus-visible {
    outline: 3px solid var(--mate-violet);
    outline-offset: 3px;
}

.payment-benefit {
    padding: 3px 7px;
    color: #166534;
    background: #dcfce7;
    border-radius: 999px;
    font-size: 0.65rem;
    white-space: nowrap;
}

.payment-benefit-unico {
    color: #87300c;
    background: #fff7e9;
}

.payment-fire {
    display: inline-block;
    font-size: 1.3rem;
    line-height: 1;
    transform-origin: center bottom;
    animation: payment-flame 0.8s ease-in-out infinite alternate;
}

@keyframes payment-flame {
    0% { transform: rotate(-8deg) scale(0.95); }
    50% { transform: rotate(5deg) scale(1.12); }
    100% { transform: rotate(-3deg) scale(1.02, 1.18); }
}

@media (prefers-reduced-motion: reduce) {
    .payment-fire {
        animation: none;
    }
}

.payment-description {
    max-width: 760px;
    min-height: 72px;
    margin: 22px auto 36px;
    color: #4f5968;
    font-size: 0.92rem;
    line-height: 1.65;
}

.payment-description p {
    margin: 0;
}

.payment-description-unico {
    max-width: 860px;
    padding: 26px 32px;
    color: #713c24;
    background: radial-gradient(ellipse at top, #fff9e9, transparent),
                linear-gradient(135deg, #fff5e6, #ffeadb);
    border: 1px solid #f1c69b;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(157,73,23,0.08);
}

.payment-description-title {
    margin: 0 0 12px;
    color: #8f290b;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 900;
    line-height: 1.2;
}

.payment-description-note {
    margin-top: 14px;
    color: #80523b;
    font-size: 0.78rem;
}

.payment-description-note:not([hidden]) {
    display: block;
}

.price-card {
    padding: 36px 24px;
}

.price-card h3 {
  margin: 10px 0 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.price-card .price {
  margin: 18px 0 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.price-period {
  display: block;
  margin-top: -8px;
  color: var(--mate-gray);
}

.price-detail {
    display: block;
    margin-top: 10px;
    color: var(--mate-blue);
    font-size: 0.72rem;
    font-weight: 700;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: #4f5968;
  font-size: 0.82rem;
}

.plan-label {
  align-self: center;
  padding: 6px 10px;
  color: var(--mate-blue);
  background: #edf2ff;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price-card.premium {
  border-color: rgba(106,31,216,0.4);
}

.price-card.premium .plan-label {
  color: var(--mate-violet);
  background: #f2eaff;
}

.plan-rubros {
  margin: 18px 0 0;
  padding: 11px;
  color: #554274;
  background: #f7f1ff;
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 700;
}

@media (max-width: 991px) {
  .price-card.featured {
    transform: none;
  }

  .story-layout,
  .story-layout-reverse {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .story-layout-reverse .offline-visual {
    order: 2;
  }

  .story-layout-reverse .story-copy {
    order: 1;
  }
}

@media (max-width: 767px) {
  .payment-toggle {
    width: 100%;
    gap: 3px;
  }

  .payment-option {
    flex: 1 1 0;
    gap: 5px;
    padding: 12px 6px;
    font-size: 0.8rem;
  }

  .payment-description {
    min-height: 0;
  }

  .payment-description-unico {
    padding: 22px 18px;
  }

  .hero {
    min-height: 760px;
    background-position: 45% center;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.7rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-badges {
    align-items: stretch;
    flex-direction: column;
  }

  .story-layout,
  .story-layout-reverse {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-visual {
    padding: 22px 22px 76px;
  }

  .offline-visual {
    min-height: 430px;
    padding: 24px 64px 24px 12px;
  }

  .offline-screen {
    padding: 18px;
  }

  .thermal-ticket {
    right: 8px;
    width: 84px;
  }
}

@media (max-width: 575px) {
  .module-card {
    min-height: 220px;
  }

  .catalog-window {
    padding: 17px;
  }

  .catalog-barcode {
    font-size: 4.2rem;
  }

  .offline-state {
    align-items: flex-start;
    flex-direction: column;
  }

  .offline-sale strong {
    font-size: 2rem;
  }
}
