/* ============================================================
   BRAZILIAN BEACH BALL — styles.css
   Mobile-first · Graffiti urbano brasileño
   ============================================================ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:   #FFC600;
  --yellow-dk: #e6b000;
  --black:    #0b0b0b;
  --dark:     #111111;
  --mid:      #1a1a1a;
  --text:     #e8e8e8;
  --text-dim: #999;
  --radius:   6px;
  --font-graffiti: 'Luckiest Guy', cursive;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;

  /* Muro de ladrillo extraído del propio logo (tile sin costuras) */
  background-image: url("wall.jpg");
  background-size: 300px;
  background-repeat: repeat;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Utilidades ── */
.accent         { color: var(--yellow); }
.strikethrough  { text-decoration: line-through; color: var(--text-dim); }

/* ── Graffiti amarillo "pintado" (estilo logo / Subway Surfers) ──
   Relleno amarillo + contorno negro grueso + extrusión 3D apilada.
   Lo aplican: hero__sub, section-title, step__title, footer__lema. */
.graffiti-paint {
  color: var(--yellow);
  -webkit-text-stroke: 3px #0a0a0a;
  paint-order: stroke fill;       /* el contorno queda por fuera, el amarillo limpio */
  text-shadow:
    1px 1px 0 #5a4500,
    2px 2px 0 #4a3800,
    3px 3px 0 #3a2c00,
    4px 5px 8px rgba(0,0,0,0.5);   /* relieve intermedio (3 pasos) + sombra blanda */
}
/* Dentro del graffiti todo es amarillo (el acento deja de ser distinto) */
.graffiti-paint .accent { color: var(--yellow); }

/* ── Accesibilidad ── */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================================
   BARRA SUPERIOR
   ============================================================ */
.topbar {
  background: var(--yellow);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(255,198,0,0.35);
}

.topbar__text {
  font-family: var(--font-head);
  font-size: clamp(0.75rem, 3.5vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.topbar__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--black);
  opacity: 0.5;
  flex-shrink: 0;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 56px;
  text-align: center;
  overflow: hidden;
}

/* Línea de graffiti decorativa arriba */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
}

.hero__logo-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.hero__logo {
  width: 100%;
  max-width: 460px;
  height: auto;
}

.hero__sub {
  font-family: var(--font-graffiti);
  font-size: clamp(1.65rem, 7.2vw, 2.6rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 24px;
  position: relative; z-index: 1;
}

.hero__desc {
  position: relative; z-index: 1;
  max-width: 400px;
  font-size: clamp(0.85rem, 3.5vw, 0.95rem);
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 28px;
}

/* Panel de precios */
.price-panel {
  position: relative; z-index: 1;
  background: rgba(255,198,0,0.07);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  width: 100%;
  max-width: 360px;

  /* Efecto pincelada graffiti en el borde */
  box-shadow:
    0 0 0 1px rgba(255,198,0,0.15),
    inset 0 1px 0 rgba(255,198,0,0.08),
    0 8px 32px rgba(0,0,0,0.5);
}

.price-panel__badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.price-panel__prices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.price-panel__now,
.price-panel__before {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.price-panel__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.price-panel__amount {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 7.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
}

.price-panel__divider {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.price-panel__save {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--yellow);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Balón flotante */
.hero__ball-img {
  position: absolute;
  bottom: -10px;
  right: -85px;            /* asoma desde el borde, sin tapar el botón */
  width: 175px;
  height: auto;
  z-index: 0;
  pointer-events: none;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.55));
}

@media (min-width: 480px) {
  .hero__ball-img {
    width: 230px;
    bottom: 10px;
    right: -40px;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-14px) rotate(5deg); }
  66%       { transform: translateY(-6px) rotate(-3deg); }
}


/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  position: relative;
  overflow: hidden;
}

/* Efecto brillo al hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.btn:hover::after { transform: translateX(100%); }

.btn--hero {
  background: var(--yellow);
  color: var(--black);
  font-size: clamp(1rem, 5vw, 1.25rem);
  padding: 17px 32px;
  box-shadow: 0 0 0 3px rgba(255,198,0,0.3), 0 8px 24px rgba(255,198,0,0.3);
  position: relative; z-index: 1;
}

.btn--hero:hover,
.btn--hero:focus-visible {
  background: #ffd633;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 0 3px rgba(255,198,0,0.5), 0 14px 36px rgba(255,198,0,0.45);
}

.btn--hero:active { transform: translateY(0) scale(0.98); }

.btn__arrow {
  font-size: 1.1em;
  transition: transform 0.2s ease;
}
.btn--hero:hover .btn__arrow { transform: translateX(4px); }

.btn--secondary {
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
  font-size: clamp(0.95rem, 4.5vw, 1.15rem);
  padding: 15px 30px;
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,198,0,0.3);
}


/* ============================================================
   BANNER 24H
   ============================================================ */
.banner-24h {
  background: linear-gradient(135deg, #1a1200 0%, #1e1500 100%);
  border-top: 2px solid rgba(255,198,0,0.3);
  border-bottom: 2px solid rgba(255,198,0,0.3);
  padding: 18px 0;
}

.banner-24h__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

.banner-24h__icon {
  color: var(--yellow);
  display: inline-flex;
  flex-shrink: 0;
}

.banner-24h__text {
  font-size: clamp(0.85rem, 3.8vw, 1rem);
  max-width: 500px;
  line-height: 1.45;
}

.banner-24h__text strong {
  color: var(--yellow);
  font-weight: 700;
}


/* ============================================================
   SPRAY TAG (decoración graffiti)
   ============================================================ */
.spray-tag {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,198,0,0.45);
  margin-bottom: 10px;
}


