/* =========================================================
   CC AGENCIA DIGITAL — estilos
   Mobile-first. Azul noche + fucsia. Space Grotesk + Barlow.
   ========================================================= */

:root {
  /* Colores */
  --bg:            #12122A;  /* fondo principal: azul noche */
  --bg-alt:        #1A1A3A;  /* fondo secciones intercaladas */
  --white:         #FFFFFF;  /* texto principal */
  --lavender:      #C9C9EA;  /* texto secundario */
  --logo-text:     #B9B9E8;  /* "agencia digital" del logo */
  --accent:        #E0368F;  /* fucsia: botones y CTA */
  --accent-light:  #FF5FAE;  /* rosa: palabras destacadas */
  --accent-2:      #5B5BF0;  /* violeta: solo degradés */
  --pill-text:     #FF8CC4;  /* texto de píldoras */
  --wa-green:      #25D366;  /* verde WhatsApp */

  --card-light:    #FFFFFF;  /* tarjetas de precio */

  /* Degradé de marca (solo detalles chicos) */
  --grad: linear-gradient(160deg, var(--accent) 0%, var(--accent-2) 100%);

  /* Radios */
  --r-card: 24px;
  --r-img: 36px;
  --r-btn: 24px;

  /* Sombras suaves */
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.35);
  --shadow-accent: 0 14px 34px rgba(224, 54, 143, 0.35);

  /* Layout */
  --maxw: 1180px;
  --gutter: 20px;
}

/* ----------------------- Reset ----------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Barlow', system-ui, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

.hl { color: var(--accent-light); }

/* ----------------------- Layout ----------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow { max-width: 820px; }

.section {
  padding: 72px 0;
}

.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  margin-top: .4em;
}

.section-sub {
  color: var(--lavender);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ----------------------- Píldoras ----------------------- */
.pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 95, 174, 0.14);
  color: var(--pill-text);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .02em;
}

/* ----------------------- Botones ----------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 22px;
  border-radius: var(--r-btn);
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(224, 54, 143, 0.45); }
.btn-primary:active { transform: translateY(0) scale(.98); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}
.btn-ghost:hover { border-color: var(--accent-light); color: var(--accent-light); }

.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-lg { padding: 18px 30px; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; justify-content: center; margin-top: 6px; }

/* círculo blanco con flecha */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  transition: transform .18s ease;
  flex-shrink: 0;
}
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-ghost .btn-arrow { background: var(--accent); color: var(--white); }

/* puntito verde WhatsApp dentro del botón */
.wa-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--wa-green);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.25);
  flex-shrink: 0;
}

/* ----------------------- Logo ----------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-cc {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
}

.logo-cursor {
  width: 7px;
  height: 30px;
  border-radius: 3px;
  background: var(--grad);
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--logo-text);
  line-height: 1.25;
}

/* ----------------------- Header ----------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 42, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav > a:not(.btn) {
  color: var(--lavender);
  font-weight: 500;
  font-size: .98rem;
  transition: color .15s ease;
}
.nav > a:not(.btn):hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ----------------------- Hero ----------------------- */
.hero {
  padding: 56px 0 72px;
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 40px;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 9vw, 4rem);
  margin: .3em 0 .35em;
}

.hero-copy .lead {
  color: var(--lavender);
  font-size: 1.15rem;
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 16px;
}

.hero-note {
  color: var(--lavender);
  font-size: .9rem;
  margin: 0;
}

.hero-media { position: relative; }

.hero-img {
  width: 100%;
  border-radius: var(--r-img);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.floating-chat {
  position: absolute;
  left: -6px;
  bottom: 26px;
  max-width: 250px;
  animation: floaty 4s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ----------------------- Burbujas de chat ----------------------- */
.chat-bubble {
  background: var(--white);
  color: var(--bg);
  padding: 14px 16px;
  border-radius: 18px;
  border-bottom-left-radius: 5px;
  box-shadow: var(--shadow-sm);
  position: relative;
  font-size: .95rem;
}

.chat-bubble::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 14px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--wa-green);
}

