/* ============================================================
   FASTWEB — Clic Argentina
   styles.css
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:       #07092B;
  --navy-light: #0D1142;
  --pink:       #E8287A;
  --cyan:       #2CD4E0;
  --white:      #FFFFFF;
  --white-70:   rgba(255, 255, 255, 0.70);
  --white-50:   rgba(255, 255, 255, 0.50);
  --white-10:   rgba(255, 255, 255, 0.10);
  --grad:       linear-gradient(110deg, #E8287A 0%, #A855F7 45%, #2CD4E0 100%);
  --grad-text:  linear-gradient(110deg, #FF4FA0 0%, #B875FF 45%, #3DE0F0 100%);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* ── Base ───────────────────────────────────────────────────── */
body {
  background-color: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background glow mesh */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20%   0%, rgba(232, 40,122, 0.13) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85%  80%, rgba( 44,212,224, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 50%  50%, rgba(168, 85,247, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Utility: gradient text ─────────────────────────────────── */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ── NAV ────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(7, 9, 43, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-logo:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-70);
  background: var(--white-10);
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── MAIN WRAPPER ───────────────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 5.5rem 1rem 4.5rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(232, 40, 122, 0.12);
  border: 1px solid rgba(232, 40, 122, 0.30);
  color: #FF80B4;
  margin-bottom: 1.8rem;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 10vw, 5.8rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 4.5vw, 2.6rem);
  font-weight: 600;
  color: var(--white-70);
  margin-bottom: 1.6rem;
}

.hero-desc {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  color: rgba(255, 255, 255, 0.58);
  max-width: 580px;
  margin: 0 auto 2.8rem;
  line-height: 1.78;
}

/* ── CTA BUTTON ─────────────────────────────────────────────── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--grad);
  color: #fff;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 2.3rem;
  border-radius: 999px;
  transition: filter 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 40px rgba(232, 40, 122, 0.35), 0 4px 20px rgba(0, 0, 0, 0.40);
}

.cta-btn:hover,
.cta-btn:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 0 55px rgba(232, 40, 122, 0.45), 0 6px 28px rgba(0, 0, 0, 0.45);
  outline: none;
}

.cta-btn:active {
  transform: translateY(0);
  filter: brightness(1.0);
}

.cta-btn .arrow {
  font-size: 1.15em;
  transition: transform 0.2s ease;
}

.cta-btn:hover .arrow {
  transform: translateX(5px);
}

/* ── TRUST BAR ──────────────────────────────────────────────── */
.hero-trust {
  margin-top: 1.8rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  row-gap: 0.4rem;
}

.hero-trust .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

/* ── DIVIDER ────────────────────────────────────────────────── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 25%,
    rgba(255, 255, 255, 0.08) 75%,
    transparent 100%
  );
}

/* ── STEPS SECTION ──────────────────────────────────────────── */
.steps-section {
  padding: 5rem 0;
}

.section-label {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.8rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.25s ease;
}

/* Gradient border glow on hover */
.step-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.step-card:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-3px);
}

.step-card:hover::after {
  opacity: 0.55;
}

.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  display: inline-block;
  opacity: 0.65;
}

.step-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.step-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.65;
}

/* ── CLOSING CTA ────────────────────────────────────────────── */
.cta-section {
  padding: 3.5rem 0 6rem;
  text-align: center;
}

