/* Fondo negro para navbar */
.navbar {
  background: #000 !important;
}
/* nudge the header logo down a bit so it doesn't touch the top edge */
.navbar img {
  margin-top: 0;
  margin-left: 12px; /* nudge logo from the left edge */
}
/* Fondo negro para hero */
.hero {
  background: #000 !important;
}
/* Fondo negro para el footer */
.footer {
  background: #000;
}
/* Botón de servicios plano y básico */
/* Botón de servicios igual a Schedule a Call pero violeta puro */
/* Botón de servicios igual a Schedule a Call pero violeta puro */
/* Botón de servicios igual a Schedule a Call pero violeta puro y completamente ovalado */

/* Result cards: dark gradient, fade-in, light grey text */
.result-card {
  background: linear-gradient(135deg, #181818 0%, #232323 100%);
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.12);
  padding: 32px 24px 24px 24px;
  margin: 0 12px;
  min-width: 220px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.result-card.active {
  opacity: 1;
  transform: translateY(0);
}
.result-value {
  font-size: 2.6rem;
  font-weight: 700;
  color: #e0e0e0 !important;
  margin-bottom: 8px;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
}
.result-card.active .result-value {
  opacity: 1;
}
.result-desc {
  font-size: 1.1rem;
  color: #cccccc !important;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1) 0.2s;
}
.result-desc.active {
  opacity: 1;
}
/* LIMPIEZA: Solo una versión de los estilos de result-card, result-value y result-desc, con animación y colores correctos */
.result-card {
  background: linear-gradient(135deg, #181818 0%, #232323 100%);
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.12);
  padding: 32px 24px 24px 24px;
  margin: 0 12px;
  min-width: 220px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.result-card.active {
  opacity: 1;
  transform: translateY(0);
}
.result-value {
  font-size: 2.6rem;
  font-weight: 700;
  color: #e0e0e0 !important;
  margin-bottom: 8px;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
}
.result-card.active .result-value {
  opacity: 1;
}
.result-desc {
  font-size: 1.1rem;
  color: #cccccc !important;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1) 0.2s;
}
.result-desc.active {
  opacity: 1;
}
.results-section {
  letter-spacing: 0.03em;
  padding: 1.05rem 2.2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-decoration: none;
  position: relative;
  outline: none;
  cursor: pointer;
  display: block;
  min-width: 160px;
  z-index: 1;
  justify-content: center;
  gap: 32px;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  position: relative;
  background: none; /* keep as is, but main background is now #000 */
  border-radius: 0;
  padding: 32px 0;
}
.result-card {
  border: 2px solid transparent;
  transition: box-shadow 0.2s, border-color 0.2s;
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 200px;
  padding: 38px 12px 28px 12px;
  background: linear-gradient(120deg, #0a0a0c 0%, #141418 100%);
  box-shadow: 0 4px 32px 0 rgba(10,10,20,0.18);
}
.result-card:hover {
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.28);
  border-color: transparent;
    /* Sin animación ni efecto al pasar el mouse */
}
.result-value {
  font-size: 2rem;
  font-weight: 700;
  color: #e0e0e6;
  margin-bottom: 18px;
  overflow: visible;
}
.result-desc {
  font-size: 1.18rem;
  color: #e0e0e6;
}
/* Footer copyright styles for desktop */
#footer-copyright {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.38px;
  line-height: 1.7;
}
/* Texto blanco para copyright en footer */
.footer-copyright-main, .footer-copyright-dev {
  display: block;
  color: #fff;
}
/* Estilos para el modal de vista previa en desktop */
/* Logo pequeño y centrado en el footer desktop */
.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px 0 0 0;
}
.footer-logo img {
  width: 96px;
  height: auto;
  opacity: 0.8;
  filter: brightness(0) invert(1);
}
@media (min-width: 601px) {
  .portfolio-grid {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1rem;
  }
  .portfolio-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
  }
  .portfolio-modal.active {
    display: flex;
  }
  .portfolio-modal-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(24px) brightness(1.3);
    z-index: 1;
  }
  .portfolio-modal-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  .portfolio-modal-content img {
    display: block;
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 0;
    margin: 0;
  }
  .portfolio-modal-content img {
  .portfolio-arrows-container {
    display: contents;
  }
    max-width: 100%;
    max-height: 80vh;
    border-radius: 0;
    display: block;
  }
  body.portfolio-blur::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9998;
    pointer-events: none;
    backdrop-filter: blur(10px) brightness(0.9);
    background: rgba(24,22,42,0.08);
  }
  body.portfolio-blur > *:not(.portfolio-modal) {
    pointer-events: none;
    user-select: none;
  }
}
/* Mostrar sólo las primeras 8 imágenes en desktop (2 filas x 4) */
.portfolio-grid .portfolio-item:nth-child(n+9) {
  display: none;
}
/* Carrusel de logos clientes principales para desktop */
.customer-logos-track {
  display: flex !important;
  gap: 0 !important;
  animation: scroll-logos 40s linear infinite !important;
  will-change: transform !important;
  min-width: 200vw !important;
}
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* --- BOTÓN PRINCIPAL HERO (Schedule a Call) --- */
  .cta-btn {
  display: inline-block;
  background: #6DE6C0; /* mint button to match hero highlight */
  color: #000 !important;
  border: none;
  border-radius: 2rem;
  box-shadow: 0 2px 12px 0 rgba(109,230,192,0.18);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  padding: 1.1rem 2.2rem;
  margin-top: 1.1rem;
  margin-bottom: 1.1rem;
  text-decoration: none;
  position: relative;
  outline: none;
  cursor: pointer;
  min-width: 180px;
  z-index: 1;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  color: #000 !important;
  text-decoration: none;
  box-shadow: 0 6px 20px 0 rgba(109,230,192,0.22);
}

