:root {
  --bg: #06101b;
  --white: #ffffff;
  --text: #dce8f5;
  --muted: #bdd0df;
  --primary: #59d9c2;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(89, 217, 194, 0.34);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  --container: 1180px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: #f7caaa;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(4, 13, 24, 0.04);
  backdrop-filter: blur(4px);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  height: 130px;
  width: auto;
  padding-top: 5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #F8F9FA;
  font-weight: 600;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
}

.site-nav a {
  opacity: 0.95;
}

.site-nav a:hover {
  color: var(--primary);
}

/* Hamburguesa dentro de cuadrado */
.menu-toggle {
  display: none;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #D4AF37;
  border-radius: 999px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  background-image: url("assets/img/agenciamarketingdigitalQhikaDigital11.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  transform: scale(1.08);
  filter: brightness(0.78) saturate(1.04);
}

.hero-video-desktop {
  display: block;
}

.hero-video-mobile {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(3, 11, 22, 0.26), rgba(3, 11, 22, 0.78)),
    radial-gradient(circle at center, rgba(89, 217, 194, 0.05), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 135px;
  padding-bottom: 42px;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 6rem);
  line-height: 1.02;
  font-family: Georgia, "Times New Roman", serif;
  max-width: none;
  color: #f7caaa;
}

.hero-mini-title {
  margin: 15px 0 0;
  color: #F8F9FA;
  font-size: clamp(1.4rem, 2.6vw, 2.5rem);
  font-weight: 500;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.15;
}

.hero-text {
  margin: 40px auto 0;
  max-width: 60ch;
  color: #f7caaa;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  font-weight: 500;
  font-family: Arial, Helvetica, sans-serif;
}

/* Cards transparentes */
.hero-services {
  width: min(100%, 980px);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(7, 20, 38, 0.08);
  border: 1px solid rgba(89, 217, 194, 0.28);
  border-radius: var(--radius);
  padding: 28px 24px;
  backdrop-filter: blur(5px);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(89, 217, 194, 0.5);
  background: rgba(7, 20, 38, 0.26);
}

.service-card-main-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  color: inherit;
}

.service-icon {
  font-size: 4.4rem;
  padding-top: 0px;
  line-height: 1;
  margin-bottom: 20px;
  color: #D4AF37;
}

/* COLORES DE ICONOS - TARJETAS DESKTOP */
.service-card[href="diseno-web-profesional.html"] .service-icon {
  color: #8A9A5B;
}

.service-card[href="campanas-y-seo.html"] .service-icon {
  color: #D4AF37;
}

.service-card[href="redes-y-contenidos.html"] .service-icon {
  color: #0090C1;
}

.service-card[href="libros-amazon.html"] .service-icon {
  color: #f74545;
}

/* COLORES DE ICONOS - CUBO MOBILE */
.cube-face[href="diseno-web-profesional.html"] .service-icon {
  color: #8A9A5B;
}

.cube-face[href="campanas-y-seo.html"] .service-icon {
  color: #D4AF37;
}

.cube-face[href="redes-y-contenidos.html"] .service-icon {
  color: #0090C1;
}

.cube-face[href="libros-amazon.html"] .service-icon {
  color: #FF0000;
}

.service-card h5 {
  margin: 0;
  color: var(--white);
  font-size: 1.42rem;
  line-height: 1.18;
  color: #F7D1B5;
  font-family: Georgia, "Times New Roman", serif;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
  max-width: 28ch;
}

/* Se oculta el antiguo botón */
.service-link {
  display: none;
}

