:root {
  --bg-color: #8ecad4;
  --text-color: #122329;
  --text-dark: #07171d;
  --accent-color: #0d4653;
  --font-tech: 'Chakra Petch', 'Orbitron', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace, sans-serif;
  --glow-light: rgba(255, 255, 255, 0.45);
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-tech);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Canvas para red de partículas de fondo */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: auto;
}

/* Contenedor principal de la landing */
.hero-container {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 16px;
  text-align: center;
}

/* Contenedor del Logo */
.logo-container {
  margin-bottom: clamp(24px, 4.5vh, 44px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.logo-container:hover {
  transform: translateY(-4px) scale(1.02);
}

.logo-img {
  width: auto;
  height: auto;
  max-width: clamp(160px, 22vw, 240px);
  max-height: clamp(150px, 25vh, 230px);
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(18, 35, 41, 0.22));
  user-select: none;
  -webkit-user-drag: none;
  animation: logoShake 10s ease-in-out infinite;
  transform-origin: center center;
}

.logo-container:hover .logo-img {
  animation-play-state: paused;
}

@keyframes logoShake {
  0%, 8%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  1% {
    transform: translate3d(-3px, 0, 0) rotate(-1.8deg);
  }
  2% {
    transform: translate3d(3px, 0, 0) rotate(1.8deg);
  }
  3% {
    transform: translate3d(-4px, 0, 0) rotate(-2deg);
  }
  4% {
    transform: translate3d(4px, 0, 0) rotate(2deg);
  }
  5% {
    transform: translate3d(-2px, 0, 0) rotate(-1.2deg);
  }
  6% {
    transform: translate3d(2px, 0, 0) rotate(1.2deg);
  }
  7% {
    transform: translate3d(-1px, 0, 0) rotate(-0.5deg);
  }
}

/* Servicios principales */
.services-title {
  font-size: clamp(1rem, 2.15vw, 1.45rem);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: clamp(14px, 2.4vh, 22px);
  max-width: 1120px;
  text-shadow: 0 1px 2px var(--glow-light);
}

/* Destinatarios */
.target-audience {
  font-size: clamp(0.92rem, 1.7vw, 1.25rem);
  font-weight: 600;
  margin-bottom: clamp(18px, 3vh, 28px);
  opacity: 0.95;
  text-shadow: 0 1px 2px var(--glow-light);
}

/* Datos de contacto */
.contact-line {
  font-size: clamp(0.95rem, 1.7vw, 1.25rem);
  font-weight: 700;
  margin-bottom: clamp(22px, 3.5vh, 32px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
}

/* Separadores de barra */
.separator {
  opacity: 0.45;
  font-weight: 400;
  margin: 0 6px;
  user-select: none;
}

/* Enlaces interactivos */
a.contact-link {
  color: var(--text-color);
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  user-select: text;
}

a.contact-link:hover,
a.contact-link:focus-visible {
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(18, 35, 41, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18, 35, 41, 0.12);
  outline: none;
}

a.contact-link:active {
  transform: translateY(0);
}

/* Iconos sutiles en los enlaces de contacto */
a.contact-link svg {
  width: 1.15em;
  height: 1.15em;
  opacity: 0.85;
  flex-shrink: 0;
}

/* Efecto blink sutil exclusivo para la fuente del celular */
.phone-number {
  display: inline-block;
  animation: phoneBlink 2.8s ease-in-out infinite;
  will-change: opacity, color;
}

@keyframes phoneBlink {
  0%, 100% {
    opacity: 1;
    color: var(--text-color);
    text-shadow: 0 1px 2px var(--glow-light);
  }
  50% {
    opacity: 0.48;
    color: var(--accent-color);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-number,
  .logo-img,
  .symbol-chevron {
    animation: none;
  }
  .remote-card,
  .remote-card-img,
  .remote-card::after {
    transition: none;
    transform: none;
  }
}

/* Indicador inferior >> << */
.symbol-chevron {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  opacity: 0.75;
  display: flex;
  gap: 16px;
  animation: pulseSoft 2.8s infinite ease-in-out;
  user-select: none;
  margin-bottom: clamp(14px, 2.2vh, 20px);
}

@keyframes pulseSoft {
  0%, 100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* ==========================================================================
   SECCIÓN DE SOPORTE REMOTO (RustDesk & AnyDesk)
   ========================================================================== */
.remote-support {
  margin-top: 2px;
  margin-bottom: clamp(12px, 2vh, 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.remote-support-title {
  font-size: clamp(0.72rem, 1.1vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-color);
  opacity: 0.85;
  margin-bottom: 12px;
  text-shadow: 0 1px 2px var(--glow-light);
  user-select: none;
}

.remote-support-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2.2vw, 24px);
}

/* Tarjeta / Enlace interactivo */
.remote-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #e5e5e5;
  border-radius: 12px;
  padding: 4px;
  width: clamp(145px, 22vw, 175px);
  aspect-ratio: 572 / 183;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(18, 35, 41, 0.18);
  box-shadow: 
    0 4px 14px rgba(18, 35, 41, 0.12),
    0 1px 3px rgba(18, 35, 41, 0.08);
  transition: 
    transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s ease;
  will-change: transform, box-shadow;
  outline: none;
}

/* Efecto de destello de luz dinámico (sheen sweep) al hacer hover */
.remote-card::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -130%;
  width: 65%;
  height: 220%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.72) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  transition: left 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0;
}

.remote-card:hover::after,
.remote-card:focus-visible::after {
  left: 170%;
  opacity: 1;
}

/* Imagen de logo contenida en la tarjeta */
.remote-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
  transition: 
    transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.35s ease;
}