/* ============================================================
   SECCIÓN PRODUCTO
   ============================================================ */
.product {
  padding: 56px 0 16px;
  text-align: center;
}

.features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* centra la fila incompleta */
  gap: 16px;
  margin-top: 32px;
  text-align: left;
}

.feature {
  flex: 1 1 calc(50% - 8px);
  max-width: calc(50% - 8px);
}

@media (min-width: 700px) {
  .feature {
    flex-basis: calc(33.333% - 11px);
    max-width: calc(33.333% - 11px);
  }
}

.feature {
  background: var(--mid);
  border: 1px solid rgba(255,198,0,0.14);
  border-radius: 10px;
  padding: 22px 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover {
  border-color: rgba(255,198,0,0.45);
  transform: translateY(-4px);
}

.feature__icon {
  color: var(--yellow);
  display: inline-flex;
  margin-bottom: 12px;
}

.feature__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--yellow);
  margin-bottom: 6px;
  line-height: 1.15;
}

.feature__desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.45;
}


/* Callout de aviso (alta demanda) */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  max-width: 480px;
  margin: 0 auto 20px;
  padding: 14px 16px;
  background: rgba(255,198,0,0.08);
  border: 1px solid rgba(255,198,0,0.35);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
}
.callout__icon {
  color: var(--yellow);
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 1px;
}
.callout__text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}
.callout__text strong { color: var(--yellow); }


/* ============================================================
   SECCIÓN CAPTACIÓN
   ============================================================ */
.captacion {
  padding: 64px 0 56px;
  text-align: center;
  position: relative;
}

/* Línea decorativa lateral izquierda */
.captacion::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--yellow), transparent);
  opacity: 0.35;
}

.section-title {
  font-family: var(--font-graffiti);
  font-size: clamp(1.9rem, 8.5vw, 3rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.12;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-dim);
  font-size: clamp(0.95rem, 4vw, 1.05rem);
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.form-wrap {
  background: rgba(255,198,0,0.05);
  border: 1px solid rgba(255,198,0,0.2);
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 24px 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Formulario nativo BBB ── */
.bbb-form { text-align: left; }

.bbb-form__label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin-bottom: 8px;
}

.bbb-form__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bbb-form__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text);
  background: #0d0d0d;
  border: 2px solid rgba(255,198,0,0.35);
  border-radius: var(--radius);
  padding: 15px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bbb-form__input::placeholder { color: #6a6a6a; }

.bbb-form__input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,198,0,0.25);
}

.bbb-form__input[aria-invalid="true"] {
  border-color: #ff5252;
  box-shadow: 0 0 0 3px rgba(255,82,82,0.2);
}

.bbb-form__submit {
  width: 100%;
  justify-content: center;
  padding: 15px 24px;
  font-size: 1.1rem;
}

/* Honeypot: oculto a usuarios, visible a bots */
.bbb-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.bbb-form__msg {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
  text-align: center;
}
.bbb-form__msg.is-error   { color: #ff6b6b; }
.bbb-form__msg.is-success { color: var(--yellow); }

/* En pantallas anchas: input + botón en línea */
@media (min-width: 520px) {
  .bbb-form__row { flex-direction: row; }
  .bbb-form__input { flex: 1; }
  .bbb-form__submit { width: auto; flex-shrink: 0; }
}

.form-legal {
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.5;
}


/* ============================================================
   CÓMO FUNCIONA
   ============================================================ */
.how {
  padding: 56px 0 72px;
  text-align: center;
  position: relative;
}

/* Separador graffiti */
.how::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,198,0,0.25), transparent);
  margin-bottom: 56px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  list-style: none;
  margin: 32px 0 40px;
  text-align: left;
}

@media (min-width: 600px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.step {
  background: var(--mid);
  border: 1px solid rgba(255,198,0,0.14);
  border-radius: 10px;
  padding: 24px 20px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.step:hover {
  border-color: rgba(255,198,0,0.45);
  transform: translateY(-4px);
}

.step__num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--yellow);
  opacity: 0.35;
  pointer-events: none;
}

.step__icon {
  color: var(--yellow);
  margin-bottom: 12px;
  display: inline-flex;
}

.step__title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--yellow);
  margin-bottom: 8px;
  line-height: 1.15;
}

.step__desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.how__cta { margin-top: 36px; text-align: center; }

.how__cta-title {
  font-family: var(--font-graffiti);
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 10px;
}

.how__cta-note {
  max-width: 420px;
  margin: 0 auto 20px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  border-top: 2px solid rgba(255,198,0,0.2);
  padding: 40px 0 32px;
  text-align: center;
}

.footer__logo-wrap { margin-bottom: 14px; }

.footer__logo {
  width: 200px;
  max-width: 65%;
  height: auto;
}

.footer__lema {
  font-family: var(--font-graffiti);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}

.footer__legal {
  font-size: 0.72rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}


/* ============================================================
   ANIMACIONES DE ENTRADA (JS las activa)
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay escalonado para los steps */
.steps .step:nth-child(2).fade-up { transition-delay: 0.1s; }
.steps .step:nth-child(3).fade-up { transition-delay: 0.2s; }


/* ============================================================
   RESPONSIVE — desktop extras
   ============================================================ */
@media (min-width: 768px) {
  .hero { padding: 64px 40px 72px; }
  .hero__logo { max-width: 520px; }
  .price-panel { max-width: 420px; }
  .captacion { padding: 80px 0 72px; }
  .how { padding: 72px 0 88px; }
}