/* Tablet */
@media (max-width: 991px) {
  .site-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 4%;
    background: rgba(5, 14, 24, 0.97);
    border-top: none;
  }

  .site-nav.active {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    background-image: url("assets/img/agenciamarketingdigitalQhikaDigital9.jpg");
    background-position: center center;
  }

  .hero-video-desktop {
    display: none;
  }

  .hero-video-mobile {
    display: block;
    transform: scale(1.14);
    object-position: center center;
    filter: brightness(0.72) saturate(1.02);
  }

  .hero-overlay {
    background:
      linear-gradient(to bottom, rgba(4, 13, 24, 0.44), rgba(4, 13, 24, 0.84)),
      radial-gradient(circle at center, rgba(89, 217, 194, 0.04), transparent 38%);
  }

  .hero-content {
    min-height: 100svh;
    padding-top: 118px;
    padding-bottom: 34px;
  }

  .hero-content h1 {
    font-size: clamp(2.6rem, 10vw, 3.2rem);
    line-height: 1.0;
    margin-top: 2px;
    font-family: Georgia, "Times New Roman", serif;
    color: #f7caaa;
  }

  .hero-mini-title {
    margin-top: 14px;
    font-size: 17px;
    font-family: Arial, Helvetica, sans-serif;
    color: #F8F9FA;
  }

  .hero-text {
    max-width: 50ch;
    margin: 18px auto 0;
    font-size: 19px;
    line-height: 1.2;
    font-family: Arial, Helvetica, sans-serif;
    color: #f7caaa;
    text-align: center;
    margin-top: 90px;
  }

  .hero-services {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }

  .service-card {
    padding: 16px;
    border-radius: 30px;
    background: rgba(7, 20, 38, 0.14);
  }

  .service-card h5 {
    font-size: 20px;
    color: #F7D1B5;
    font-family: Georgia, "Times New Roman", serif;
  }

  .service-card p {
    font-size: 0.90rem;
    max-width: 26ch;
  }

  .service-link {
    display: none;
  }

  .brand-logo {
    height: 64px;
    margin-top: 5px;
  }

  .nav {
    min-height: 76px;
  }

  .menu-toggle {
    width: 50px;
    height: 50px;
    border-radius: 20px;
  }
}

/* ===== CUBO DE SERVICIOS | SOLO MOBILE/TABLET ===== */

.service-cube-wrap {
  display: none;
}

@media (max-width: 991px) {
  .hero-services-desktop {
    display: none;
  }

  .service-cube-wrap {
    display: block;
    width: 100%;
    height: 195px;
    margin-top: 35px;
    perspective: 999px;
  }

  .service-cube {
    position: relative;
    width: min(100vw, 295px);
    height: 195px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 0.7s ease;
  }

  .cube-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: rgba(7, 20, 38, 0.18);
    border: 1px solid rgba(89, 217, 194, 0.32);
    border-radius: 22px;
    backdrop-filter: blur(6px);
    text-decoration: none;
    color: #F7D1B5;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  }

  .cube-face span {
    font-size: 2.2rem;
    color: #F7D1B5;
    margin-bottom: 18px;
  }

  .cube-face h5 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
    text-align: center;
  }

  .cube-front {
    transform: rotateY(0deg) translateZ(150px);
  }

  .cube-right {
    transform: rotateY(90deg) translateZ(150px);
  }

  .cube-back {
    transform: rotateY(180deg) translateZ(150px);
  }

  .cube-left {
    transform: rotateY(-90deg) translateZ(150px);
  }

  .cube-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 45px;
  }

  .cube-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    padding: 0;
  }

  .cube-dot.active {
    width: 26px;
    background: rgba(89, 217, 194, 0.95);
  }

  .service-cube {
    touch-action: pan-y;
    transition: transform 0.7s ease;
  }

  .service-vertical-cube {
    touch-action: pan-x;
    transition: transform 0.75s ease;
  }
}

/* ===== QUIENES SOMOS | BASE EDITABLE ===== */

.about {
  position: relative;
  color: var(--text);
  padding-top: 120px;
  min-height: 100vh;
  overflow: hidden;
}

.about-hero {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 60px;
  color: #F8F9FA;
}

.about-kicker {
  color: #EBC06D;
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 10px;
  padding-top: 3px;
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}

.about-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #F7D1B5;
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: 15px;
  padding-top: 0px;
}

@media (min-width: 992px) {
  .about-subtitle-after-cube {
    max-width: 1100px;
    white-space: nowrap;
    font-size: 1.25rem;
  }
}

.about-subtitle {
  font-size: 1.4rem;
  color: #EBC06D;
  max-width: 700px;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  line-height: 1;
  padding-top: 50px;
}

/* GRID DESKTOP */

