﻿/* ==========================================================================
   CONECTA — styles.css
   Design System: Claro RED ONLY
   Typography: Inter + Plus Jakarta Sans
   ========================================================================== */

/* ---------- 1. CUSTOM PROPERTIES ---------- */
:root {
  --red: #e30613;
  --red-dark: #b80510;
  --red-darker: #8a040d;
  --red-light: #fde8e9;
  --red-glow: rgba(227, 6, 19, 0.18);

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;

  --bg: #ffffff;
  --bg-alt: var(--gray-50);
  --bg-dark: #1a0a0a;
  --text: var(--gray-900);
  --text-sub: var(--gray-700);
  --text-mute: var(--gray-500);
  --border: var(--gray-200);
  --whatsapp: #25d366;
  --wa-hover: #1daf54;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.12);
  --shadow-red: 0 6px 20px rgba(227, 6, 19, 0.25);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;
  --container: 1160px;
  --section-py: clamp(2.5rem, 8vw, 4rem);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.35s;
}

/* ---------- 2. RESET ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul,
ol {
  list-style: none;
}

/* ---------- 3. LAYOUT ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section {
  padding: var(--section-py) 0;
}
.section--alt {
  background: var(--bg-alt);
}
.section--dark {
  background: #4a0b0b;
  color: #fff;
}
.section__head {
  text-align: center;
  margin-bottom: 3rem;
}
.section__title {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section__desc {
  font-size: 1.05rem;
  color: var(--text-mute);
  max-width: 540px;
  margin: 0 auto;
}

/* Chip / Badge */
.chip {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: var(--red-light);
  color: var(--red);
  margin-bottom: 1rem;
}
.chip--light {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(300px, 1fr));
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--r-full);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  line-height: 1.2;
  white-space: nowrap;
}
.btn svg {
  flex-shrink: 0;
}
.btn--red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}
.btn--red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(227, 6, 19, 0.35);
}
.btn--white {
  background: #fff;
  color: var(--red);
  border-color: #fff;
}
.btn--white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border-color: var(--whatsapp);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.btn--whatsapp:hover {
  background: var(--wa-hover);
  border-color: var(--wa-hover);
  transform: translateY(-2px);
}
.btn--sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.8rem;
}
.btn--lg {
  padding: 0.9rem 2.25rem;
  font-size: 0.95rem;
}
.btn--full {
  width: 100%;
}

/* ---------- 5. HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--red);
  box-shadow: 0 2px 16px rgba(227, 6, 19, 0.25);
  padding: 0.65rem 0;
}
.header.scrolled {
  box-shadow: 0 4px 20px rgba(227, 6, 19, 0.35);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header__logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}
.header__nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  margin-right: 1.25rem;
}
.header__nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color var(--duration) var(--ease);
  position: relative;
}
.header__nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: width var(--duration) var(--ease);
}
.header__nav a:hover {
  color: #fff;
}
.header__nav a:hover::after {
  width: 100%;
}
.header__actions {
  display: flex;
  gap: 0.5rem;
}
.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

/* ---------- 6. HERO CAROUSEL ---------- */
.hero {
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}
.hero__carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.carousel__track {
  display: flex;
  transition: transform 0.5s var(--ease);
}
.carousel__slide {
  min-width: 100%;
  position: relative;
}
.carousel__slide img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 500px;
}
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(227, 6, 19, 0.8);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 5;
  transition: all var(--duration) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel__btn:hover {
  background: var(--red);
  transform: translateY(-50%) scale(1.1);
}
.carousel__btn--prev {
  left: 1rem;
}
.carousel__btn--next {
  right: 1rem;
}
.carousel__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}
.carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.carousel__dot.active {
  background: #fff;
}

/* ---------- 7. MARQUEE ---------- */
.marquee {
  background: var(--red);
  color: #fff;
  padding: 0.75rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-block;
  animation: marqueeScroll 20s linear infinite;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ---------- 8. CARDS ---------- */

/* -- Support card bar -- */
.support-card-bar {
  background: var(--gray-900);
  padding: 0.5rem 0;
  text-align: center;
}
.support-card {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-full);
  padding: 0.4rem 1.1rem;
  color: #fff;
  font-size: 1.2rem;
}
.support-card svg {
  flex-shrink: 0;
  color: var(--red);
}
.support-card a {
  color: #fbbf24;
  font-weight: 700;
  transition: color var(--duration) var(--ease);
}
.support-card a:hover {
  color: #fff;
  text-decoration: underline;
}

