:root {
  --nav-h: 78px;
  --white: #FFFFFF;
  --paper: #FFF6FB;
  --paper-y: #FFFBF0;
  --ink: #1B1424;
  --ink-soft: #726C80;
  --pink: #FF3E9D;
  --pink-deep: #E0208A;
  --yellow: #FFD23D;
  --purple: #8B2FE0;
  --orange: #FF7A3D;
  --line: rgba(27, 20, 36, 0.1);
  --gradient: linear-gradient(90deg, #8B2FE0 0%, #FF3E9D 55%, #FF7A3D 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

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

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.grad-text {
  background-image: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 9px;
  background: var(--pink);
  display: inline-block;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.6);
    opacity: 0.5;
  }
}

h1,
h3 {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 600px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  border: 1.5px solid transparent;
  background-image: linear-gradient(var(--ink), var(--ink)), var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  animation: pulse-btn-border 1.6s infinite ease-in-out;
}

.btn-primary:hover {
  animation: none;
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 62, 157, 0.45);
}

.btn-primary:active {
  animation: none;
}

@keyframes pulse-btn-border {
  0%, 100% {
    box-shadow: 0 0 0 0px rgba(255, 62, 157, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 14px 4px rgba(255, 62, 157, 0.7);
    transform: scale(1.025);
  }
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

.btn .play-ico {
  width: 9px;
  height: 9px;
  background: currentColor;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  flex-shrink: 0;
}

/* NAV */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

/* Blur glass effect on pseudo-element so header doesn't create a
   stacking context — this lets mix-blend-mode work on child elements */
header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: -1;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

/* Logo image (transparent PNG) */
.logo-img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
  background: transparent;
}

/* Footer version — inverted to white */
.logo-img-white {
  filter: invert(1) brightness(2);
  height: 24px;
  background: transparent;
}

/* Ensure logo containers have no background */
.logo,
.footer-logo {
  background: transparent;
}

.logo .dot-play {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo .dot-play span {
  width: 7px;
  height: 8px;
  background: var(--white);
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 14.5px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--pink);
  transition: width .25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

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

.mobile-cta-btn {
  display: none !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  justify-content: space-between;
  width: 34px;
  height: 28px;
  z-index: 1001;
}

.mobile-menu-btn .bar {
  width: 100%;
  height: 2.5px;
  background: var(--ink);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-menu-btn.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 880px) {
  .nav-cta {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a:not(.mobile-cta-btn) {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
  }

  .mobile-cta-btn {
    display: inline-flex !important;
    font-size: 16.5px;
    font-weight: 700;
    padding: 16px 32px;
    margin-top: 14px;
    width: 85%;
    max-width: 290px;
    justify-content: center;
    border-radius: 99px;
    background: var(--gradient) !important;
    color: var(--white) !important;
    box-shadow: 0 10px 25px rgba(220, 32, 138, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  }

  .mobile-cta-btn:active {
    transform: scale(0.96);
  }
}

/* SCROLL STORY: hero -> somos */
.scroll-story {
  position: relative;
  height: 280vh;
  padding: 0;
}

.story-stage {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
  background: var(--white);
}

.stage-inner {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero-text {
  position: absolute;
  left: 50%;
  top: 44px;
  width: 100%;
  max-width: 720px;
  text-align: center;
  padding: 0 24px;
}

.hero-text h1 {
  font-size: clamp(38px, 6.4vw, 82px);
  margin-top: 0;
  font-weight: 600;
}

.hero-sub {
  max-width: 460px;
  margin: 20px auto 0;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.5;
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

.somos-text {
  position: absolute;
  left: 0;
  top: 50%;
  width: 46%;
  min-width: 280px;
  max-width: 495px;
}

.somos-text .eyebrow {
  margin-bottom: 16px;
}

.somos-text h2 {
  font-size: 37px;
  font-weight: 600;
}

.somos-text p.support {
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.6;
  color: #000000;
  font-weight: 500;
}

.deck {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
}

.card {
  position: absolute;
  left: 0;
  top: 0;
  box-shadow: 0 24px 46px -18px rgba(27, 20, 36, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  will-change: transform;
  overflow: visible;
  border-radius: 28px;
  background: #eaeaea;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 27px;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Burbujas de diálogo del collage */
.speech-bubble {
  position: absolute;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(27, 20, 36, 0.18);
  z-index: 10;
  pointer-events: none;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  border-width: 6px;
  border-style: solid;
}

/* Colores y posiciones de las burbujas */
.card.c1 .speech-bubble {
  background: var(--purple);
  bottom: 106%;
  left: 10%;
}

.card.c1 .speech-bubble::after {
  top: 100%;
  left: 22px;
  border-color: var(--purple) transparent transparent transparent;
}

.card.c2 .speech-bubble.bubble-orange {
  background: var(--orange);
  bottom: 106%;
  left: 35%;
}

.card.c2 .speech-bubble.bubble-orange::after {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-color: var(--orange) transparent transparent transparent;
}

.card.c2 .speech-bubble.bubble-black {
  background: var(--ink);
  top: 106%;
  left: 15%;
}

.card.c2 .speech-bubble.bubble-black::after {
  bottom: 100%;
  left: 24px;
  border-color: transparent transparent var(--ink) transparent;
}

.card.c4 .speech-bubble.bubble-green {
  background: #50B486;
  bottom: 106%;
  right: 10%;
}

.card.c4 .speech-bubble.bubble-green::after {
  top: 100%;
  right: 22px;
  border-color: #50B486 transparent transparent transparent;
}

/* Tamaños de las tarjetas asimétricas del collage */
.c1 {
  width: 270px;
  height: 350px;
  margin-left: -135px;
  margin-top: -175px;
}

.c2 {
  width: 360px;
  height: 300px;
  margin-left: -180px;
  margin-top: -150px;
}

.c3 {
  width: 250px;
  height: 350px;
  margin-left: -125px;
  margin-top: -175px;
}

.c4 {
  width: 230px;
  height: 320px;
  margin-left: -115px;
  margin-top: -160px;
}

.float-badge {
  position: absolute;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 100px;
  box-shadow: 0 14px 26px -10px rgba(27, 20, 36, 0.3);
  white-space: nowrap;
  z-index: 5;
}

.badge-2 {
  background: var(--yellow);
  color: var(--ink);
  right: 6%;
  top: 24%;
}

/* Mobile Scroll Hint - Hidden on Desktop */
.mobile-scroll-hint {
  display: none !important;
}

@media (max-width: 900px) {
  .somos-text {
    width: 90%;
    max-width: 460px;
    left: 50%;
    top: 50%;
    bottom: auto;
    text-align: center;
    padding: 0 16px;
  }

  .somos-text .eyebrow {
    justify-content: center;
  }

  .somos-text h2 {
    font-size: clamp(22px, 5.2vw, 32px);
    line-height: 1.2;
  }

  .somos-text p.support {
    font-size: 14.5px;
    margin-top: 12px;
  }

  .hero-text {
    top: 5%;
  }

  .hero-text h1 {
    font-size: clamp(38px, 11vw, 55px);
    line-height: 1.05;
  }

  .card {
    border-radius: 16px;
  }

  .card img {
    border-radius: 15px;
  }

  .speech-bubble {
    font-size: 10px;
    padding: 6px 12px;
    border-radius: 10px;
  }

  .float-badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .badge-2 {
    top: 26%;
    right: 10%;
  }

  /* Mobile Scroll Hint - Visible on Mobile */
  .mobile-scroll-hint {
    display: flex !important;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 20;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-scroll-hint .hint-text {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background-image: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .mobile-scroll-hint .hint-arrow {
    font-size: 20px;
    font-weight: 900;
    background-image: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: mobile-scroll-bounce 1.4s infinite ease-in-out;
  }

  @keyframes mobile-scroll-bounce {
    0%, 100% {
      transform: translateY(0);
      opacity: 0.85;
    }
    50% {
      transform: translateY(6px);
      opacity: 1;
    }
  }

  .c1 {
    width: 150px;
    height: 200px;
    margin-left: -75px;
    margin-top: -100px;
  }

  .c2 {
    width: 210px;
    height: 180px;
    margin-left: -105px;
    margin-top: -90px;
  }

  .c3 {
    width: 140px;
    height: 200px;
    margin-left: -70px;
    margin-top: -100px;
  }

  .c4 {
    width: 130px;
    height: 180px;
    margin-left: -65px;
    margin-top: -90px;
  }
}

/* SECTION generic */
section {
  padding: 50px 0;
}

.section-head {
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  margin-top: 14px;
}

/* SERVICIOS */
.servicios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.service-card-container {
  perspective: 1500px;
  height: 560px;
  position: relative;
  transition: transform .35s ease;
}

.service-card-container:hover {
  transform: translateY(-8px);
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

.service-card-container:hover .service-card-inner,
.service-card-container.flipped .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 26px;
}

.service-card-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.service-card-back {
  z-index: 1;
  transform: rotateY(180deg);
  background: #140d1e;
  color: var(--white);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.service-card-container:nth-child(2) .service-card-back {
  background: linear-gradient(155deg, #1A0E30 0%, #0F071D 100%);
}

.card-brand {
  background: linear-gradient(to bottom, rgba(27, 20, 36, 0.45), rgba(27, 20, 36, 0.9)), url('assets/brand experience.jpeg') center/cover no-repeat !important;
}

.card-digital {
  background: linear-gradient(to bottom, rgba(75, 21, 128, 0.4), rgba(30, 9, 51, 0.95)), url('assets/marketing digital.png') center/cover no-repeat !important;
}

.service-card-container:nth-child(1) .glyph {
  background: var(--pink);
}

.service-card-container:nth-child(2) .glyph {
  background: var(--yellow);
}

.service-card {
  color: var(--white);
  border-radius: 26px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-card .num {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.service-card h3 {
  font-weight: 800;
  font-size: 28px;
  margin-top: 60px;
  letter-spacing: -0.01em;
}

.service-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 380px;
  font-weight: 500;
}

.service-card .glyph {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: 0.12;
}

/* Front card prompt */
.card-prompt {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease;
}

.service-card-container:nth-child(2) .card-prompt {
  color: var(--yellow);
}

.service-card-container:hover .card-prompt span {
  transform: translateX(4px);
  transition: transform 0.25s ease;
}

.service-card-back {
  background: #0c0716;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  padding: 30px;
  overflow: hidden;
  color: var(--white);
  transform: rotateY(180deg);
}

.service-card-container:nth-child(2) .service-card-back {
  background: #0d091a;
}

/* Top Section styles */
.back-top-section {
  display: flex;
  flex-direction: column;
  z-index: 5;
}

.back-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.back-service-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: 0.15em;
}

.service-card-container:nth-child(1) .back-service-label {
  color: #c98eff;
}

.back-slide-indicator {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
}

.back-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.back-desc {
  font-size: 14.5px;
  color: #ffffff;
  line-height: 1.45;
  margin: 0 0 16px 0;
  max-width: 320px;
  font-weight: 500;
}

.btn-conoce-mas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d8ff2b;
  color: #0c0716;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 100px;
  transition: all 0.25s ease;
  width: fit-content;
}

.btn-conoce-mas:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 255, 43, 0.35);
}

.btn-yellow {
  background: var(--yellow);
}

.btn-yellow:hover {
  box-shadow: 0 6px 20px rgba(255, 210, 61, 0.35);
}

/* Bottom Section (Collage Area) */
.back-bottom-section {
  position: relative;
  height: 280px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

/* Glowing back blobs */
.back-glow-blob {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 47, 224, 0.45) 0%, rgba(139, 47, 224, 0) 70%);
  filter: blur(40px);
  z-index: 1;
  top: 10%;
  left: 20%;
  pointer-events: none;
}

.back-glow-blob.glow-orange {
  background: radial-gradient(circle, rgba(255, 122, 61, 0.35) 0%, rgba(255, 122, 61, 0) 70%);
}

/* Dots Grid Graphic */
.back-dots-grid {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 100px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.8;
  z-index: 2;
  pointer-events: none;
}

/* Photo Wrapper */
.back-center-img-wrap {
  position: relative;
  width: 190px;
  height: 250px;
  border-radius: 18px;
  border: 2px solid rgba(139, 47, 224, 0.6);
  z-index: 3;
  overflow: visible;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.img-yellow-border {
  border-color: rgba(255, 210, 61, 0.5);
}

.back-center-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* Star badge overlay on photo */
.img-badge-star {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 16px rgba(139, 47, 224, 0.5);
}

.img-badge-star.badge-yellow {
  background: #ffd23d;
  color: #0c0716;
  box-shadow: 0 8px 16px rgba(255, 210, 61, 0.5);
}

/* Mini Cards positioned around the photo */
.mini-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  z-index: 4;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}

.mini-card h4 {
  font-size: 12.5px;
  font-weight: 700;
  margin: 0 0 2px 0;
  color: var(--white);
}

.mini-card p {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.35;
  margin: 0;
  font-weight: 500;
}

.mini-card-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d8ff2b;
  color: #0c0716;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-card-icon.icon-yellow {
  background: var(--yellow);
}

/* Posiciones de las Mini Tarjetas en el canvas */
.mc-1 {
  top: 15px;
  right: -5px;
  width: 175px;
}

.mc-2 {
  bottom: 20px;
  left: -5px;
  width: 170px;
}

.mc-3 {
  bottom: -5px;
  right: 15px;
  width: 175px;
}

/* RESPONSIVE RESPONSIVENESS */
@media (max-width: 1100px) {
  .mc-1 {
    right: -15px;
  }

  .mc-2 {
    left: -15px;
  }

  .mc-3 {
    right: 5px;
  }
}

@media (max-width: 820px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .service-card-container {
    height: auto;
    min-height: 560px;
  }
}

@media (max-width: 580px) {
  .back-bottom-section {
    height: auto;
    min-height: 300px;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
  }

  .back-center-img-wrap {
    width: 120px;
    height: 150px;
  }

  .mini-card {
    position: static;
    width: 100% !important;
  }

  .back-dots-grid {
    display: none;
  }
}

/* TRUSTED */
.trusted {
  background: #f7e7f8;
  padding: 50px 0;
  text-align: center;
}

.trusted .section-head h2 {
  margin-left: auto;
  margin-right: auto;
}

.trusted .section-head {
  text-align: center;
}

.trusted .section-head p {
  color: var(--ink-soft);
  margin-top: 12px;
  font-size: 16px;
  font-weight: 500;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  margin-top: 40px;
}

.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: scroll-left 26s linear infinite;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.brand-logo-item {
  width: 120px;
  height: 48px;
  background-image: url('assets/jr_logos_web.svg');
  background-size: 500% 300%;
  background-repeat: no-repeat;
  opacity: 0.55;
  filter: grayscale(1) brightness(0.25);
  transition: opacity 0.3s ease, filter 0.3s ease;
  flex-shrink: 0;
}

.brand-logo-item:hover {
  opacity: 0.95;
  filter: grayscale(0) brightness(1);
}

/* BANNER & PORTFOLIO */
.banner {
  background: #06020a;
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.banner-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.glow-purple {
  background: radial-gradient(circle, rgba(139, 47, 224, 0.35) 0%, rgba(139, 47, 224, 0) 70%);
  top: -5%;
  left: 5%;
  filter: blur(80px);
}

.glow-orange {
  background: radial-gradient(circle, rgba(255, 122, 61, 0.28) 0%, rgba(255, 122, 61, 0) 70%);
  bottom: 5%;
  right: 5%;
  filter: blur(90px);
}

.banner-header {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 56px;
}

.banner-header h2 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin: 0 auto;
}

.banner-header .eyebrow {
  margin-top: 32px;
  justify-content: flex-start;
}

/* Portfolio Cases Grid */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.cases-right-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
}

.case-card {
  position: relative;
  border-radius: 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: #0e0817;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.45s ease;
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.16);
}

.case-bg {
  position: absolute;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}

.case-card:hover .case-bg {
  transform: scale(1.04);
}

.case-content {
  position: relative;
  z-index: 3;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.case-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 24px;
}

.badge-purple {
  background: var(--purple);
  box-shadow: 0 4px 15px rgba(139, 47, 224, 0.4);
}

.badge-indigo {
  background: #5E1CA2;
  box-shadow: 0 4px 15px rgba(94, 28, 162, 0.4);
}

.badge-orange {
  background: var(--orange);
  box-shadow: 0 4px 15px rgba(255, 122, 61, 0.4);
}

.case-text h3 {
  font-size: 23px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.case-text p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
  font-weight: 500;
}

.case-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--white);
  padding: 8px 18px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  margin-top: 24px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.case-cta-btn:hover {
  background: var(--white);
  color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.case-cta-btn .arrow-circle {
  width: auto;
  height: auto;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: transform 0.3s ease;
}

.case-cta-btn:hover .arrow-circle {
  transform: translateX(3px);
  background: transparent;
  color: inherit;
}

/* Card layout specs */
.case-tall {
  height: 440px;
}

.case-tall .case-bg {
  width: 100%;
  height: 55%;
  bottom: 0;
  left: 0;
}

.case-tall::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #0e0817 0%, #0e0817 40%, rgba(14, 8, 23, 0.65) 65%, rgba(14, 8, 23, 0.1) 100%);
  z-index: 2;
  pointer-events: none;
}

.case-horizontal {
  height: 208px;
  display: flex;
  flex-direction: row;
}

.case-horizontal .case-bg {
  width: 50%;
  height: 100%;
  right: 0;
  top: 0;
}

.case-horizontal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #0e0817 0%, #0e0817 45%, rgba(14, 8, 23, 0.65) 70%, rgba(14, 8, 23, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.case-horizontal .case-content {
  max-width: 55%;
}

/* BOTÓN CONOCE MÁS PROYECTOS Y EXPANDIBLE */
.banner-actions {
  margin-top: 48px;
}

.btn-more-projects {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 99px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(27, 20, 36, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-more-projects:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 40px rgba(139, 47, 224, 0.25);
  border-color: transparent;
}

.btn-more-projects .btn-arrow {
  display: inline-block;
  font-size: 16px;
  transition: transform 0.35s ease;
}

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

.btn-more-projects.is-active .btn-arrow {
  transform: rotate(180deg);
}

.more-cases-wrapper {
  margin-top: 40px;
  animation: slideDownFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cases-grid-extended {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-extended {
  height: 270px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.case-extended .case-bg {
  width: 55%;
  height: 100%;
  right: 0;
  top: 0;
}

.case-extended::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #0e0817 0%, #0e0817 48%, rgba(14, 8, 23, 0.7) 72%, rgba(14, 8, 23, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.case-extended .case-content {
  max-width: 62%;
  padding: 30px 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.case-extended .case-cta-btn {
  margin-top: auto;
}

.case-client-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 6px;
}

/* Responsive grid */
@media (max-width: 900px) {
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-tall {
    height: 380px;
  }

  .case-horizontal {
    height: auto;
    min-height: 220px;
    flex-direction: column;
  }

  .case-horizontal .case-bg {
    width: 100%;
    height: 50%;
    bottom: 0;
    top: auto;
  }

  .case-horizontal::before {
    background: linear-gradient(to bottom, #0e0817 0%, #0e0817 45%, rgba(14, 8, 23, 0.65) 75%, rgba(14, 8, 23, 0) 100%);
  }

  .case-horizontal .case-content {
    max-width: 100%;
  }

  /* Extended Cases Grid Responsive Mobile */
  .cases-grid-extended {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-extended {
    height: auto;
    min-height: 250px;
    flex-direction: column;
  }

  .case-extended .case-bg {
    width: 100%;
    height: 52%;
    bottom: 0;
    top: auto;
    right: 0;
  }

  .case-extended::before {
    background: linear-gradient(to bottom, #0e0817 0%, #0e0817 42%, rgba(14, 8, 23, 0.75) 75%, rgba(14, 8, 23, 0) 100%);
  }

  .case-extended .case-content {
    max-width: 100%;
    padding: 26px 22px;
  }

  .case-extended .case-text h3 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .case-extended .case-text p {
    font-size: 13px;
    line-height: 1.45;
  }

  .case-extended .case-cta-btn {
    margin-top: 18px;
  }
}

#cobertura {
  background: #ffffff;
  padding: 50px 0;
}

/* MAP */
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.map-info-col {
  display: flex;
  flex-direction: column;
}

.map-title {
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 20px;
}

.map-desc {
  font-size: 16.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 600px;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 0;
}

.map-stats {
  display: flex;
  align-items: center;
  gap: 52px;
  margin-top: 48px;
  margin-bottom: 40px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 0.3s;
}

.map-info-col.in .map-stats {
  opacity: 1;
  transform: scale(1);
}

.stat-item {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-item:hover {
  transform: scale(1.08);
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -26px;
  top: 10%;
  height: 80%;
  width: 1.5px;
  background: rgba(27, 20, 36, 0.12);
}

.stat-num {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 0px;
  white-space: nowrap;
}

.map-svg-wrap {
  display: flex;
  justify-content: center;
}

@media (max-width:900px) {
  .map-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .map-info-col {
    text-align: center;
    align-items: center;
  }

  .map-desc {
    margin: 0 auto;
  }

  .map-stats {
    justify-content: center;
    width: 100%;
    margin-top: 24px;
    margin-bottom: 8px;
  }

  .map-cta-btn {
    margin: 0 auto;
  }
}

/* Old footer style removed */

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* CONTACT */
.contacto {
  padding: 0;
  background: var(--white);
}

.contact-card {
  display: flex;
  width: 100%;
  border-radius: 0;
  background: var(--white);
  border: none;
  box-shadow: none;
  overflow: hidden;
  min-height: 600px;
}

/* Left Pane */
.contact-info-pane {
  width: 50%;
  background: radial-gradient(circle at 10% 15%, #E5DCF8 0%, #FFEBE0 50%, #FFFDF5 100%);
  padding: 80px 48px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.info-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.info-pane-header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.logo-text-stack {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
}

.logo-bold {
  font-weight: 800;
  font-size: 17px;
}

.logo-sub {
  font-weight: 700;
  font-size: 9.5px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.contact-badges {
  display: flex;
  gap: 10px;
}

.contact-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-badge-pill svg {
  flex-shrink: 0;
}

.badge-dark {
  background: var(--ink);
  color: var(--white);
}

.badge-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(27, 20, 36, 0.25);
}

.badge-light {
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(27, 20, 36, 0.12);
}

.badge-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(27, 20, 36, 0.1);
}

.info-pane-body {
  margin: 40px 0;
}

.info-pane-body .eyebrow {
  color: var(--purple);
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.info-pane-body h2 {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}

.info-pane-body p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 420px;
  font-weight: 500;
}

.info-pane-footer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.social-links-row {
  display: flex;
  gap: 10px;
}

.social-links-row a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(27, 20, 36, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.social-links-row a:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

/* Right Pane (Form) */
.contact-form-pane {
  width: 50%;
  padding: 80px 80px 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-pane h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: flex;
  gap: 24px;
}

.form-group {
  flex: 1;
}

.form-group input {
  width: 100%;
  padding: 12px 0;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(27, 20, 36, 0.12);
  transition: border-color 0.3s ease;
}

.form-group input::placeholder {
  color: var(--ink-soft);
  opacity: 0.65;
}

.form-group input:focus {
  outline: none;
  border-color: var(--purple);
}

.form-textarea-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-textarea-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-textarea-group textarea {
  width: 100%;
  height: 110px;
  padding: 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border: 1.5px solid rgba(27, 20, 36, 0.12);
  border-radius: 16px;
  resize: none;
  transition: border-color 0.3s ease;
}

.form-textarea-group textarea::placeholder {
  color: var(--ink-soft);
  opacity: 0.6;
}

.form-textarea-group textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 16px;
}

.submit-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-submit-pill {
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 36px;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.btn-submit-pill:hover {
  background: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 62, 157, 0.25);
}

.submit-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(139, 47, 224, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  transition: all 0.25s ease;
}

.submit-wrap:hover .submit-arrow-btn {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
  transform: translateX(4px);
}

.guarantee-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.guarantee-note .purple-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  display: inline-block;
}

/* RESPONSIVE CONTACT */
@media (max-width: 900px) {
  .contacto {
    padding: 50px 0;
  }

  .contact-card {
    flex-direction: column;
    min-height: auto;
  }

  .contact-info-pane,
  .contact-form-pane {
    width: 100%;
    padding: 40px;
  }

  .info-pane-body {
    margin: 30px 0;
  }

  .contact-form-pane h3 {
    margin-bottom: 28px;
    font-size: 22px;
  }
}

@media (max-width: 580px) {

  .contact-info-pane,
  .contact-form-pane {
    padding: 30px 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 20px;
  }

  .info-pane-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-badges {
    flex-direction: column;
    width: 100%;
  }

  .contact-badge-pill {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Align contact content on large screens */
@media (min-width: 1220px) {
  .contact-info-pane {
    padding-left: calc(50vw - 558px);
    /* aligns text with grid left margin */
  }

  .contact-form-pane {
    padding-right: calc(50vw - 558px);
    /* aligns text with grid right margin */
  }
}

/* NEW REDESIGNED FOOTER */
footer {
  background: #06020a;
  color: var(--white);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr 0.8fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.white-logo {
  color: var(--white) !important;
}

.footer-slogan {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
}

.footer-slogan .play-triangle {
  font-size: 16px;
  color: var(--white);
  margin-left: 4px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
}

.footer-nav-col h4,
.accordion-header,
.footer-social-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 22px;
}

.accordion-content {
  display: flex;
  flex-direction: column;
}

.footer-nav-col a {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  width: fit-content;
  transition: color 0.25s ease;
}

.footer-nav-col a:hover {
  color: var(--pink);
}

.footer-static-info {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.footer-social-col {
  display: flex;
  flex-direction: column;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
}

.footer-social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.25s ease;
}

.footer-social-icons a:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  flex-wrap: wrap;
  gap: 16px;
}

.accordion-icon {
  display: none;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-brand-col {
    grid-column: span 1;
    margin-bottom: 20px;
  }

  .accordion-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
  }

  .accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 0 !important;
    padding: 12px 0;
    user-select: none;
  }

  .accordion-header span:first-child {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
  }

  .accordion-icon {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    color: var(--pink);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .accordion-col.is-open .accordion-icon {
    transform: rotate(45deg);
  }

  .accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .accordion-col.is-open .accordion-content {
    max-height: 320px;
    opacity: 1;
    margin-top: 10px;
    margin-bottom: 12px;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ==========================================================================
   CASE STUDY DETAILS MODAL (FULL SCREEN WHITE BACK SPLIT VIEW)
   ========================================================================== */
body.modal-open {
  overflow: hidden;
}

.case-modal {
  display: none; /* controlled by JS toggle */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  overflow: hidden;
}

.case-modal.active {
  display: flex;
  animation: modal-fade-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 34px;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2200;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.25s ease;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: rotate(90deg);
}

.modal-content {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
}

/* Left Pane: Gallery Slider */
.modal-gallery-pane {
  width: 60%;
  height: 100%;
  background: #06020a;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slider {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #06020a;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Slider Controls */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2010;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gallery-nav-btn:hover {
  background: #ffffff;
  color: #06020a;
  border-color: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.gallery-nav-btn.prev {
  left: 24px;
}

.gallery-nav-btn.next {
  right: 24px;
}

.gallery-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2010;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

/* Right Pane: Brief scroll */
.modal-brief-pane {
  width: 40%;
  height: 100%;
  background: #ffffff;
  overflow-y: auto;
  padding: 80px 48px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.brief-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.brief-title {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
}

.brief-body {
  font-size: 14.5px;
  color: rgba(27, 20, 36, 0.85);
  line-height: 1.6;
  font-weight: 500;
}

.brief-body h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 28px 0 8px 0;
}

.brief-body p {
  margin-bottom: 16px;
}

.brief-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.brief-body li {
  margin-bottom: 6px;
}

.brief-body hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 24px 0;
}

/* Modal RESPONSIVE Styles */
@media (max-width: 900px) {
  .modal-content {
    flex-direction: column;
    width: 100vw;
    height: 100vh;
  }

  .modal-gallery-pane {
    width: 100%;
    height: 45%;
  }

  .modal-brief-pane {
    width: 100%;
    height: 55%;
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 32px 24px;
  }

  .brief-title {
    margin-bottom: 16px;
  }

  .modal-close-btn {
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--ink);
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .gallery-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .gallery-nav-btn.prev {
    left: 16px;
  }

  .gallery-nav-btn.next {
    right: 16px;
  }
}

/* ==========================================================================
   EXTRA MOBILE POLISH & SMALL SCREENS (< 580px)
   ========================================================================== */
@media (max-width: 580px) {
  .wrap {
    padding: 0 20px;
  }

  nav {
    padding: 0 20px;
  }

  .hero-text h1 {
    font-size: clamp(38px, 11vw, 55px);
  }

  .somos-text {
    width: 92%;
    padding: 0 10px;
  }

  .somos-text h2 {
    font-size: 22px;
  }

  .somos-text p.support {
    font-size: 13.5px;
  }

  .map-stats {
    gap: 20px;
  }

  .stat-num {
    font-size: 24px;
  }

  .stat-label {
    font-size: 11px;
  }

  .stat-item:not(:last-child)::after {
    right: -10px;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card {
    padding: 24px;
  }

  .service-card h3 {
    font-size: 22px;
    margin-top: 40px;
  }

  .service-card-back {
    padding: 24px;
  }
}

/* ==========================================================================
   SECCIÓN VIDEO CORPORATIVO
   ========================================================================== */
.video-corporativo-section {
  position: relative;
  padding: 90px 0 110px;
  background: var(--paper);
  overflow: hidden;
}

.text-center {
  text-align: center;
}

.text-center h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-sub {
  max-width: 580px;
  margin: 16px auto 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}

.video-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 48px auto 0;
}

.video-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 80%;
  background: radial-gradient(circle, rgba(139, 47, 224, 0.22) 0%, rgba(255, 62, 157, 0.18) 50%, rgba(255, 122, 61, 0) 75%);
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
}

.video-container {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: #0d0914;
  box-shadow: 0 30px 60px -15px rgba(27, 20, 36, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px -20px rgba(139, 47, 224, 0.3), 0 0 0 2px rgba(255, 62, 157, 0.3) inset;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(27, 20, 36, 0.25) 0%, rgba(27, 20, 36, 0.65) 100%), url('SIMETRIK/fc82f6ad-e8e3-4924-8ca5-c51dd3263c93.JPG') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(2px);
}

.video-overlay.is-playing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-btn-lg {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(220, 32, 138, 0.45);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.play-btn-lg svg {
  margin-left: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.video-overlay:hover .play-btn-lg {
  transform: scale(1.12);
  box-shadow: 0 16px 40px rgba(255, 62, 157, 0.6);
}

.pulse-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  animation: videoPulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

@keyframes videoPulseRing {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

.play-label {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.video-overlay:hover .play-label {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .video-corporativo-section {
    padding: 60px 0 80px;
  }

  .video-wrapper {
    margin-top: 32px;
  }

  .video-container {
    border-radius: 20px;
  }

  .play-btn-lg {
    width: 64px;
    height: 64px;
  }

  .play-btn-lg svg {
    width: 28px;
    height: 28px;
  }

  .play-label {
    font-size: 13px;
  }
}

/* ==========================================================================
   WIDGET FLOTANTE DE WHATSAPP Y ESTADOS DE FORMULARIO
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.6);
  color: #FFFFFF;
}

.whatsapp-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: waPulse 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--ink);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.form-status-msg {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.form-status-success {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #0E7036;
}

.form-status-error {
  background: rgba(255, 62, 157, 0.12);
  border: 1px solid rgba(255, 62, 157, 0.4);
  color: #B8005A;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}