/* ============================================================
   AV DIGITAL PROFESIONAL · avdigitalprofesional.es
   Landing de captación · minimalista, oscura, un acento
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --bg-alt: #111622;
  --bg-card: #161d2e;
  --line: #232c42;
  --text: #eef2f9;
  --text-soft: #c9d6e8;
  --text-dim: #7a8699;
  --accent: #4da3ff;
  --cta: #00d27a;
  --cta-dark: #00b569;
  --radius: 14px;
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 720px; }
.only-desktop { display: none; }
@media (min-width: 720px) { .only-desktop { display: inline; } }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(10, 10, 15, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__logo { height: 34px; width: auto; }

/* ===== BOTONES ===== */
.btn {
  display: inline-block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 10px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn--primary {
  background: var(--cta);
  color: #04130b;
  padding: 17px 34px;
  font-size: 1rem;
  box-shadow: 0 8px 30px rgba(0, 210, 122, .25);
}
.btn--primary:hover { background: var(--cta-dark); transform: translateY(-2px); }
.btn--nav {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  font-size: .85rem;
}
.btn--nav:hover { background: #3990f0; transform: translateY(-1px); }
.btn--block { width: 100%; }

/* ===== HERO ===== */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(ellipse 70% 50% at 70% 0%, rgba(77, 163, 255, .10), transparent),
    radial-gradient(ellipse 50% 40% at 20% 100%, rgba(0, 210, 122, .05), transparent);
}
.eyebrow {
  font-size: clamp(1.1rem, 2.3vw, 1.5rem);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow--hero {
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  letter-spacing: .14em;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.02em;
  margin-bottom: 26px;
}
.accent { color: var(--accent); }
.hl-strong { color: var(--accent); font-weight: 800; }
.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-soft);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero__micro {
  margin-top: 18px;
  font-size: .98rem;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.55;
}
.micro-hl {
  display: block;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.12rem;
  margin-bottom: 6px;
}

/* ===== PROOF ===== */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.proof__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 16px;
  padding: 30px 24px;
}
@media (min-width: 720px) { .proof__row { grid-template-columns: repeat(4, 1fr); } }
.proof__item { text-align: center; }
.proof__item strong { display: block; font-size: 1.25rem; font-weight: 800; }
.proof__item span { font-size: .85rem; color: var(--text-dim); }

/* ===== SECCIONES ===== */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 64px 0; }
.section__title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin-bottom: 22px;
}
.section__lead {
  font-size: 1.2rem;
  color: var(--text-soft);
  max-width: 680px;
  margin-bottom: 48px;
}

/* ===== GRIDS / CARDS ===== */
.grid { display: grid; gap: 20px; margin-top: 48px; }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.card h3 { font-size: 1.22rem; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: .97rem; }
.card__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.card__head h3 { margin-bottom: 0; }
.card__num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .04em;
  line-height: 1;
}
.card--service { border-left: 3px solid var(--cta); }

/* ===== PORTFOLIO ===== */
.works { display: grid; gap: 28px; margin-top: 48px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .works { grid-template-columns: repeat(3, 1fr); } }
.work {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.work:hover { transform: translateY(-5px); border-color: var(--accent); }
.work__frame {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #0d1320;
}
.work__frame span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.work img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.work__info { padding: 18px 20px; }
.work__info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.work__info p { font-size: .85rem; color: var(--text-dim); margin-top: 4px; }

/* ===== ABOUT ===== */
.about { max-width: 760px; }
.about__text { font-size: 1.18rem; color: var(--text-soft); line-height: 1.7; }
.about__text strong { color: var(--text); }

/* ===== TEAM ===== */
.team {
  display: grid;
  gap: 32px;
  margin-top: 56px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .team { grid-template-columns: repeat(3, 1fr); } }
.team__member { text-align: center; }
.team__member img {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 2px solid var(--line);
}
.team__member h3 { font-size: 1.05rem; font-weight: 700; }
.team__role {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 4px 0 10px;
}
.team__bio { font-size: .9rem; color: var(--text-dim); max-width: 260px; margin: 0 auto; }

/* ===== CTA / FORM ===== */
.section--cta {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 210, 122, .08), transparent),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}
.section--cta .section__title { text-align: center; }
.cta-mini {
  text-align: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.section--cta .section__lead { text-align: center; margin-left: auto; margin-right: auto; margin-bottom: 40px; font-size: 1.05rem; }
.form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.form__row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__field { margin-bottom: 18px; }
.form__field label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--text-soft);
}
.form__field .opt { font-weight: 400; color: var(--text-dim); }
.form__field input,
.form__field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color .15s ease;
}
.form__field input:focus,
.form__field textarea:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form__legal {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .82rem; color: var(--text-dim);
  margin: 6px 0 22px;
  cursor: pointer;
}
.form__legal input { margin-top: 3px; accent-color: var(--cta); }
.form__status { margin-top: 14px; font-size: .95rem; text-align: center; min-height: 1.4em; }
.form__status.ok { color: var(--cta); }
.form__status.error { color: #ff6b6b; }
.cta-alt {
  text-align: center;
  margin-top: 30px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 2;
}
.cta-alt strong { color: var(--text); }
.wa-pill {
  display: inline-block;
  background: var(--cta);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .85rem;
  padding: 7px 18px;
  border-radius: 999px;
  margin-left: 4px;
  line-height: 1.5;
  transition: background .15s ease, transform .15s ease;
}
.wa-pill:hover { background: var(--cta-dark); transform: translateY(-1px); }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer__row {
  display: flex; flex-direction: column; gap: 20px;
  align-items: flex-start;
}
@media (min-width: 720px) { .footer__row { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer__logo { height: 30px; width: auto; opacity: .85; }
.footer__data p { font-size: .9rem; color: var(--text-dim); }
.footer__data a { color: var(--text-soft); }
.footer__small { margin-top: 6px; font-size: .8rem; }
.prod-pill {
  display: inline-block;
  margin-top: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  padding: 7px 16px;
  border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
}
.prod-pill:hover { background: #3990f0; transform: translateY(-1px); }

/* ===== WHATSAPP FLOTANTE ===== */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cta);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  z-index: 90;
  transition: transform .15s ease, background .15s ease;
}
.wa-float:hover { transform: scale(1.08); background: var(--cta-dark); }

/* ===== BANNER COOKIES ===== */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.cookie.is-visible { display: flex; }
.cookie__text { font-size: .85rem; color: var(--text-soft); line-height: 1.5; margin: 0; }
.cookie__btns { display: flex; gap: 10px; justify-content: flex-end; }
.cookie__btn {
  font-family: var(--font);
  font-weight: 700;
  font-size: .85rem;
  padding: 9px 20px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: transform .15s ease, background .15s ease;
}
.cookie__btn--ghost { background: transparent; color: var(--text-dim); }
.cookie__btn--ghost:hover { color: var(--text); border-color: var(--text-dim); }
.cookie__btn--accept { background: var(--cta); color: #04130b; border-color: var(--cta); }
.cookie__btn--accept:hover { background: var(--cta-dark); transform: translateY(-1px); }
@media (min-width: 560px) {
  .cookie { flex-direction: row; align-items: center; max-width: 720px; }
  .cookie__text { flex: 1; }
  .cookie__btns { flex-shrink: 0; }
}

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