/* Efecto Hover base: elevación 3D y aumento sutil */
.remote-card:hover,
.remote-card:focus-visible {
  transform: translateY(-6px) scale(1.045);
}

.remote-card:hover .remote-card-img,
.remote-card:focus-visible .remote-card-img {
  transform: scale(1.025);
  filter: contrast(1.05) brightness(1.02);
}

.remote-card:active {
  transform: translateY(-2px) scale(1.01);
  transition-duration: 0.1s;
}

/* Efecto Hover para RustDesk: Halo Azul Eléctrico */
.remote-card--rustdesk:hover,
.remote-card--rustdesk:focus-visible {
  border-color: rgba(14, 116, 244, 0.85);
  box-shadow: 
    0 12px 28px rgba(18, 35, 41, 0.22),
    0 0 22px rgba(14, 116, 244, 0.52),
    inset 0 0 10px rgba(14, 116, 244, 0.15);
}

/* Efecto Hover para AnyDesk: Halo Rojo / Crimson */
.remote-card--anydesk:hover,
.remote-card--anydesk:focus-visible {
  border-color: rgba(239, 68, 68, 0.85);
  box-shadow: 
    0 12px 28px rgba(18, 35, 41, 0.22),
    0 0 22px rgba(239, 68, 68, 0.52),
    inset 0 0 10px rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 16px 32px 24px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--text-color);
  opacity: 0.92;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright {
  margin: 0;
  text-shadow: 0 1px 1px var(--glow-light);
}

.footer-developer {
  margin: 0;
  text-shadow: 0 1px 1px var(--glow-light);
}

.footer-developer a {
  color: var(--text-color);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(18, 35, 41, 0.45);
  transition: all 0.25s ease;
}

.footer-developer a:hover,
.footer-developer a:focus-visible {
  color: var(--text-dark);
  text-decoration-color: var(--text-dark);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  outline: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN (PC, Tablet y Mobile)
   ========================================================================== */

/* Tablet & Pantallas medianas */
@media (max-width: 992px) {
  .hero-container {
    padding: 36px 20px;
  }
  .services-title {
    max-width: 780px;
    line-height: 1.7;
  }
}

/* Móvil vertical y dispositivos compactos */
@media (max-width: 680px) {
  body {
    overflow-y: auto;
  }

  .hero-container {
    padding: 40px 16px;
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: space-evenly;
  }

  .logo-img {
    max-width: 170px;
    max-height: 165px;
  }

  .services-title {
    font-size: 0.98rem;
    line-height: 1.85;
    max-width: 100%;
  }

  .target-audience {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .contact-line {
    flex-direction: column;
    gap: 10px;
  }

  /* Ocultar la barra separadora entre email y cel en mobile */
  .contact-line > .separator {
    display: none;
  }

  a.contact-link {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(18, 35, 41, 0.12);
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .separator {
    margin: 0 4px;
  }

  .remote-card {
    width: clamp(135px, 42vw, 160px);
  }

  .remote-support-links {
    gap: 12px;
  }

  /* Footer responsive en dispositivos móviles */
  .site-footer {
    padding: 14px 16px 24px;
    font-size: 0.78rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* Pantallas horizontales de poca altura (ej: móviles apaisados) */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-container {
    padding: 20px;
    justify-content: center;
    height: auto;
    min-height: 100vh;
  }

  .logo-container {
    margin-bottom: 12px;
  }

  .logo-img {
    max-height: 100px;
    max-width: 120px;
  }

  .services-title {
    margin-bottom: 10px;
    font-size: 0.92rem;
  }

  .target-audience {
    margin-bottom: 12px;
    font-size: 0.85rem;
  }

  .contact-line {
    margin-bottom: 12px;
    font-size: 0.88rem;
  }

  .symbol-chevron {
    display: none;
  }

  .remote-support {
    margin-top: 6px;
    margin-bottom: 8px;
  }

  .remote-card {
    width: 120px;
  }

  .site-footer {
    padding: 8px 16px 12px;
    font-size: 0.75rem;
  }
}