/* -- Plans grid (replaces carousel) -- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
}
.plans-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.plans-subgroup {
  margin-bottom: 3rem;
}
.plans-subgroup__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}
.plans-subgroup__title span {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
}
.plans-subgroup__desc {
  font-size: 0.9rem;
  color: var(--text-mute);
  margin-bottom: 1.5rem;
}
.plan--home .plan__head {
  border-bottom: 2px solid var(--red);
}
.plan--home.plan--featured .plan__head {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}
.plan__decimals {
  font-size: 0.4em;
  vertical-align: super;
  font-weight: 800;
}

/* -- Conditions section -- */
.section--conditions {
  background: var(--bg-alt);
  border-top: 3px solid var(--red);
}
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.conditions__item {
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--red);
}
.conditions__item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.35rem;
}
.conditions__item p {
  font-size: 0.83rem;
  color: var(--text-mute);
  line-height: 1.6;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.35rem;
  transition: all var(--duration) var(--ease);
}
.card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  background: var(--red-light);
  color: var(--red);
  transition: transform var(--duration) var(--ease);
}
.card:hover .card__icon {
  transform: scale(1.1) rotate(-4deg);
}
.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.4rem;
}
.card p {
  font-size: 0.85rem;
  color: var(--text-mute);
  line-height: 1.6;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  transition: gap var(--duration) var(--ease);
}
.card__link:hover {
  gap: 0.6rem;
}

/* ---------- 9. CTA BAND ---------- */
.cta-band {
  background: var(--red);
  padding: 2.5rem 0;
  color: #fff;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band__title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
}
.cta-band__sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ---------- 10. PLANS CAROUSEL ---------- */
.plans-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 0 1.5rem;
}
.plans-carousel__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.plans-carousel__track::-webkit-scrollbar {
  display: none;
}

.plan {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--duration) var(--ease);
  position: relative;
  min-width: 280px;
  flex: 1;
  scroll-snap-align: start;
}
.plan:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--red);
}
.plan__head {
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
}
.plan__tag {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--gray-100);
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}
.plan__name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}
.plan__price {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.plan__currency {
  font-size: 1.25rem;
  vertical-align: super;
  font-weight: 700;
}
.plan__period {
  font-size: 0.85rem;
  color: var(--text-mute);
  font-weight: 500;
  margin-left: 0.25rem;
}
.plan__tax {
  font-size: 0.75rem;
  color: var(--text-mute);
  margin-top: 0.25rem;
}
.plan__features {
  padding: 1.5rem 2rem;
  flex: 1;
}
.plan__features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  font-size: 0.92rem;
  color: var(--text-sub);
  border-bottom: 1px solid var(--gray-100);
}
.plan__features li:last-child {
  border-bottom: none;
}
.plan .btn {
  margin: 0 0 2rem;
  text-align: center;
}

/* Featured plan */
.plan--featured {
  background: linear-gradient(160deg, var(--red) 0%, var(--red-dark) 100%);
  border-color: var(--red);
  color: #fff;
  transform: scale(1.04);
  z-index: 2;
  box-shadow: var(--shadow-red);
}
.plan--featured:hover {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 20px 48px rgba(227, 6, 19, 0.3);
}
/* Preservar scale cuando la animación reveal termina */
.plan--featured.reveal.is-visible {
  transform: scale(1.04);
}
.plan--featured.reveal.is-visible:hover {
  transform: scale(1.06) translateY(-4px);
}
.plan--featured .plan__head {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}
.plan--featured .plan__tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.plan--featured .plan__name,
.plan--featured .plan__price {
  color: #fff;
}
.plan--featured .plan__period,
.plan--featured .plan__tax {
  color: rgba(255, 255, 255, 0.7);
}
.plan--featured .plan__features li {
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.plan__ribbon {
  position: absolute;
  top: 16px;
  right: -35px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 3rem;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ---------- 11. ABOUT ---------- */
.about {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about__item {
  margin-bottom: 2rem;
}
.about__item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.about__item p {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.7;
}
.about__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__visual img {
  max-width: 260px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1));
  transition: transform var(--duration) var(--ease);
}
.about__visual:hover img {
  transform: scale(1.05) rotate(-2deg);
}

/* ---------- 12. FORM ---------- */
.form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.form__group--full {
  grid-column: 1/-1;
}
.form__group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 0.4rem;
}
.form__group input,
.form__group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  transition: all var(--duration) var(--ease);
  outline: none;
}
.form__group input:focus,
.form__group select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.form__group input::placeholder {
  color: var(--gray-400);
}
.form__note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-mute);
  margin-top: 1rem;
}

