/* ---------- VARIABLES ---------- */
:root {
  --text: #00224e;
  --accent: #bf930d;
  --bg: #ffffff;
}

/* ---------- GENERAL ---------- */
body {
  margin: 0;
  background: var(--bg);
  font-family: Poppins, sans-serif;
  overflow-x: hidden;
}

.page-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 0 20px;
}

.page-logo img {
  height: 60px;
  width: auto;
}

/* ---------- HERO ---------- */
.serv-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 35px 0 20px;
}

.hero-inner {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  padding: 20px;
}

/* Title grande */
.hero-title {
  font-size: clamp(36px, 10vw, 110px); /* más pequeño que antes */
  margin: 0;
  font-weight: 900;
  color: #00224e;
  line-height: 1.05;
  opacity: 0;
  letter-spacing: -1px;
  padding: 20px; /* separación con bordes laterales */
  transform-origin: center;
  position: relative;
  top: 25px;
}

/* Intro grande */
.hero-intro p {
  font-size: clamp(20px, 3vw, 34px);
  max-width: 900px;
  margin: 25px auto 35px;
  color: #00224e;
  line-height: 1.35;
  opacity: 0;
  margin-top: 100px;
}

/* ===============================
   RESULTADOS PUBLICIDAD DIGITAL
================================ */

.ads-results {
  padding: 6rem 8%;
}

/* --- ANTES / DESPUÉS --- */

.results-wrapper,
.performance-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 4rem;
  row-gap: 3rem;
  align-items: center;
}

.section-title {
  grid-column: 1 / -1;
  font-size: 2.6rem;
  color: #00224e;
  margin: 2rem 0;
  text-align: center;
}

.results-images {
  position: relative;
  height: 250px;
}

.results-images img {
  width: 100%;
  height: 100px;
  border-radius: 16px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.25));
}

.img-before {
  position: relative;
  z-index: 1;
}

.img-after {
  position: absolute;
  top: 30%;
  left: 10%;
  width: 90%;
  z-index: 2;
}

/* --- TEXTO --- */

.results-text h2,
.performance-text h2 {
  font-size: 2.4rem;
  color: #00224e;
  margin-bottom: 1.5rem;
}

.results-text p,
.performance-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #00224e;
  margin-bottom: 1rem;
}

.ads-cta {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.ads-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4e84a7;
  text-decoration: none;
  border: 1px solid #4e84a7;
  border-radius: 999px;
  transition: all 0.35s ease;
}

.ads-btn i {
  color: #00224e;
  font-size: 14px;
  transition: transform 0.35s ease;
}

.ads-btn:hover {
  background: #00224e;
  color: #fff;
  border-color: var(--accent);
}

.ads-btn:hover i {
  color: #ffffff;
  transform: translateX(4px);
}

/* --- RENDIMIENTO ALTO --- */

.performance-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.performance-images {
  position: relative;
  height: 300px;
}

.performance-images img {
  position: absolute;
  width: 65%;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.performance-images img:nth-child(1) {
  top: -15%;
  left: 0;
}

.performance-images img:nth-child(2) {
  top: 37%;
  left: 40%;
}

.performance-images img:nth-child(3) {
  top: 78%;
  left: 0;
}

/* ===============================
   CREATIVOS PUBLICITARIOS
================================ */

.ads-creatives {
  padding: 1rem 8%;
  background-color: var(--bg);
}

.creatives-intro {
  max-width: 100%;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #00224e;
  text-align: center;
  margin: 0 auto 4rem;
}

.creatives-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.creative-item {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Cuerpo del teléfono */
.phone {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 4px; /* 🔑 borde del móvil */
  border-radius: 18px;
  background: #111;
  box-shadow: inset 0 0 0 2px #2a2a2a, 0 25px 45px rgba(0, 0, 0, 0.25);
}

/* Parlante */
.phone .speaker {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 5px;
  background: #333;
  border-radius: 999px;
  z-index: 5;
}

/* Pantalla */
.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
}

.phone .screen img,
.phone .screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*** CTA ***/

.ads-cta2 {
  min-height: 25vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* From Uiverse.io by StealthWorm */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35rem;
  overflow: hidden;
  height: 4rem;
  background-size: 300% 300%;
  cursor: pointer;
  backdrop-filter: blur(1rem);
  border-radius: 5rem;
  transition: 0.5s;
  animation: gradient_301 5s ease infinite;
  border: double 4px transparent;
  background-image: linear-gradient(#212121, #212121),
    linear-gradient(
      137.48deg,
      #ffdb3b 10%,
      #fe53bb 45%,
      #8f51ea 67%,
      #0044ff 87%
    );
  background-origin: border-box;
  background-clip: content-box, border-box;
  text-decoration: none;
}

#container-stars {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: 0.5s;
  backdrop-filter: blur(1rem);
  border-radius: 5rem;
}

strong {
  z-index: 2;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

#glow {
  position: absolute;
  display: flex;
  width: 12rem;
}

.circle {
  width: 100%;
  height: 30px;
  filter: blur(2rem);
  animation: pulse_3011 4s infinite;
  z-index: -1;
}

.circle:nth-of-type(1) {
  background: rgba(254, 83, 186, 0.636);
}

.circle:nth-of-type(2) {
  background: rgba(142, 81, 234, 0.704);
}

.btn:hover #container-stars {
  z-index: 1;
  background-color: #212121;
}