.about-grid {
  display: grid;
  gap: 25px;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* TARJETAS */

.about-card {
  background: rgba(7, 20, 38, 0.24);
  border: 1px solid rgba(89, 217, 194, 0.22);
  border-radius: 18px;
  padding: 25px;
  text-align: justify;
  backdrop-filter: blur(4px);
  transition: 0.3s ease;
  font-family: Arial, Helvetica, sans-serif;
}

.about-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.about-card .icon {
  font-size: 48px;
  margin-bottom: 10px;
  color: #D4AF37;
}

.about-card h3 {
  font-size: 1.3rem;
  font-family: Georgia, "Times New Roman", serif;
  color: #F7D1B5;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 1rem;
  color: #F8F9FA;
  line-height: 1.3;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

/* ===== QUIENES SOMOS | FONDO INDEPENDIENTE ===== */

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/img/agenciamarketingdigitalQhikaDigital4.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.about::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    rgba(2, 8, 23, 0.34),
    rgba(2, 8, 23, 0.58)
  );
}

@media (max-width: 991px) {
  .about::before {
    background-attachment: scroll;
  }
}

/* ===== PRISMA 3D QUIENES SOMOS | 5 CARAS | SOLO MOBILE/TABLET ===== */

.about-cube-wrap {
  display: none;
}

@media (max-width: 991px) {
  .about-grid-desktop {
    display: none;
  }

  .about-cube-wrap {
    display: block;
    width: 100%;
    height: 340px;
    margin-top: 64px;
    perspective: 1200px;
  }

  .about-cube {
    position: relative;
    width: min(88vw, 390px);
    height: 230px;
    margin: 0 auto;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.85s ease;
    touch-action: pan-y;
  }

  .about-cube-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;

    background: rgba(7, 20, 38, 0.64);
    border: 1px solid rgba(89, 217, 194, 0.34);
    border-radius: 22px;
    padding: 24px;
    backdrop-filter: blur(6px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
    color: #dce8f5;
    backface-visibility: hidden;

    transform-origin: center center;
    -webkit-font-smoothing: antialiased;
  }

  .about-cube-face .icon {
    font-size: 50px;
    margin-bottom: 10px;
    color: #D4AF37;
    text-align: center;
  }

  .about-cube-face h3 {
    margin: 0 0 15px;
    font-family: Georgia, "Times New Roman", serif;
    color: #F7D1B5;
    font-size: 1.35rem;
  }

  .about-cube-face p {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.2;
    color: #F8F9FA;
    text-align: justify;
    text-shadow: none;
    filter: none;
  }

  .about-cube-face-1 {
    transform: rotateY(0deg) translateZ(170px);
  }

  .about-cube-face-2 {
    transform: rotateY(72deg) translateZ(170px);
  }

  .about-cube-face-3 {
    transform: rotateY(144deg) translateZ(170px);
  }

  .about-cube-face-4 {
    transform: rotateY(216deg) translateZ(170px);
  }

  .about-cube-face-5 {
    transform: rotateY(288deg) translateZ(170px);
  }

  .about-cube-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
  }

  .about-cube-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    padding: 0;
  }

  .about-cube-dot.active {
    width: 26px;
    background: rgba(89, 217, 194, 0.95);
  }
}

/* AJUSTE MÓVIL */

@media (max-width: 768px) {
  .about {
    padding-top: 110px;
  }

  .about-hero {
    margin-bottom: 28px;
  }

  .about-kicker {
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    padding-top: 1px;
  }

  .about-title {
    font-size: 30px;
    line-height: 1;
    padding-top: 0px;
    font-family: Georgia, "Times New Roman", serif;
    color: #f7caaa;
  }

  .about-subtitle {
    font-size: 1.2rem;
    max-width: 92%;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    color: #f7caaa;
  }

  .about-subtitle {
    font-size: 0.88rem;
    color: #F7D1B5;
    max-width: 700px;
    margin: 0.5rem auto;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    line-height: 1.2;
    padding-top: 0px;
  }

  .about-cube-wrap {
    height: 300px;
  }

  .about-cube {
    width: min(88vw, 280px);
    height: 230px;
  }

  .about-cube-face {
    background: rgba(7, 20, 38, 0.58);
    backdrop-filter: none;
  }

  .about-cube-face-1 {
    transform: rotateY(0deg) translateZ(196px);
  }

  .about-cube-face-2 {
    transform: rotateY(72deg) translateZ(196px);
  }

  .about-cube-face-3 {
    transform: rotateY(144deg) translateZ(196px);
  }

  .about-cube-face-4 {
    transform: rotateY(216deg) translateZ(196px);
  }

  .about-cube-face-5 {
    transform: rotateY(288deg) translateZ(196px);
  }
}