/* ---------- 13. FAQ ---------- */
.faq__category {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--red);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red-light);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.faq {
  max-width: 720px;
  margin: 0 auto;
}
.faq__item {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}
.faq__item:hover {
  border-color: var(--red-light);
}
.faq__item[open] {
  border-color: var(--red);
  box-shadow: 0 2px 12px var(--red-glow);
}
.faq__item summary {
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  transition: color var(--duration) var(--ease);
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-light);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all var(--duration) var(--ease);
}
.faq__item[open] summary {
  color: var(--red);
  border-bottom: 1px solid var(--gray-100);
}
.faq__item[open] summary::after {
  content: "\2212";
  background: var(--red);
  color: #fff;
  transform: rotate(180deg);
}
.faq__answer {
  padding: 1rem 1.5rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text-mute);
  line-height: 1.7;
}

/* ---------- 14. FOOTER ---------- */
.footer {
  background: var(--gray-900);
  color: #fff;
  padding: 3rem 0 1.5rem;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer__brand img {
  height: 32px;
  margin: 0 auto 0.75rem;
}
.footer__brand p {
  font-size: 0.85rem;
  color: var(--gray-400);
  max-width: 340px;
}
.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--gray-400);
  transition: color var(--duration) var(--ease);
}
.footer__links a:hover {
  color: #fff;
}
.footer__contact {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__contact p {
  font-size: 0.85rem;
  color: var(--gray-400);
}
.footer__contact a {
  color: var(--whatsapp);
  font-weight: 600;
  transition: color var(--duration) var(--ease);
}
.footer__contact a:hover {
  color: #fff;
}
.footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  width: 100%;
}
.footer__copy p {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ---------- 15. REFERIDOS ---------- */
.referral {
  background: linear-gradient(
    135deg,
    #6a0207 0%,
    #b80510 40%,
    #e30613 65%,
    #9e0410 100%
  );
  padding: clamp(2.5rem, 8vw, 4rem) 0;
  position: relative;
  overflow: hidden;
}
.referral::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 65% 50%,
    rgba(255, 200, 50, 0.07) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.referral__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 2.5rem;
  justify-content: center;
}
.referral__headline {
  flex: 1 1 200px;
}
.referral__title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  text-transform: uppercase;
}
.referral__offers {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.referral__card {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--r-md);
  padding: 1.25rem 1.6rem;
  min-width: 145px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.referral__label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.referral__pct {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.referral__pct span {
  font-size: 55%;
}
.referral__desc {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  margin-top: 0.4rem;
}
.referral__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.referral__fine {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 16. FABs ---------- */
.fab {
  position: fixed;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
}
.fab--whatsapp {
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  animation: fabPulse 3s ease-in-out infinite;
}
.fab--whatsapp:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}
.fab--phone {
  bottom: 5.5rem;
  right: 1.5rem;
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 20px rgba(227, 6, 19, 0.35);
}
.fab--phone:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(227, 6, 19, 0.45);
}
@keyframes fabPulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(37, 211, 102, 0.45),
      0 0 0 12px rgba(37, 211, 102, 0.15);
  }
}