.btn:hover {
  transform: scale(1.1);
}

.btn:active {
  border: double 4px #fe53bb;
  background-origin: border-box;
  background-clip: content-box, border-box;
  animation: none;
}

.btn:active .circle {
  background: #fe53bb;
}

#stars {
  position: relative;
  background: transparent;
  width: 200rem;
  height: 200rem;
}

#stars::after {
  content: "";
  position: absolute;
  top: -10rem;
  left: -100rem;
  width: 100%;
  height: 100%;
  animation: animStarRotate 280s linear infinite;
}

#stars::after {
  background-image: radial-gradient(#ffffff 1px, transparent 1%);
  background-size: 50px 50px;
}

#stars::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 170%;
  height: 500%;
  animation: animStar 150s linear infinite;
}

#stars::before {
  background-image: radial-gradient(#ffffff 1px, transparent 1%);
  background-size: 50px 50px;
  opacity: 0.5;
}

@keyframes animStar {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-135rem);
  }
}

@keyframes animStarRotate {
  from {
    transform: rotate(100deg);
  }

  to {
    transform: rotate(20deg);
  }
}

@keyframes gradient_301 {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse_3011 {
  0% {
    transform: scale(0.75);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }

  100% {
    transform: scale(0.75);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/*** WHATSAPP ***/

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  z-index: 999;
  box-shadow: 0 0 0 rgba(37, 211, 102, 0.6);
  animation: whatsapp-pulse 2.5s infinite;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/** WHATSAPP FLOTANTE **/

.floating-wpp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  background-color: none;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transform: scale(0.85);
  text-decoration: none;
}

/* Ícono centrado perfecto */
.floating-wpp i {
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}

/* Latido */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.floating-wpp.is-visible {
  opacity: 1;
  pointer-events: auto;
  animation: pulse 2.2s infinite;
}

/***** RESPONSIVE *****/

/** TABLETS **/

@media (min-width: 769px) and (max-width: 1024px) {
  .serv-hero {
    min-height: auto;
    padding: 2rem 0 2.5rem;
    align-items: flex-start;
  }

  .hero-title {
    top: 0;
    padding: 0;
  }

  .hero-intro p {
    margin-top: 1.2rem;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.5;
  }

  .results-wrapper,
  .performance-wrapper {
    column-gap: 3rem;
    align-items: center;
  }

  .results-images {
    height: 260px;
  }

  .results-images img {
    height: 110px;
    object-fit: cover;
  }

  .img-after {
    top: 40%;
    left: 4%;
    width: 92%;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .results-text h2,
  .performance-text h2 {
    font-size: 1.8rem;
  }

  .results-text p,
  .performance-text p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .creatives-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .creative-item {
    aspect-ratio: 9 / 16;
  }

  .ads-cta {
    margin-top: 3rem;
  }

  .btn {
    width: 100%;
    max-width: 420px;
    height: 3.6rem;
  }
}

/** MOVIL CHICO **/

@media (max-width: 768px) {
  .serv-hero {
    min-height: auto;
    padding: 1.5rem 0 2rem;
    align-items: flex-start;
  }

  .hero-title {
    top: 0;
    padding: 0;
  }

  .hero-intro p {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.45;
  }
  /* --- CONTENEDOR --- */
  .ads-results {
    padding: 1rem;
  }

  /* --- GRID A COLUMNA --- */
  .results-wrapper {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
    margin-top: -0.5rem;
  }

  .performance-wrapper {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
    margin-bottom: 7rem;
  }

  .performance-images {
    height: 260px;
  }

  .performance-images img {
    width: 60%;
  }
  .section-title {
    font-size: 1.5rem;
    margin: 0;
  }

  /* --- IMÁGENES ANTES / DESPUÉS --- */
  .results-images {
    position: relative;
    height: 180px;
  }

  .results-images img {
    width: 100%;
    height: 85px;
    object-fit: contain;
  }

  .img-before {
    position: relative;
    z-index: 1;
    left: 0;
  }

  .img-after {
    position: absolute;
    top: 32%;
    left: 4%;
    width: 78%;
    z-index: 2;
  }

  /* --- TEXTO --- */
  .results-text h2,
  .performance-text h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .results-text p,
  .performance-text p {
    font-size: 0.95rem;
    text-align: center;
  }

  /* --- CTA --- */
  .ads-cta {
    margin-top: 2rem;
  }

  /* --- PERFORMANCE IMAGES --- */
  .performance-images {
    position: relative;
    height: auto; /* CLAVE */
    padding-top: 1rem;
    padding-bottom: 12rem; /* espacio para la imagen 3 */
    display: flex;
    justify-content: center;
  }

  .performance-images img {
    position: absolute;
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
    left: 50%;
    filter: drop-shadow(1px 0 10px #22222273);
  }

  .performance-images img:nth-child(1) {
    top: 0;
    left: 3%;
  }

  .performance-images img:nth-child(2) {
    top: 7.1rem;
    left: 30%;
  }

  .performance-images img:nth-child(3) {
    top: 12.6rem;
    left: 8%;
  }

  /* --- CREATIVES --- */
  .creatives-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .creative-item {
    aspect-ratio: 9 / 16;
  }

  .creative-item video {
    filter: brightness(0.95);
  }

  /* --- CTA FINAL --- */
  .btn {
    width: 100%;
    max-width: 280px;
    height: 3.5rem;
  }

  strong {
    font-size: 0.8rem;
  }
}