/* Desktop: align CTAs at the bottom of each service card and reduce their size */
@media (min-width: 901px) {
  .services {
    align-items: stretch;
    gap: 2rem; /* slightly tighter gap on wide screens to match reference proportions */
  }
  /* Ensure the Services heading is visible on dark background in desktop */
  #services-title {
    color: #fff !important;
    position: relative;
    z-index: 3;
  }
  /* Prevent services container from overlapping the heading on desktop */
  .services {
    margin-top: 0 !important;
  }
  .services .service {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px; /* keeps cards evenly tall so CTAs align */
    flex: 0 0 360px; /* make service cards wider on desktop (approx sonargroup proportions) */
    max-width: 380px;
    width: 360px !important; /* override inline width set in index.html */
    box-sizing: border-box;
    padding-top: 0.8rem !important; /* reduce top padding so icon sits closer to card top */
  }
  .services .service .cta-btn {
    margin-top: 1rem;
    align-self: flex-start;
    /* remove forced left offset so the button aligns with the card text padding */
    margin-left: 0;
    margin-right: auto;
    min-width: 120px;
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
    border-radius: 1.6rem;
  }
  /* Reduce the vertical space between the small divider line and the service title on desktop */
  .service-icon {
    margin-bottom: 0 !important; /* bring icon as close as possible to divider */
    margin-top: 0 !important; /* ensure icon is not pushed down */
  }
  .service-divider {
    margin: 0 0 0 0 !important; /* remove vertical gaps */
    height: 3px !important;
  }
  .service-title {
    margin-top: -6px !important; /* pull title up close to the divider */
    margin-bottom: 0 !important;
    line-height: 1.0 !important; /* tighten internal line spacing */
    transform: translateY(-2px) !important; /* small nudge up for tighter visual */
  }
  /* Keep the prototype CTA on a single line to match reference proportions */
  #cta-btn-prototype {
    white-space: nowrap;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Hero: left-align content on wide screens */
@media (min-width: 1000px) {
  .hero {
    display: block;
    position: relative;
    padding: 60px 40px;
    background: #000; /* ensure black background */
    color: #fff;
  }
  .hero-content {
    max-width: 680px;
    margin-left: 0;
    text-align: left;
    align-items: flex-start;
  }
  .hero .cta-btn {
    margin-left: 0;
  }
  .hero-title {
    color: #ffffff !important;
  }
  .hero-subtitle {
    color: #bdbdbd !important;
  }
  .hero .electric-text {
    /* solid mint color provided */
    color: #6DE6C0 !important;
    text-shadow: none;
    /* pulsing neon glow using text-shadow animation */
    animation: neonPulseText 2.8s ease-in-out infinite;
  }
  /* Floating icons removed (decorative markup was deleted) */
}

/* Pulse animation using text-shadow (more widely supported than filter on text) */
@keyframes neonPulseText {
  0% { text-shadow: 0 0 0 rgba(140,255,79,0); }
  40% { text-shadow: 0 0 26px rgba(140,255,79,0.18), 0 0 8px rgba(0,230,209,0.12); }
  60% { text-shadow: 0 0 30px rgba(0,230,209,0.22), 0 0 10px rgba(140,255,79,0.16); }
  100% { text-shadow: 0 0 0 rgba(140,255,79,0); }
}