.cta-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  padding: 3.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Cyan glow at bottom */
.cta-box::before {
  content: '';
  position: absolute;
  bottom: -90px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 210px;
  background: radial-gradient(ellipse, rgba(44, 212, 224, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

/* Pink glow at top-right */
.cta-box::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(ellipse, rgba(232, 40, 122, 0.09) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.cta-box .cta-btn {
  position: relative;
  z-index: 1;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2.2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-made {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.28);
}

.footer-made strong {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.footer-brand {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.32);
}

.footer-brand a {
  color: #7DD8FF;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-brand a:hover,
.footer-brand a:focus-visible {
  color: var(--cyan);
  text-decoration: underline;
  outline: none;
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(232, 40, 122, 0.35), 0 4px 20px rgba(0,0,0,0.40); }
  50%       { box-shadow: 0 0 65px rgba(232, 40, 122, 0.60), 0 6px 28px rgba(0,0,0,0.45); }
}

/* Subtle glow pulse on main CTA to draw attention after load */
.hero .cta-btn {
  animation: fadeUp 0.6s 0.34s ease both, glowPulse 3s 1.2s ease-in-out infinite;
}

.hero-badge { animation: fadeUp 0.5s 0.00s ease both; }
.hero h1    { animation: fadeUp 0.6s 0.10s ease both; }
.hero-sub   { animation: fadeUp 0.6s 0.18s ease both; }
.hero-desc  { animation: fadeUp 0.6s 0.26s ease both; }
.cta-btn    { animation: fadeUp 0.6s 0.34s ease both; }
.hero-trust { animation: fadeUp 0.6s 0.42s ease both; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── Large desktop  (≥ 1280px) ──────────────────────────────── */
@media (min-width: 1280px) {
  main {
    max-width: 960px;
  }

  .hero {
    padding: 7rem 2rem 5.5rem;
  }
}

/* ── Tablet landscape  (769px – 1024px) ─────────────────────── */
@media (max-width: 1024px) {
  nav {
    padding: 0.9rem 2rem;
  }

  main {
    padding: 0 1.5rem;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ── Tablet portrait  (577px – 768px) ───────────────────────── */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  nav {
    padding: 0.85rem 1.5rem;
  }

  main {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 4rem 0.5rem 3.5rem;
  }

  .hero-desc {
    font-size: 0.97rem;
  }

  .cta-btn {
    padding: 0.9rem 2rem;
    font-size: 0.97rem;
  }

  .steps-section {
    padding: 4rem 0;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .step-card {
    padding: 1.5rem 1.3rem;
  }

  .step-number {
    font-size: 2.6rem;
  }

  .cta-section {
    padding: 3rem 0 5rem;
  }

  .cta-box {
    padding: 2.8rem 2rem;
  }

  footer {
    padding: 2rem 1.5rem;
  }
}

/* ── Mobile  (≤ 576px) ──────────────────────────────────────── */
@media (max-width: 576px) {
  body {
    font-size: 15px;
  }

  nav {
    padding: 0.8rem 1rem;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .nav-tag {
    font-size: 0.62rem;
    padding: 0.25rem 0.7rem;
    letter-spacing: 0.1em;
  }

  main {
    padding: 0 1rem;
  }

  .hero {
    padding: 3rem 0 3rem;
  }

  .hero-badge {
    font-size: 0.62rem;
    padding: 0.3rem 0.8rem;
    letter-spacing: 0.14em;
  }

  .hero-desc {
    font-size: 0.93rem;
    margin-bottom: 2.2rem;
  }

  /* Full-width button on small screens */
  .cta-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    justify-content: center;
  }

  .hero-trust {
    font-size: 0.75rem;
    gap: 0.65rem;
  }

  /* Dots hidden on very small screens to avoid clutter */
  .hero-trust .dot {
    display: none;
  }

  .steps-section {
    padding: 3rem 0;
  }

  .section-label {
    margin-bottom: 2rem;
  }

  /* Single column on mobile */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .step-card {
    padding: 1.4rem 1.3rem;
    border-radius: 16px;
  }

  .step-number {
    font-size: 2.4rem;
    margin-bottom: 0.6rem;
  }

  .step-title {
    font-size: 0.95rem;
  }

  .step-desc {
    font-size: 0.86rem;
  }

  .cta-section {
    padding: 2rem 0 4rem;
  }

  .cta-box {
    padding: 2.2rem 1.3rem;
    border-radius: 20px;
  }

  .cta-box h2 {
    font-size: 1.4rem;
  }

  .cta-box p {
    font-size: 0.9rem;
  }

  .cta-box .cta-btn {
    width: 100%;
  }

  footer {
    padding: 1.8rem 1rem;
    gap: 0.5rem;
  }

  .footer-made,
  .footer-brand {
    font-size: 0.78rem;
  }
}

/* ── Extra small  (≤ 360px) ─────────────────────────────────── */
@media (max-width: 360px) {
  .hero {
    padding: 2.5rem 0 2.5rem;
  }

  .step-card {
    padding: 1.2rem 1.1rem;
  }

  .cta-box {
    padding: 1.8rem 1rem;
  }
}

/* ── PRINT STYLES ───────────────────────────────────────────── */
@media print {
  body::before, .hero-badge, nav { display: none; }
  body  { background: #fff; color: #000; font-size: 12pt; }
  .cta-btn { border: 2px solid #000; background: none; color: #000; padding: 8px 16px; }
  .gradient-text { -webkit-text-fill-color: #000; }
  a { color: #000; text-decoration: underline; }
  footer { border-top: 1px solid #ccc; }
}