/* ---------- 16. MODAL ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal.is-open {
  display: flex;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.2s var(--ease);
}
.modal__box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--r-xl);
  padding: 2.5rem;
  max-width: 460px;
  width: 92%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border-top: 4px solid var(--red);
  animation: modalSlideUp 0.35s var(--ease);
}
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
}
.modal__close:hover {
  background: var(--red-light);
  color: var(--red);
}
.modal__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.modal__title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}
.modal__text {
  font-size: 0.92rem;
  color: var(--text-mute);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- 17. REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.reveal:nth-child(3) {
  transition-delay: 0.16s;
}
.reveal:nth-child(4) {
  transition-delay: 0.24s;
}
.reveal:nth-child(5) {
  transition-delay: 0.32s;
}
.reveal:nth-child(6) {
  transition-delay: 0.4s;
}

/* ---------- 18. RESPONSIVE ---------- */
@media (max-width: 900px) {
  /* ---- Plans: horizontal swipe carousel ---- */
  .plans-grid,
  .plans-grid--4 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1rem;
    /* extiende a los bordes del viewport */
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 0.5rem 1.25rem 1.75rem;
    max-width: none;
    align-items: stretch;
  }
  .plans-grid::-webkit-scrollbar,
  .plans-grid--4::-webkit-scrollbar {
    display: none;
  }
  .plans-grid > .plan,
  .plans-grid--4 > .plan {
    min-width: 78vw;
    max-width: 300px;
    flex-shrink: 0;
    scroll-snap-align: start;
    width: auto;
  }
  /* ---- Featured sin escala en carousel ---- */
  .plan--featured {
    transform: none;
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.25),
      var(--shadow-xl);
  }
  .plan--featured:hover {
    transform: translateY(-6px);
  }
  .plan--featured.reveal.is-visible {
    transform: none;
  }
  .plan--featured.reveal.is-visible:hover {
    transform: translateY(-6px);
  }
  /* ---- Header ---- */
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--red-dark);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
  }
  .header__nav.is-open {
    display: flex;
  }
  .header__nav a {
    padding: 0.6rem 0;
    font-size: 0.95rem;
  }
  .header__burger {
    display: flex;
    margin-left: auto;
  }
  .header__actions {
    display: none;
  }
  .about {
    grid-template-columns: 1fr;
  }
  .about__visual {
    order: -1;
  }
  .cta-band__inner {
    flex-direction: column;
    text-align: center;
  }
  .conditions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero .carousel__slide img {
    max-height: 240px;
  }
  /* Service cards: 2 columnas en móvil */
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .form__grid {
    grid-template-columns: 1fr;
  }
  .form__group--full {
    grid-column: auto;
  }
  .form {
    padding: 1.25rem;
  }
  .plan .btn {
    margin: 0 0 1.25rem;
  }
  .plan__head {
    padding: 1.25rem 1rem 0.9rem;
  }
  .plan__features {
    padding: 1rem;
  }
  .support-card {
    font-size: 0.9rem;
  }
  /* ---- Marquee más compacto en móvil ---- */
  .marquee__track {
    font-size: 0.68rem;
    letter-spacing: 1px;
  }
  /* ---- Botones más pequeños en móvil ---- */
  .btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.78rem;
  }
  .btn--lg {
    padding: 0.65rem 1.4rem;
    font-size: 0.82rem;
  }
  .btn--sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.72rem;
  }
  /* Botones full-width dentro de cards: reducir tamaño de texto */
  .plan .btn,
  .card .btn {
    font-size: 0.78rem;
    padding: 0.55rem 1rem;
  }
  /* CTA band button */
  .cta-band .btn {
    font-size: 0.8rem;
    padding: 0.65rem 1.4rem;
  }
}

@media (max-width: 480px) {
  .section__title {
    font-size: 1.4rem;
  }
  /* Service cards: 1 columna en pantallas muy pequeñas */
  .grid--3 {
    grid-template-columns: 1fr;
  }
  .plan__price {
    font-size: 2.25rem;
  }
  .carousel__btn {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
  .fab {
    width: 48px;
    height: 48px;
  }
  .fab--phone {
    bottom: 4.75rem;
  }
  .support-card {
    font-size: 0.72rem;
  }
  .btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.75rem;
  }
  .btn--lg {
    padding: 0.6rem 1.2rem;
    font-size: 0.55rem;
  }
  /* Plans carousel más estrecho en móvil muy pequeño */
  .plans-grid > .plan,
  .plans-grid--4 > .plan {
    min-width: 85vw;
  }
}