/* ===== CONTACTO ===== */

.contact-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding-top: 120px;
  overflow: hidden;
}

.contact-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/img/agenciamarketingdigitalQhikaDigital4.jpg") center center / cover no-repeat;
  background-attachment: fixed;
}

.contact-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(2, 8, 23, 0.40), rgba(2, 8, 23, 0.68));
}

.contact-hero {
  padding: 40px 0 80px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.contact-copy {
  text-align: left;
}

.contact-kicker {
  margin: 0 0 12px;
  color: #EBC06D;
  font-size: 44px;
  letter-spacing: 2px;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

.contact-title {
  margin: 0 0 18px;
  font-size: 55px;
  line-height: 1.2;
  color: #f7caaa;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  padding-top: 0px;
  text-align: center;
}

.contact-subtitle {
  margin: 0;
  max-width: 32ch;
  color: #dce8f5;
  font-size: 1.08rem;
  line-height: 1.7;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.contact-form-futurist {
  background: rgba(7, 20, 38, 0.20);
  border: 1px solid rgba(89, 217, 194, 0.28);
  border-radius: 22px;
  padding: 30px;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.field label {
  color: #F7D1B5;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(89, 217, 194, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #F8F9FA;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  outline: none;
  backdrop-filter: blur(6px);
}

.field input::placeholder {
  color: rgba(220, 232, 245, 0.72);
}

.field select option {
  color: #06101b;
}

.field input:focus,
.field select:focus {
  border-color: rgba(89, 217, 194, 0.6);
  box-shadow: 0 0 0 3px rgba(89, 217, 194, 0.10);
}

.contact-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(89, 217, 194, 0.38);
  border-radius: 999px;
  background: rgba(89, 217, 194, 0.10);
  color: #F7D1B5;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.contact-submit:hover {
  background: rgba(89, 217, 194, 0.18);
  border-color: rgba(89, 217, 194, 0.60);
  transform: translateY(-2px);
}

.contact-socials {
  grid-column: 1 / -1;
  margin-top: 10px;
  text-align: center;
}

.contact-socials-title {
  margin: 0 0 16px;
  color: #EBC06D;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.contact-socials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.contact-socials-grid a {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(89, 217, 194, 0.30);
  background: rgba(255, 255, 255, 0.04);
  color: #F8F9FA;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  transition: 0.25s ease;
}

.contact-socials-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(89, 217, 194, 0.60);
  background: rgba(89, 217, 194, 0.10);
  color: #F7D1B5;
}

@media (max-width: 991px) {
  .contact-page::before {
    background-attachment: scroll;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .contact-page {
    padding-top: 110px;
  }

  .contact-kicker {
    margin: 0 0 12px;
    color: #EBC06D;
    font-size: 38px;
    letter-spacing: 2px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
  }

  .contact-title {
    font-size: clamp(2.1rem, 8vw, 3rem);
    font-family: Georgia, "Times New Roman", serif;
    text-align: center;
    padding-top: 0px;
    line-height: 1.1;
    color: #f7caaa;
  }

  .contact-subtitle {
    max-width: 100%;
    font-size: 1rem;
  }

  .contact-form-futurist {
    padding: 22px;
    border-radius: 18px;
  }

  .contact-socials {
    margin-top: 4px;
  }

  .contact-socials-grid {
    gap: 12px;
  }

  .contact-socials-grid a {
    width: 48px;
    height: 48px;
    font-size: 1.05rem;
  }
}

/* ===== DISENO WEB PROFESIONAL ===== */

html,
body {
  width: 100%;
  overflow-x: hidden;
}

.service-page,
.service-web-page {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: var(--text);
  isolation: isolate;
}

.service-web-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    url("assets/img/agenciamarketingdigitalQhikaDigital1.jpg.jpg")
    center center / cover no-repeat;
}

.service-web-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    rgba(2, 8, 23, 0.62),
    rgba(2, 8, 23, 0.86)
  );
}