.chat-bubble p { margin: 0; padding-left: 18px; }
.chat-name {
  display: block;
  padding-left: 18px;
  font-weight: 700;
  font-size: .78rem;
  color: var(--accent);
  margin-bottom: 3px;
}
.chat-time {
  display: block;
  text-align: right;
  font-size: .72rem;
  color: #8a8aa5;
  margin-top: 4px;
}
.wa-check { color: #34b7f1; }

.chat-proof {
  display: grid;
  gap: 16px;
  max-width: 540px;
  margin: 48px auto 0;
}
.chat-proof .chat-bubble:nth-child(even) {
  justify-self: end;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 5px;
}
.chat-proof .chat-bubble:nth-child(even)::before { left: auto; right: 14px; }
.chat-proof .chat-bubble:nth-child(even) p,
.chat-proof .chat-bubble:nth-child(even) .chat-name { padding-left: 0; padding-right: 18px; }

/* ----------------------- Trust / stats ----------------------- */
.trust {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.trust-label {
  text-align: center;
  color: var(--lavender);
  font-size: .95rem;
  margin-bottom: 26px;
}
.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: -0.03em;
}
.stat span { color: var(--lavender); font-size: .9rem; }

/* ----------------------- Servicios ----------------------- */
.cards-grid {
  display: grid;
  gap: 22px;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-card);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.service-card h3 { font-size: 1.5rem; }
.service-card p { color: var(--lavender); font-size: 1rem; flex-grow: 1; }

.service-card.featured {
  background: var(--card-light);
  color: var(--bg);
  border: none;
  box-shadow: var(--shadow-md);
}
.service-card.featured p { color: #4a4a66; }
.service-card.featured .price-from { color: #6a6a85; }

.card-tag {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--grad);
  color: var(--white);
  font-size: .76rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: .02em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 18px 0 8px;
  flex-wrap: wrap;
}
.price-from { font-size: .9rem; color: var(--lavender); }
.price-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.03em;
}
.price-month { font-size: .9rem; color: var(--lavender); }

/* ----------------------- Qué incluye ----------------------- */
.includes-grid {
  display: grid;
  gap: 26px;
}
.include-col {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-card);
  padding: 30px 28px;
}
.include-col h3 { font-size: 1.3rem; margin-bottom: 20px; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 15px;
  color: var(--lavender);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--bg);
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----------------------- Pasos ----------------------- */
.steps-grid {
  display: grid;
  gap: 20px;
}
.step-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--r-card);
  padding: 32px 26px;
  position: relative;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--bg);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.step-card h3 { font-size: 1.3rem; }
.step-card p { color: var(--lavender); margin: 0; }

/* ----------------------- Para quién ----------------------- */
.audience-grid {
  display: grid;
  gap: 24px;
}
.audience-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-card);
  overflow: hidden;
  padding-bottom: 8px;
}
.audience-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--r-img);
  padding: 10px;
}
.audience-card h3 { font-size: 1.3rem; padding: 6px 24px 0; }
.audience-card p { color: var(--lavender); padding: 0 24px; margin-bottom: 10px; }

/* ----------------------- FAQ ----------------------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-card);
  padding: 4px 24px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 20px 36px 20px 0;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--accent-light);
  font-size: 1.6rem;
  font-weight: 400;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding-bottom: 20px; }
.faq-answer p { color: var(--lavender); margin: 0; }

/* ----------------------- CTA final ----------------------- */
.cta-final {
  padding: 90px 0;
  text-align: center;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(224, 54, 143, 0.22), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 640px; }
.cta-final h2 { font-size: clamp(2rem, 7vw, 3.1rem); }
.cta-final p { color: var(--lavender); font-size: 1.1rem; margin-bottom: 28px; }
.cta-alt { font-size: .95rem; margin-top: 20px; margin-bottom: 0; }
.cta-alt a { color: var(--accent-light); font-weight: 600; }

/* ----------------------- Footer ----------------------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 56px 0 28px;
}
.footer-inner {
  display: grid;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-brand p {
  color: var(--lavender);
  max-width: 34ch;
  margin-top: 16px;
  font-size: .95rem;
}
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; color: var(--lavender); font-size: .95rem; }
.footer-col a:hover { color: var(--accent-light); }

.socials { display: flex; gap: 12px; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--lavender);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.social:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }
.social-wa:hover { background: var(--wa-green); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 22px;
  text-align: center;
}
.footer-bottom p { color: #7a7a95; font-size: .85rem; margin: 0; }

/* ----------------------- WhatsApp flotante ----------------------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--wa-green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform .2s ease;
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ----------------------- Reveal animación ----------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE — tablet y desktop
   ========================================================= */
@media (min-width: 720px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .includes-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  .section { padding: 96px 0; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .hero { padding: 80px 0 100px; }
}

/* menú mobile */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 72px;
    right: 0;
    width: min(80vw, 320px);
    height: calc(100dvh - 72px);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: var(--bg-alt);
    padding: 28px 26px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.4);
  }
  .nav.open { transform: translateX(0); }
  .nav > a:not(.btn) {
    width: 100%;
    padding: 12px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .nav-cta { margin-top: 16px; }
}

/* ----------------------- Reduced motion ----------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
