/* ============================================================
   DREANIX PROJECT — Hoja de estilos
   Paleta: #0A0E27 fondo · #111736 tarjetas · #2DD4E8 cian ·
           #3B6FD4 azul · #7B3FE4 violeta · #D426D9 magenta
   ============================================================ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #0A0E27;
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
}

a { color: #2DD4E8; text-decoration: none; }
a:hover { color: #D426D9; }

::selection { background: rgba(212, 38, 217, 0.4); }

/* ---------- Animaciones ---------- */
@keyframes glowPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(10, 14, 39, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(45, 212, 232, 0.12);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
}
.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.nav-brand span {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 15px;
}
.nav-brand .accent { color: #2DD4E8; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a { color: rgba(255, 255, 255, 0.8); }
.nav-links a:hover { color: #2DD4E8; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  border: none;
  transition: box-shadow 0.25s, background 0.25s;
}
.btn-magenta {
  background: #D426D9;
  color: #FFFFFF;
  box-shadow: 0 0 26px rgba(212, 38, 217, 0.5);
}
.btn-magenta:hover { color: #FFFFFF; box-shadow: 0 0 40px rgba(212, 38, 217, 0.8); }
.btn-gradient {
  background: linear-gradient(90deg, #2DD4E8, #D426D9);
  color: #FFFFFF;
  box-shadow: 0 0 22px rgba(212, 38, 217, 0.4);
}
.btn-gradient:hover { color: #FFFFFF; box-shadow: 0 0 36px rgba(212, 38, 217, 0.7); }
.btn-outline {
  background: none;
  border: 1.5px solid #2DD4E8;
  color: #2DD4E8;
}
.btn-outline:hover { background: rgba(45, 212, 232, 0.12); color: #2DD4E8; }
.btn-nav {
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2DD4E8, #D426D9);
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(212, 38, 217, 0.35);
}
.btn-nav:hover { box-shadow: 0 0 28px rgba(212, 38, 217, 0.6); }

/* ---------- Hero (video scrub) ---------- */
.hero {
  height: 200vh;
  position: relative;
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px);
  transform: scale(1.06);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 39, 0.8);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  will-change: transform;
}
.hero-logo {
  width: min(200px, 30vw);
  mix-blend-mode: screen;
  animation: glowPulse 5s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(circle, black 50%, transparent 70%);
  mask-image: radial-gradient(circle, black 50%, transparent 70%);
}
.hero-title {
  margin: 8px 0 0;
  font-size: clamp(34px, 5.2vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 900px;
  text-shadow: 0 0 30px rgba(45, 212, 232, 0.45);
}
.text-gradient {
  background: linear-gradient(90deg, #2DD4E8, #D426D9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  margin: 22px 0 0;
  font-size: clamp(16px, 1.6vw, 21px);
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  letter-spacing: 0.12em;
  animation: bounceDown 2.2s ease-in-out infinite;
}
@media (max-height: 620px) {
  .scroll-hint { display: none; }
}

/* ---------- Secciones ---------- */
.section {
  padding: 90px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
}
.section-intro {
  margin: 18px auto 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
  font-size: 17px;
  line-height: 1.6;
}
.accent-cyan { color: #2DD4E8; }
.accent-magenta { color: #D426D9; }

/* ---------- El problema ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
  text-align: left;
}
.pain-card {
  background: #111736;
  border: 1px solid rgba(45, 212, 232, 0.14);
  border-radius: 18px;
  padding: 32px;
}
.pain-card h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: #2DD4E8;
  letter-spacing: 0.08em;
}
.pain-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  font-size: 16px;
}
.pain-closing {
  margin: 52px auto 0;
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  line-height: 1.5;
  font-weight: 500;
  text-align: center;
}

/* ---------- Servicios ---------- */
.service-group { margin-top: 64px; }
.service-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.service-group-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(90deg, #2DD4E8, #D426D9);
  box-shadow: 0 0 12px rgba(45, 212, 232, 0.7);
}
.service-group-header h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 26px;
}
.service-card {
  background: #111736;
  border: 1px solid rgba(59, 111, 212, 0.22);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s, transform 0.25s;
}
.service-card:hover {
  border-color: rgba(45, 212, 232, 0.55);
  transform: translateY(-3px);
}
.service-card h4 {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
}
.service-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.service-card .card-link {
  font-size: 14.5px;
  font-weight: 600;
  color: #2DD4E8;
}
.service-card .card-link:hover { color: #D426D9; }

/* ---------- Banner a medida ---------- */
.banner-wrap { padding: 70px 24px; max-width: 1148px; margin: 0 auto; }
.banner-border {
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(90deg, #2DD4E8, #7B3FE4, #D426D9);
}
.banner-inner {
  border-radius: 22px;
  background: #0A0E27;
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
}
.banner-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #2DD4E8;
  margin-bottom: 16px;
}
.banner-inner h2 {
  margin: 0 auto;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  max-width: 760px;
}
.banner-inner p {
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
  font-size: 17px;
  line-height: 1.6;
}
.banner-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.banner-actions .btn { padding: 15px 32px; font-size: 16px; }

/* ---------- Cómo trabajamos ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.step {
  text-align: center;
  padding: 0 12px;
}
.step-number {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #0A0E27;
}
.step-1 { background: linear-gradient(135deg, #2DD4E8, #3B6FD4); box-shadow: 0 0 24px rgba(45, 212, 232, 0.4); }
.step-2 { background: linear-gradient(135deg, #3B6FD4, #7B3FE4); box-shadow: 0 0 24px rgba(123, 63, 228, 0.4); }
.step-3 { background: linear-gradient(135deg, #7B3FE4, #D426D9); box-shadow: 0 0 24px rgba(212, 38, 217, 0.4); color: #FFFFFF; }
.step h3 {
  margin: 22px 0 10px;
  font-size: 20px;
  font-weight: 600;
}
.step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq-section { max-width: 820px; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 48px;
}
.faq-item {
  background: #111736;
  border: 1px solid rgba(59, 111, 212, 0.22);
  border-radius: 14px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  text-align: left;
}
.faq-icon {
  color: #2DD4E8;
  font-size: 20px;
  flex-shrink: 0;
}
.faq-answer {
  display: none;
  margin: 0;
  padding: 0 24px 22px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15.5px;
  line-height: 1.65;
}
.faq-item.open .faq-answer { display: block; }

/* ---------- Presupuesto / CTA final ---------- */
.cta-section {
  padding: 90px 24px 110px;
  background: linear-gradient(180deg, #0A0E27 0%, #111736 100%);
}
.cta-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: start;
}
.cta-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.12;
}
.cta-copy > p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.65;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}
.contact-item:hover { color: #2DD4E8; }
.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(45, 212, 232, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Formulario */
.quote-form {
  background: #0A0E27;
  border: 1px solid rgba(45, 212, 232, 0.2);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.quote-form .form-title {
  font-weight: 700;
  font-size: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.quote-form input,
.quote-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 13px 16px;
  color: #FFFFFF;
  font-size: 15px;
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
  min-width: 0;
}
.quote-form input:focus,
.quote-form textarea:focus { border-color: #2DD4E8; }
.quote-form textarea { resize: vertical; }
.form-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
}
.chip.selected {
  background: linear-gradient(90deg, rgba(45, 212, 232, 0.25), rgba(212, 38, 217, 0.25));
  color: #FFFFFF;
  border-color: #2DD4E8;
}
.form-submit {
  padding: 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, #2DD4E8, #D426D9);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 16.5px;
  font-family: 'Space Grotesk', sans-serif;
  box-shadow: 0 0 22px rgba(212, 38, 217, 0.35);
  transition: box-shadow 0.25s;
}
.form-submit:hover { box-shadow: 0 0 36px rgba(212, 38, 217, 0.65); }
.form-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  padding: 36px 32px;
  border-top: 1px solid rgba(45, 212, 232, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  background: #0A0E27;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.footer-brand span {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
}
.footer-links a { color: rgba(255, 255, 255, 0.6); }
.footer-links a:hover { color: #2DD4E8; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 100;
  max-width: 680px;
  margin: 0 auto;
  background: #111736;
  border: 1px solid rgba(45, 212, 232, 0.3);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.cookie-banner.hidden { display: none; }
.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 240px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-reject {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: none;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.cookie-reject:hover { border-color: rgba(255, 255, 255, 0.5); }
.cookie-accept {
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #2DD4E8, #D426D9);
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(212, 38, 217, 0.35);
}
.cookie-accept:hover { box-shadow: 0 0 26px rgba(212, 38, 217, 0.6); }

/* ---------- Páginas legales ---------- */
.legal-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 150px 24px 100px;
  font-size: 16px;
  line-height: 1.7;
}
.legal-main h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
}
.legal-sub {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14.5px;
}
.legal-main h2 {
  margin: 52px 0 16px;
  font-size: 26px;
  font-weight: 600;
}
.legal-main h3 {
  margin: 28px 0 12px;
  font-size: 19px;
  font-weight: 600;
  color: #2DD4E8;
}
.legal-main p { margin: 0 0 14px; color: rgba(255, 255, 255, 0.75); }
.legal-main ul {
  margin: 0 0 14px;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.75);
  display: grid;
  gap: 8px;
}
.legal-main strong { color: #FFFFFF; }
.legal-highlight {
  margin: 20px 0;
  padding: 20px 26px;
  background: rgba(45, 212, 232, 0.07);
  border-left: 3px solid #2DD4E8;
  border-radius: 0 12px 12px 0;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  font-size: 15.5px;
}
.legal-datos {
  background: #111736;
  border: 1px solid rgba(45, 212, 232, 0.18);
  border-radius: 14px;
  padding: 24px 28px;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
}
.legal-table-wrap { overflow-x: auto; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.78);
}
.legal-table th {
  text-align: left;
  padding: 12px 14px;
  background: #111736;
  border: 1px solid rgba(45, 212, 232, 0.18);
  color: #2DD4E8;
}
.legal-table td {
  padding: 12px 14px;
  border: 1px solid rgba(45, 212, 232, 0.12);
  vertical-align: top;
}
.legal-table td:first-child {
  font-weight: 600;
  color: #FFFFFF;
}
.legal-footer-note {
  margin: 56px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(45, 212, 232, 0.15);
  text-align: center;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}
.legal-updated {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav { padding: 12px 18px; }
  .nav-links { gap: 16px; font-size: 13.5px; }
  .nav-links .nav-hide-mobile { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 70px 18px; }
  .cta-section { padding: 70px 18px 90px; }
}