.service-binary-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

#binaryRainCanvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.72;
}

.service-section {
  position: relative;
  z-index: 3;
  padding: 40px 0;
}

.service-web-hero {
  padding-top: 145px;
  padding-bottom: 35px;
}

.service-section-kicker {
  margin: 1px 0 20px;
  color: #EBC06D;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.service-carousel-title {
  margin: 0 0 0px;
  color: #F7D1B5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 4.5vw, 4rem);
  line-height: 1.0;
  font-weight: 800;
  text-align: center;
}

.service-carousel-intro {
  margin: 0;
  max-width: 62ch;
  color: #dce8f5;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  line-height: 1.7;
}

/* ===== TARJETAS PC / CUBO MOBILE ===== */

.service-vertical-cube-wrap {
  width: 100%;
  margin-top: 42px;
  position: relative;
}

.service-vertical-cube {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-vertical-face {
  background: rgba(7, 20, 38, 0.64);
  border: 1px solid rgba(89, 217, 194, 0.34);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 38px 38px rgba(0, 0, 0, 0.24);
}

.service-vertical-face h2 {
  margin: 0 0 18px;
  color: #F7D1B5;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.5rem, 1vw, 2rem);
  line-height: 1;
  text-align: center;
}

.service-list {
  margin: 0;
  padding-left: 20px;
  color: #dce8f5;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
  text-align: left;
}

.service-list li + li {
  margin-top: 5px;
}

.service-vertical-dots {
  display: none;
}

/* ===== CTA ===== */

.service-cta {
  position: relative;
  z-index: 3;
  padding-top: 0px;
  padding-bottom: 0px;
}

.service-cta-box {
  max-width: 760px;
}

.service-cta-box h2 {
  margin: -30px 0 0px;
  color: #EBC06D;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.7rem);
  line-height: 1.08;
  padding-top: -10px;
}

.service-cta-box p {
  margin: 0;
  max-width: 60ch;
  color: #dce8f5;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.5rem;
  line-height: 1.65;
}

.service-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  padding: 16px 34px;
  border-radius: 999px;
  border: 1px solid rgba(89, 217, 194, 0.48);
  background: rgba(89, 217, 194, 0.16);
  color: #EBC06D;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s ease;
}

.service-contact-button:hover {
  transform: translateY(-2px);
  background: rgba(89, 217, 194, 0.24);
  border-color: rgba(89, 217, 194, 0.72);
}

.service-contact-button {
  display: none;
}

@media (max-width: 991px) {
  .service-contact-button {
    display: inline-flex;
  }
}

/* ===== MOBILE / TABLET: CUBO VERTICAL ===== */

@media (max-width: 991px) {
  .service-web-hero {
    padding-top: 125px;
  }

  .service-vertical-cube-wrap {
    height: 430px;
    perspective: 1200px;
  }

  .service-vertical-cube {
    display: block;
    position: relative;
    width: min(88vw, 370px);
    height: 300px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 0.85s ease;
    will-change: transform;
  }

  .service-vertical-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backface-visibility: hidden;
  }

  .service-vertical-face-1 {
    transform: rotateX(0deg) translateZ(170px);
  }

  .service-vertical-face-2 {
    transform: rotateX(-120deg) translateZ(170px);
  }

  .service-vertical-face-3 {
    transform: rotateX(-240deg) translateZ(170px);
  }

  .service-vertical-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 35px;
  }

  .service-vertical-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    padding: 0;
    cursor: pointer;
    transition: 0.25s ease;
  }

  .service-vertical-dot.active {
    width: 28px;
    background: rgba(89, 217, 194, 0.95);
  }
}

