/*
Theme Name: Come Publicidad
Description: Tema a medida basado en la web original.
Author: Antigravity AI
Version: 2.0
*/


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

    :root {
      --azul: #00C0FE;
      --navy: #0E162B;
      --blanco: #FFFFFF;
      --azul-oscuro: #0099CC;
    }

    body {
      font-family: 'DM Sans', sans-serif;
      background: #F4F6FA;
      color: var(--navy);
      overflow-x: hidden;
    }

    /* NAV */
    nav {
      position: fixed;
      top: 0;
      width: 100%;
      z-index: 100;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 3rem;
      /*COLOR MENÚ*/
      background: rgba(14, 22, 43, 0.85);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(0, 192, 254, 0.15);
    }

    .logo {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.6rem;
      letter-spacing: 2px;
      color: var(--azul);
    }

    .logo span {
      color: var(--blanco);
    }

    nav a {
      color: rgba(255, 255, 255, 0.7);
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 500;
      transition: color 0.2s;
    }

    nav a:hover {
      color: var(--azul);
    }

    .nav-links {
      display: flex;
      gap: 2rem;
      align-items: center;
    }

    .btn-nav {
      background: var(--azul);
      color: var(--navy) !important;
      font-weight: 600 !important;
      padding: 0.5rem 1.4rem;
      border-radius: 4px;
      text-decoration: none !important;
      font-size: 0.85rem !important;
      transition: opacity 0.2s;
    }

    .btn-nav:hover {
      opacity: 0.85;
    }

    /* HERO */
    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      padding: 8rem 3rem 4rem;
      position: relative;
      overflow: hidden;
    }



    /* HERO: capas (imagen -> filtro -> onda -> contenido) */
    .hero {
      --hero-img-opacity: 1;
      --hero-blur: 0px;
      --hero-brightness: 1;
      --hero-contrast: 1;
      --hero-filter: linear-gradient(90deg, rgba(14, 22, 43, 0.92) 0%, rgba(14, 22, 43, 0.75) 50%, rgba(14, 22, 43, 0.35) 100%);
      background-color: var(--navy);
      isolation: isolate;
    }

    .hero-bg,
    .hero-overlay,
    .hero-wave {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }

    .hero-bg {
      z-index: 0;
      background-size: cover;
      background-position: center;
      opacity: var(--hero-img-opacity);
      filter: blur(var(--hero-blur)) brightness(var(--hero-brightness)) contrast(var(--hero-contrast));
      /* escala mínima para que el desenfoque no deje bordes claros */
      transform: scale(1.06);
    }

    .hero-overlay {
      z-index: 1;
      background: var(--hero-filter);
    }

    .hero-wave {
      z-index: 2;
      width: 100%;
      height: 100%;
    }

    /* HERO: megáfono decorativo (esquina inferior derecha) */
    .hero-megaphone {
      --mp: var(--mega-size, 220px);
      position: absolute;
      right: clamp(4.5rem, 9vw, 9rem);
      bottom: clamp(5rem, 12vh, 8rem);
      width: var(--mp);
      z-index: 2;
      pointer-events: none;
      opacity: 0;
      transition: opacity 1.4s ease;
    }

    .hero-megaphone.is-on {
      opacity: var(--mega-opacity, 0.45);
    }

    .mp-float {
      position: relative;
    }

    .hero-megaphone.is-on .mp-float {
      animation: mp-float 7s ease-in-out infinite;
    }

    .mp-img {
      display: block;
      width: 100%;
      height: auto;
    }

    /* Origen de las ondas: la boca (boquilla) del megáfono, apuntando arriba a la izquierda */
    .mp-waves {
      position: absolute;
      left: 2.5%;
      top: 28%;
      width: 0;
      height: 0;
      transform: rotate(-12deg);
    }

    .mp-waves i {
      position: absolute;
      width: calc(var(--mp) * 0.5);
      height: calc(var(--mp) * 0.5);
      left: calc(var(--mp) * -0.25);
      top: calc(var(--mp) * -0.25);
      border-radius: 50%;
      border-left: 3px solid var(--azul, #00C0FE);
      opacity: 0;
      transform: scale(0.35);
      transform-origin: 50% 50%;
    }

    .hero-megaphone.is-on .mp-waves i {
      animation: mp-wave 3.2s ease-out infinite;
    }

    .hero-megaphone.is-on .mp-waves i:nth-child(2) { animation-delay: 0.55s; }
    .hero-megaphone.is-on .mp-waves i:nth-child(3) { animation-delay: 1.1s; }

    @keyframes mp-float {
      0%, 100% { transform: translate(0, 0) rotate(0deg); }
      25%      { transform: translate(-6px, -8px) rotate(-1.5deg); }
      50%      { transform: translate(2px, -12px) rotate(0.5deg); }
      75%      { transform: translate(6px, -5px) rotate(1.5deg); }
    }

    @keyframes mp-wave {
      0%   { opacity: 0;    transform: scale(0.35); }
      15%  { opacity: 0.95; }
      70%  { opacity: 0;    transform: scale(2.4); }
      100% { opacity: 0;    transform: scale(2.4); }
    }

    @media (max-width: 768px) {
      .hero-megaphone {
        --mp: min(var(--mega-size, 220px), 36vw);
        right: 1rem;
        bottom: 5.5rem;
      }
    }

    /* Movimiento reducido: solo aparece y desaparece, sin flotar ni ondas */
    @media (prefers-reduced-motion: reduce) {
      .hero-megaphone.is-on .mp-float,
      .hero-megaphone.is-on .mp-waves i {
        animation: none;
      }
    }

    .hero-content {
      max-width: 620px;
      z-index: 3;
      position: relative;
    }

    .hero-tag {
      display: inline-block;
      background: rgba(0, 192, 254, 0.12);
      border: 1px solid rgba(0, 192, 254, 0.3);
      border-radius: 100px;
      font-size: 0.78rem;
      color: var(--azul);
      letter-spacing: 1.5px;
      padding: 0.35rem 1rem;
      margin-bottom: 1.5rem;
      text-transform: uppercase;
      font-weight: 600;
    }

    .hero h1 {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(3.5rem, 7vw, 5.5rem);
      line-height: 1;
      color: var(--blanco);
      margin-bottom: 1.2rem;
      letter-spacing: 1px;
    }

    .hero h1 span {
      color: var(--azul);
    }

    .hero p {
      font-size: 1.05rem;
      color: rgba(255, 255, 255, 0.65);
      line-height: 1.7;
      margin-bottom: 2rem;
      max-width: 480px;
    }

    .btn-hero {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      background: var(--azul);
      color: var(--navy);
      font-weight: 700;
      padding: 0.95rem 2rem;
      border-radius: 4px;
      text-decoration: none;
      font-size: 1rem;
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .btn-hero:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(0, 192, 254, 0.3);
    }

    .btn-hero svg {
      width: 18px;
      height: 18px;
    }

    .hero-visual {
      display: none;
    }

    .hero-block {
      display: none;
    }

    /* SERVICIOS */
    .section {
      padding: 6rem 3rem;
    }

    .section-label {
      font-size: 0.88rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--azul);
      font-weight: 600;
      margin-bottom: 0.8rem;
    }

    .section-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(2.8rem, 5vw, 4.2rem);
      color: var(--navy);
      margin-bottom: 3rem;
      line-height: 1.1;
    }

    .servicios-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1.5rem;
    }

    .servicio-card {
      background: rgba(14, 22, 43, 0.03);
      border: 1px solid rgba(0, 192, 254, 0.18);
      border-radius: 8px;
      padding: 2rem 1.5rem;
      transition: border-color 0.2s, background 0.2s;
      cursor: default;
    }

    .servicio-card:hover {
      border-color: rgba(0, 192, 254, 0.5);
      background: rgba(0, 192, 254, 0.08);
    }

    .servicio-icon {
      width: 44px;
      height: 44px;
      background: rgba(0, 192, 254, 0.12);
      border-radius: 8px;
      margin-bottom: 1.2rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .servicio-icon svg {
      width: 22px;
      height: 22px;
      stroke: var(--azul);
      fill: none;
      stroke-width: 1.8;
    }

    .servicio-card h3 {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 0.6rem;
    }

    .servicio-card p {
      font-size: 0.95rem;
      color: rgba(14, 22, 43, 0.6);
      line-height: 1.7;
    }

    .btn-conocer {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      margin-top: 1rem;
      padding: 0.55rem 1.1rem;
      background: transparent;
      color: var(--azul);
      border: 1px solid rgba(0, 192, 254, 0.4);
      border-radius: 6px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
    }

    .btn-conocer:hover {
      background: var(--azul);
      color: var(--navy);
      border-color: var(--azul);
    }

    .btn-conocer::after {
      content: '\2192';
      transition: transform 0.2s;
    }

    .btn-conocer:hover::after {
      transform: translateX(3px);
    }

    /* LIGHTBOX */
    .lightbox-overlay {
      position: fixed;
      inset: 0;
      z-index: 9995;
      background: rgba(14, 22, 43, 0.92);
      backdrop-filter: blur(6px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 2rem;
    }

    .lightbox-overlay.active {
      display: flex;
    }

    .lightbox-box {
      position: relative;
      width: 100%;
      max-width: 720px;
      background: var(--navy);
      border: 1px solid rgba(0, 192, 254, 0.2);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

    .lightbox-title {
      padding: 1.2rem 1.5rem 0;
      font-family: 'DM Sans', sans-serif;
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--blanco);
    }

    .lightbox-imgwrap {
      position: relative;
      width: 100%;
      height: 420px;
      margin-top: 1rem;
      overflow: hidden;
      background: #000;
    }

    .lightbox-imgwrap img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: none;
    }

    .lightbox-imgwrap img.active {
      display: block;
    }

    .lightbox-caption {
      padding: 0.9rem 1.5rem 0;
      min-height: 1.4rem;
      text-align: center;
      font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
      font-size: 1.2rem;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.75);
    }

    .lightbox-close {
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 2;
      background: rgba(0, 0, 0, 0.5);
      border: none;
      color: var(--blanco);
      width: 34px;
      height: 34px;
      border-radius: 50%;
      font-size: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(4px);
    }

    .lightbox-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 2;
      background: rgba(0, 0, 0, 0.5);
      border: none;
      color: var(--azul);
      width: 38px;
      height: 38px;
      border-radius: 50%;
      font-size: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(4px);
    }

    .lightbox-nav.prev {
      left: 12px;
    }

    .lightbox-nav.next {
      right: 12px;
    }

    .lightbox-dots {
      display: flex;
      justify-content: center;
      gap: 6px;
      padding: 1rem 1.5rem 1.5rem;
    }

    .lightbox-dots span {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      transition: background 0.2s;
    }

    .lightbox-dots span.active {
      background: var(--azul);
    }

    @media (max-width: 640px) {
      .lightbox-imgwrap {
        height: 280px;
      }
    }

    /* PROCESO */
    .proceso {
      background: rgba(0, 192, 254, 0.04);
      border-top: 1px solid rgba(0, 192, 254, 0.1);
      border-bottom: 1px solid rgba(0, 192, 254, 0.1);
    }

    .proceso-steps {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 0;
      counter-reset: paso;
    }

    .paso {
      padding: 2.5rem 2rem;
      position: relative;
      border-right: 1px solid rgba(0, 192, 254, 0.1);
    }

    .paso:last-child {
      border-right: none;
    }

    .paso-num {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 4.5rem;
      color: rgba(0, 192, 254, 0.15);
      line-height: 1;
      margin-bottom: 0.8rem;
    }

    .paso h3 {
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--azul);
      margin-bottom: 0.5rem;
    }

    .paso p {
      font-size: 0.95rem;
      color: rgba(14, 22, 43, 0.6);
      line-height: 1.7;
    }

    /* DIFERENCIADORES */
    .difs {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
      margin-top: 1rem;
    }

    .dif-card {
      background: rgba(14, 22, 43, 0.03);
      border: 1px solid rgba(0, 192, 254, 0.15);
      border-radius: 12px;
      padding: 2rem 1.5rem;
      text-align: center;
      transition: border-color 0.25s, background 0.25s, transform 0.25s;
      cursor: default;
    }

    .dif-card:hover {
      border-color: rgba(0, 192, 254, 0.5);
      background: rgba(0, 192, 254, 0.08);
      transform: translateY(-4px);
    }

    .dif-icon-wrap {
      width: 64px;
      height: 64px;
      background: rgba(0, 192, 254, 0.12);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1.2rem;
      transition: background 0.25s;
    }

    .dif-card:hover .dif-icon-wrap {
      background: rgba(0, 192, 254, 0.22);
    }

    .dif-icon-wrap svg {
      width: 28px;
      height: 28px;
    }

    .dif-card h4 {
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 0.5rem;
    }

    .dif-card p {
      font-size: 0.95rem;
      color: rgba(14, 22, 43, 0.6);
      line-height: 1.7;
    }

    /* CTA */
    .cta-section {
      background: var(--azul);
      padding: 5rem 3rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .cta-section h2 {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(2.5rem, 5vw, 4rem);
      color: var(--navy);
      margin-bottom: 1rem;
      line-height: 1.05;
    }

    .cta-section p {
      color: rgba(14, 22, 43, 0.7);
      font-size: 1rem;
      margin-bottom: 2rem;
      max-width: 440px;
    }

    .btn-wsp {
      display: inline-flex;
      align-items: center;
      gap: 0.7rem;
      background: var(--navy);
      color: var(--blanco);
      font-weight: 700;
      padding: 1rem 2.2rem;
      border-radius: 4px;
      text-decoration: none;
      font-size: 1rem;
      transition: transform 0.2s;
    }

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

    .btn-wsp svg {
      width: 20px;
      height: 20px;
      fill: #25D366;
    }

    /* FOOTER */
    footer {
      background-color: #0E162B;
      /* Color gris oscuro */
      padding: 2rem 3rem;
      border-top: 1px solid rgba(14, 22, 43, 0.08);
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.8rem;
      color: rgb(255, 255, 255, 0.5);
    }

    .footer-logo {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.2rem;
      color: rgba(0, 192, 254, 0.5);
      letter-spacing: 2px;
    }


    @media (max-width: 768px) {
      #ubicacion>div:last-of-type>div:last-child {
        height: 280px;
      }
    }

    /* ===== RESPONSIVE ===== */

    /* Tablet: 768px - 1024px */
    @media (max-width: 1024px) {
      nav {
        padding: 1rem 2rem;
      }

      .hero {
        padding: 7rem 2rem 4rem;
      }

      .hero-visual {
        right: 1.5rem;
        opacity: 0.07;
      }

      .hero-block {
        width: 120px;
        height: 120px;
      }

      .section {
        padding: 5rem 2rem;
      }

      .cta-section {
        padding: 4rem 2rem;
      }

      footer {
        padding: 2rem;
      }
    }

    /* Mobile: hasta 768px */
    @media (max-width: 768px) {

      /* NAV */
      nav {
        padding: 0.9rem 1.2rem;
        flex-wrap: wrap;
        gap: 0.5rem;
      }

      .logo {
        font-size: 1.4rem;
      }

      .nav-links {
        gap: 1.2rem;
      }

      nav a {
        font-size: 0.82rem;
      }

      .btn-nav {
        padding: 0.45rem 1rem;
        font-size: 0.8rem !important;
      }

      /* HERO */
      .hero {
        min-height: 100svh;
        padding: 7rem 1.5rem 4rem;
        flex-direction: column;
        justify-content: center;
      }

      .hero-content {
        max-width: 100%;
      }

      .hero-visual {
        display: none;
      }

      .hero h1 {
        font-size: clamp(3rem, 12vw, 4.5rem);
      }

      .hero p {
        font-size: 0.97rem;
        max-width: 100%;
      }

      .btn-hero {
        font-size: 0.93rem;
        padding: 0.9rem 1.6rem;
        width: 100%;
        justify-content: center;
      }

      /* SECTIONS */
      .section {
        padding: 4rem 1.5rem;
      }

      /* SERVICIOS */
      .servicios-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.9rem;
      }

      .servicio-card {
        padding: 1.5rem 1.2rem;
      }

      /* PROCESO */
      .proceso {
        border-left: none;
        border-right: none;
      }

      .proceso-steps {
        grid-template-columns: 1fr 1fr;
      }

      .paso {
        border-right: 1px solid rgba(0, 192, 254, 0.1);
        border-bottom: 1px solid rgba(0, 192, 254, 0.1);
        padding: 1.5rem 1.2rem;
      }

      .paso:nth-child(2n) {
        border-right: none;
      }

      .paso:nth-child(3),
      .paso:nth-child(4) {
        border-bottom: none;
      }

      .paso-num {
        font-size: 2.2rem;
      }

      /* DIFERENCIADORES */
      .difs {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
      }

      /* CTA */
      .cta-section {
        padding: 4rem 1.5rem;
      }

      .cta-section h2 {
        font-size: clamp(2.2rem, 9vw, 3rem);
      }

      .cta-section p {
        font-size: 0.95rem;
      }

      .btn-wsp {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.95rem 1.5rem;
      }

      /* FOOTER */
      footer {
        padding: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
      }
    }

    /* Mobile pequeño: hasta 480px */
    @media (max-width: 480px) {
      nav {
        gap: 0.3rem;
      }

      .nav-links {
        gap: 0.8rem;
      }

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

      .proceso-steps {
        grid-template-columns: 1fr;
      }

      .paso {
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 192, 254, 0.1) !important;
      }

      .paso:last-child {
        border-bottom: none !important;
      }

      .difs {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
      }

      .hero h1 {
        font-size: clamp(2.8rem, 14vw, 3.8rem);
      }
    }
  
