:root {
  --bg: #07101f;
  --bg-2: #0b1526;
  --card: #101b31;
  --violet: #8b3dff;
  --pink: #ff3d7f;
  --blue: #1f4cff;
  --text: #ffffff;
  --muted: #b7c0d4;
  --line: rgba(255, 255, 255, 0.12);
  --radius: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, 90%);
  margin: auto;
}

.narrow {
  max-width: 760px;
}

.section {
  padding: 120px 0;
}

h1,
h2,
h3 {
  line-height: 1.1;
  font-weight: 800;
}

h1 {
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: -2px;
}

h2 {
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -1px;
}

h3 {
  font-size: 24px;
  margin-bottom: 18px;
}

p {
  color: var(--muted);
  font-size: 18px;
}

/* NAV */

.nav {
  width: min(1120px, 90%);
  margin: auto;
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
}

.brand-icon {
  width: 28px;
  height: 18px;
  display: inline-block;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  transform: skewX(-18deg);
  box-shadow: 0 0 28px rgba(139, 61, 255, .6);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:hover {
  color: white;
}

/* HERO */

.hero {
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 45%, rgba(31, 76, 255, .35), transparent 28%),
    linear-gradient(180deg, #07101f 0%, #091426 100%);
}

.hero-grid {
  min-height: calc(100vh - 130px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.hero-content p {
  max-width: 580px;
  margin: 28px 0 36px;
  font-size: 22px;
}

.buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .4px;
  transition: .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: white;
  box-shadow: 0 12px 40px rgba(139, 61, 255, .35);
}

.btn.secondary {
  border-color: var(--line);
  color: white;
  background: rgba(255,255,255,.03);
}

.btn:hover {
  transform: translateY(-3px);
}

.hero-image {
  position: relative;
}

.hero-image img,
.image-card img,
.work-image img {
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.glow {
  position: absolute;
  inset: 20%;
  background: var(--blue);
  filter: blur(80px);
  opacity: .85;
  z-index: 0;
}

.hero-image img {
  position: relative;
  z-index: 1;
}

/* INTRO */

.intro {
  text-align: center;
}

.intro h2 {
  color: var(--violet);
  margin-bottom: 28px;
}

.intro p {
  font-size: 20px;
}

/* SPLIT */

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 90px;
}

.split h2 {
  color: var(--violet);
  margin-bottom: 26px;
}

.image-card {
  position: relative;
}

.image-card::before {
  content: "";
  position: absolute;
  inset: 18%;
  background: rgba(139, 61, 255, .5);
  filter: blur(70px);
  z-index: -1;
}

/* PLANS */

.plans {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

.plans h2,
.works h2,
.contact h2,
.faq h2 {
  margin-bottom: 44px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  transition: .25s ease;
}

.card.highlighted {
  background: linear-gradient(180deg, rgba(139,61,255,.22), rgba(255,255,255,.04));
  border-color: rgba(139,61,255,.6);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.28);
}

.card p {
  margin-bottom: 24px;
}

.card ul {
  padding-left: 18px;
  color: var(--muted);
}

.card li {
  margin-bottom: 10px;
}

/* WORKS */

.work {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 70px;
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.reverse-work {
  grid-template-columns: 360px 1fr;
}

.work h3 {
  font-size: 34px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.work p {
  max-width: 680px;
  margin-bottom: 28px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  color: white;
  text-decoration: none;
  margin-top: 28px;
}

.link-btn i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px; /* CLAVE */
  color: white;    /* CLAVE */
  transition: all 0.25s ease;
}

.link-btn:hover i {
  transform: translateX(6px);
  background: linear-gradient(135deg, #7B2CFF, #FF4D8D);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(123, 44, 255, 0.35);
}

/* CONTACT */

.contact {
  background: linear-gradient(180deg, #0b1526, #07101f);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
}

form {
  margin-top: 36px;
}

label {
  display: block;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  color: white;
  font-size: 16px;
  margin-bottom: 24px;
  outline: none;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--violet);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.contact-info a {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 18px;
}

.contact-info i {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
}

/* FAQ */

.faq {
  background: var(--bg);
}

details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

summary {
  cursor: pointer;
  font-size: 19px;
  font-weight: 700;
}

details p {
  margin-top: 14px;
}

/* FOOTER */

.footer {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer p {
  font-size: 14px;
}

/* FLOAT */

.whatsapp-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: white;
  color: #25d366;
  display: grid;
  place-items: center;
  font-size: 34px;
  z-index: 50;
  box-shadow: 0 14px 35px rgba(0,0,0,.28);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .split-grid,
  .contact-grid,
  .work,
  .reverse-work {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 40px;
    padding: 40px 0 90px;
  }

  .reverse {
    display: flex;
    flex-direction: column-reverse;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 80px 0;
  }

  .work {
    gap: 34px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-content p,
  p {
    font-size: 17px;
  }

  .btn {
    width: 100%;
  }

  .buttons {
    width: 100%;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    font-size: 30px;
  }
}

#scrollTopBtn {
  position: fixed;
  bottom: 105px; /* arriba del botón de WhatsApp */
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  
  background: linear-gradient(135deg, #7B2CFF, #FF4D8D);
  color: white;
  
  border: none;
  cursor: pointer;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  font-size: 18px;
  
  box-shadow: 0 10px 25px rgba(123, 44, 255, 0.4);
  
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  
  z-index: 999;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(123, 44, 255, 0.6);
}