@media (max-width: 768px) {
  .service-section {
    padding: 28px 0;
  }

  .service-web-hero {
    padding-top: 99px;
  }

  .service-carousel-title {
    font-size: 2rem;
    line-height: 1;
  }

  .service-section-kickerr {
    margin: 0 0 20px;
    color: #EBC06D;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.80rem;
    letter-spacing: 0.04em;
  }

  .service-carousel-intro {
    font-size: 0.1rem;
    line-height: 1.65;
  }

  .service-vertical-cube-wrap {
    height: 400px;
    margin-top: 58px;
  }

  .service-vertical-cube {
    width: min(80vw, 310px);
    height: 300px;
  }

  .service-vertical-face {
    padding: 12px;
    background: rgba(7, 20, 38, 0.68);
    backdrop-filter: none;
  }

  .service-vertical-face h2 {
    font-size: clamp(1.2rem, 6vw, 2rem);
    font-family: Georgia, "Times New Roman", serif;
    text-align: center;
  }

  .service-list {
    font-size: 0.80rem;
    line-height: 1.2;
  }

  .service-vertical-face-1 {
    transform: rotateX(0deg) translateZ(170px);
  }

  .service-vertical-face-2 {
    transform: rotateX(-120deg) translateZ(170px);
  }

  .service-vertical-face-3 {
    transform: rotateX(-240deg) translateZ(170px);
  }

  .service-vertical-dots {
    margin-top: 48px;
  }

  #binaryRainCanvas {
    opacity: 0.58;
  }

  .service-cta {
    padding-bottom: 70px;
  }

  .service-cta-box {
    width: calc(100vw - 40px);
    margin: 0 auto;
  }
}

/* ===== SEO + CAMPANAS DIGITALES ===== */

.service-seo-page {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: var(--text);
  isolation: isolate;
}

.service-seo-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    url("assets/img/agenciamarketingdigitalQhikaDigital1.jpg.jpg")
    center center / cover no-repeat;
}

.service-seo-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    rgba(2, 8, 23, 0.62),
    rgba(2, 8, 23, 0.86)
  );
}

/* ===== REDES SOCIALES + CONTENIDOS ===== */

.service-social-page {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: var(--text);
  isolation: isolate;
}

.service-social-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    url("assets/img/agenciamarketingdigitalQhikaDigital1.jpg.jpg")
    center center / cover no-repeat;
}

.service-social-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    rgba(2, 8, 23, 0.62),
    rgba(2, 8, 23, 0.86)
  );
}

/* ===== FORMATEO PROFESIONAL DE LIBROS PARA AMAZON ===== */

.service-amazon-page {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: var(--text);
  isolation: isolate;
}

.service-amazon-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    url("assets/img/agenciamarketingdigitalQhikaDigital1.jpg.jpg")
    center center / cover no-repeat;
}

.service-amazon-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    rgba(2, 8, 23, 0.62),
    rgba(2, 8, 23, 0.86)
  );
}

/* EFECTO PROFUNDIDAD GLOBAL: VIDEO FIJO + CONTENIDO EN SCROLL */
.hero-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center center;
  z-index: -3;
  transform: translateZ(0);
}

.service-binary-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

#binaryRainCanvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.72;
}

.hero-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.hero,
.service-page,
.service-section,
.service-cta {
  background: transparent !important;
}

.hero-content,
.service-section .container,
.service-cta .container {
  position: relative;
  z-index: 3;
}

body {
  background: #020817;
}

/* BOTÓN DE MÚSICA AMBIENTAL */
.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(89, 217, 194, 0.42);
  background: rgba(7, 20, 38, 0.52);
  color: #F7D1B5;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-toggle:hover {
  border-color: rgba(89, 217, 194, 0.8);
  background: rgba(7, 20, 38, 0.72);
}

.music-toggle.is-playing {
  color: #59d9c2;
}

.music-toggle {
  position: fixed;
  right: 22px;
  bottom: 28px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(89, 217, 194, 0.65);
  background: rgba(2, 8, 23, 0.62);
  color: #f7d1b5;
  font-size: 1.35rem;
  z-index: 9999;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 18px rgba(89, 217, 194, 0.18);
}

.music-toggle.active {
  background: rgba(89, 217, 194, 0.18);
  color: #59d9c2;
}