/* =========================================================================
   Solve IT Venezuela — styles.css
   - Variables & temas (dark/light)
   - Reset suave + tipografía
   - Botones, links y focus-visible accesible
   - Cursor custom (oculto en táctil)
   - Header sticky + nav
   - Hero responsive (video + fallback)
   - Animaciones on-scroll (clases utilitarias)
   - Servicios, Casos (carrusel), Contacto, Footer
   - Modal accesible
========================================================================= */

/* ====================== */
/* 1) VARIABLES & TEMAS   */
/* ====================== */

:root {
  /* Branding */
  --color-primary: #2c2ea0;
  --color-secondary: #0997df;
  --color-accent: #00e5ff;

  /* Shared */
  --spacing-unit: 1rem;
  --border-radius: 0.5rem;
  --transition-duration: 0.3s;
  --font-family: 'Poppins', sans-serif;

  /* Altura móvil segura (se setea también en JS) */
  --vh: 1vh;
}

/* DARK (default) */
[data-theme="dark"] {
  --color-bg-body: #111;
  --color-bg-card: #1c1c28;
  --color-text-base: #f0f0f5;
  --color-text-secondary: #a0a0b0;

  --color-shadow-neon: 0 0 12px var(--color-accent);
  --color-shadow-card: 0 8px 16px rgba(0, 0, 0, 0.4);
  --color-border-subtle: rgba(255, 255, 255, 0.1);
  --color-header-bg: rgba(17, 17, 17, 0.95);
}

/* LIGHT */
[data-theme="light"] {
  --color-bg-body: #f5f5f5;
  --color-bg-card: #ffffff;
  --color-text-base: #0a0a0a;
  --color-text-secondary: #444;

  --color-shadow-neon: 0 0 8px rgba(9, 10, 128, 0.2);
  --color-shadow-card: 0 4px 8px rgba(0, 0, 0, 0.1);
  --color-border-subtle: rgba(0, 0, 0, 0.1);
  --color-header-bg: rgba(255, 255, 255, 0.95);
}

/* ============================ */
/* 2) RESET SUAVE & BASE        */
/* ============================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition:
    background-color var(--transition-duration),
    color var(--transition-duration),
    box-shadow var(--transition-duration),
    border-color var(--transition-duration);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-body);
  color: var(--color-text-base);
  line-height: 1.6;
  overflow-x: hidden; /* evita scroll horizontal por animaciones */
  cursor: none !important; /* se maneja el cursor custom en JS */
}

/* En pantallas táctiles no mostramos cursor “none” */
@media (pointer: coarse) {
  body, a, button, .cta-button, .nav-item a, .modal-close, .submit-button {
    cursor: auto !important;
  }
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-unit);
  color: var(--color-text-base);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

section {
  padding: 4rem var(--spacing-unit);
  min-height: 80vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

/* Reduced motion: anulamos animaciones/transiciones fuertes */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================ */
/* 3) LINKS, BOTONES, FOCUS     */
/* ============================ */

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-duration);
  cursor: none;
}
a:hover, a:focus { color: var(--color-accent); text-decoration: underline; }

/* Focus visible accesible (no quitamos outlines totalmente) */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  cursor: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--color-shadow-card);
  border: 2px solid transparent;
}
.cta-primary { background-color: var(--color-secondary); color: var(--color-bg-card); }
.cta-secondary { background-color: transparent; color: var(--color-secondary); border-color: var(--color-secondary); }
.cta-button:hover, .cta-button:focus-visible {
  transform: scale(1.05);
  box-shadow: var(--color-shadow-neon), var(--color-shadow-card);
}

/* ============================ */
/* 4) CURSOR CUSTOM TECH STYLE  */
/* ============================ */

#custom-cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  border: 2px solid var(--color-secondary);
  box-shadow:
    0 0 6px var(--color-accent),
    0 0 12px var(--color-secondary);
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, box-shadow 0.3s ease;
}

.cursor-glow {
  display: none; /* Eliminamos el rastro completamente */
}

.cursor-magnet .cursor-dot {
  transform: translate(-50%, -50%) scale(1.4);
  box-shadow:
    0 0 12px var(--color-accent),
    0 0 24px var(--color-secondary);
}


/* ============================ */
/* 5) HEADER & NAVEGACIÓN       */
/* ============================ */

.main-header {
  position: fixed; top: 0; left: 0;
  width: 100%; z-index: 1000;
  background-color: var(--color-header-bg);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  padding: 1.5rem 0;
  transition: background-color .3s, box-shadow .3s;
}

.header-scrolled {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}

.header-content {
  display: flex; justify-content: space-between; align-items: center;
}

.logo-link {
  transition: opacity .5s;
  opacity: 0;
  animation: fadeInGlow 1.5s forwards .5s;
}
@keyframes fadeInGlow { to { opacity: 1; text-shadow: 0 0 5px var(--color-accent); } }

.logo {
  height: 100%;
  max-height: 64px; /* para mantener proporción y evitar deformación */
  object-fit: contain;
  filter: drop-shadow(0 0 2px var(--color-accent));
  transition: transform 0.3s ease;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo:hover {
  transform: scale(1.05);
}


.nav-menu { display: none; gap: 2rem; list-style: none; }
@media (min-width: 768px) { .nav-menu { display: flex; } }

.nav-item a {
  position: relative;
  color: var(--color-text-base);
  font-weight: 600;
  padding: .25rem 0;
  cursor: none;
}
.nav-item a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform .3s ease;
}
.nav-item a:hover::after,
.nav-item a:focus-visible::after,
.nav-item a.active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.theme-switch {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  box-shadow: var(--color-shadow-card);
  color: var(--color-secondary);
  transition: transform .2s;
}
.theme-switch:hover, .theme-switch:focus-visible {
  transform: scale(1.1);
  color: var(--color-accent);
  box-shadow: var(--color-shadow-neon), var(--color-shadow-card);
}
.theme-switch svg { width: 20px; height: 20px; fill: currentColor; }

/* ========================================================================= */
/* THEME TOGGLE (Sol / Luna animado) */
/* ========================================================================= */

.theme-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border-subtle);
  background-color: var(--color-bg-card);
  box-shadow: var(--color-shadow-card);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: scale(1.1);
  color: var(--color-accent);
  box-shadow: var(--color-shadow-neon), var(--color-shadow-card);
}

.theme-toggle svg {
  position: absolute;
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 🌞 Sol visible en modo claro */
[data-theme="light"] .theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
[data-theme="light"] .theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0.6);
}

/* 🌙 Luna visible en modo oscuro */
[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0.6);
}


/* ============================ */
/* 6) HERO — responsive         */
/* ============================ */

.hero-section {
  padding: 0;
  min-height: calc(var(--vh) * 100);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  text-align: center;
}

.hero-video-container { position: absolute; inset: 0; z-index: 1; }

.hero-video,
.video-fallback {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Overlay único (con degradado + viñeta) */
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(0,229,255,.12), transparent 45%),
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.65));
  pointer-events: none;
}

/* Contenido */
.hero-content {
  position: relative; z-index: 3;
  max-width: min(920px, 92vw);
  padding: clamp(16px, 4vw, 32px);
}

.hero-title {
  font-size: clamp(1.9rem, 6vw, 3.8rem);
  line-height: 1.12;
  margin-bottom: .6rem;
  text-wrap: balance;
  text-shadow: 0 0 10px rgba(0,0,0,.35);
}

.hero-subtitle {
  color: var(--color-accent);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  margin-bottom: 1.25rem;
  /* Fallback + intento de mezcla sutil */
  text-shadow: 0 0 5px rgba(44,46,160, .4);
}

.hero-credential {
  color: var(--color-text-secondary);
  margin: 0 auto 1.25rem;
  max-width: 70ch;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin: 1rem auto 0;
  width: min(520px, 100%);
}
@media (min-width: 768px) {
  .hero-actions { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* Altura segura en pantallas cortas landscape */
@media (max-height: 640px) and (orientation: landscape) {
  .hero-section { min-height: max(560px, calc(var(--vh) * 100)); }
}

/* Fallback visual si falla el video (clase en JS) */
.hero-section.is-fallback .hero-video { display: none; }
.hero-section.is-fallback .video-fallback { display: block; }

/* Patrón de circuito animado para fallback */
.video-fallback {
  background:
    repeating-linear-gradient(
      45deg,
      var(--color-bg-body) 0,
      var(--color-bg-body) 10px,
      var(--color-primary) 10px,
      var(--color-primary) 11px
    );
  opacity: .6;
  animation: circuitFlow 30s linear infinite;
}
@keyframes circuitFlow {
  from { background-position: 0 0; }
  to   { background-position: 100px 100px; }
}

/* ============================ */
/* 7) ANIMACIONES UTILITARIAS   */
/* ============================ */

.anim-ready {
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s cubic-bezier(.25,.46,.45,.94);
}
.anim-visible { opacity: 1; transform: translateY(0); }
.anim-scale { transform: scale(.9); }
.anim-visible.anim-scale { transform: scale(1); }

/* ============================ */
/* 8) SERVICIOS                 */
/* ============================ */

.services-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.5rem; margin-top: 3rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* ========================================================================= */
/* SERVICIOS SECTION (centrado y modernizado) */
/* ========================================================================= */

#servicios {
  text-align: center;
}

.services-grid {
  display: grid;
  justify-content: center;
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--color-bg-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--color-shadow-card);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  will-change: transform, box-shadow;
  cursor: none;
  text-align: center; /* centramos el contenido dentro */
}

.service-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--color-shadow-neon), var(--color-shadow-card);
  border-color: var(--color-accent);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px var(--color-accent));
}

.service-card h3 {
  color: var(--color-secondary);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* ============================ */
/* 9) CASOS DE ÉXITO / SHOWREEL – 2 en 2, sin cortes en desktop */
/* ============================ */

:root {
  --case-gap: 2rem; /* separación entre tarjetas del carrusel */
}

.cases-section {
  background-color: var(--color-primary);
  color: var(--color-text-base);
  padding-top: 6rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 4rem;
}

/* --- Carrusel base --- */
.cases-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-secondary) transparent;
  cursor: grab;
}
.cases-carousel.dragging { cursor: grabbing; }

/* --- Cards --- */
.case-card {
  background: var(--color-bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--color-shadow-card);
  padding: 2rem;

  /* SNAP: alinear siempre al inicio de cada tarjeta */
  scroll-snap-align: start;
  scroll-snap-stop: always;

  /* Mobile: 1 por vista (como lo tenías) */
  flex: 0 0 90%;
  margin-right: var(--case-gap);

  /* quitar efectos que mueven el layout (evita “tembladera”) */
  transform: none !important;
  transition: box-shadow .3s, border-color .3s; /* sin transform */
}
.case-card:last-child { margin-right: 0; }

/* Logo + contenido */
.case-content { padding: 0; }
.case-logo {
  display: block;
  margin: 0 auto 1.25rem;
  max-height: 80px; /* 🔺 aumentado de 50px → 80px */
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(1.1) drop-shadow(0 0 4px rgba(0, 229, 255, 0.25));
}

.case-card:hover .case-logo {
  transform: scale(1.08);
  filter: brightness(1.4) drop-shadow(0 0 10px var(--color-accent));
}


/* KPIs */
.kpi-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.kpi-item {
  flex: 1 1 45%;
  padding: 1rem;
  background-color: rgba(9, 151, 223, 0.1);
  border-left: 3px solid var(--color-secondary);
  border-radius: var(--border-radius);
  box-shadow: 0 0 5px rgba(9, 151, 223, 0.5);
}
.kpi-value { font-size: 1.5rem; font-weight: 700; color: var(--color-accent); display: block; }
.kpi-label { font-size: .875rem; color: var(--color-text-secondary); }

/* Desktop: 2 por vista exactas (sin cortes) */
@media (min-width: 1024px) {
  .case-card {
    /* Dos tarjetas exactas por viewport con un gap entre ellas */
    flex: 0 0 calc((100% - var(--case-gap)) / 2);
    margin-right: var(--case-gap);
  }
  .case-card:hover {
    /* No agrandes/traslades la card: solo resalta con sombra/borde */
    box-shadow: var(--color-shadow-neon), var(--color-shadow-card);
    border-color: var(--color-accent);
  }
}

/* Botones navegación (opcional mostrarlos en desktop) */
.carousel-nav {
  display: none;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) { .carousel-nav { display: flex; } }
.nav-button {
  background: var(--color-secondary);
  color: var(--color-bg-card);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
  cursor: none;
  transition: background-color .3s, transform .3s;
}
.nav-button:hover, .nav-button:focus-visible {
  background: var(--color-accent);
  transform: scale(1.1);
}



/* ============================ */
/* 10) MARQUEE (logos)          */
/* ============================ */

.marquee-container {
  overflow: hidden;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}
.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
}
.marquee-container:hover .marquee-content { animation-play-state: paused; }

.marquee-logo {
  flex-shrink: 0;
  width: 180px;
  height: 90px;
  object-fit: contain;
  filter: grayscale(100%) opacity(.6);
  margin: 0 2rem;
  transition: filter .3s, transform .3s;
}

.marquee-logo:hover {
  filter: grayscale(0%) opacity(1) drop-shadow(0 0 6px var(--color-accent));
  transform: scale(1.08);
}


@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================ */
/* 11) CONTACTO                 */
/* ============================ */

.contact-form {
  max-width: 600px;
  margin: 3rem auto 0;
  padding: 2rem;
  background-color: var(--color-bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--color-shadow-neon), var(--color-shadow-card);
  border: 1px solid var(--color-accent);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: .5rem;
  color: var(--color-secondary);
}
.form-group input,
.form-group textarea {
  width: 100%; padding: .75rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--border-radius);
  background-color: var(--color-bg-body);
  color: var(--color-text-base);
  font-family: var(--font-family);
  transition: border-color .3s, box-shadow .3s;
}
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 8px rgba(0,229,255,.5);
}

.form-status { text-align: center; margin-top: 1rem; font-weight: 600; }

.submit-button-container { position: relative; height: 50px; margin-top: 2rem; }
.submit-button {
  width: 100%; height: 100%;
  position: absolute;
  background-color: var(--color-secondary);
  color: var(--color-bg-card);
  border: none; cursor: none;
  transition: opacity .3s;
}
.submit-button[disabled] { opacity: .7; cursor: default; }
.loading-icon, .success-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 30px; height: 30px; display: none;
}
.loading-icon {
  border: 4px solid rgba(255,255,255,.3);
  border-top: 4px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.success-icon { color: #4CAF50; font-size: 2rem; }
@keyframes spin { 0%{ transform: translate(-50%,-50%) rotate(0deg);} 100%{ transform: translate(-50%,-50%) rotate(360deg);} }

/* ============================ */
/* 12) FOOTER                   */
/* ============================ */

/* ========================================================= */
/* 12) FOOTER — estático, resalta al pasar el mouse           */
/* ========================================================= */
.main-footer {
  background-color: var(--color-bg-body);
  padding: 2rem var(--spacing-unit);
  border-top: 1px solid var(--color-primary);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* 🔹 Fondo estático sin movimiento */
.footer-circuit-pattern {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--color-bg-body),
    var(--color-bg-body) 10px,
    var(--color-primary) 10px,
    var(--color-primary) 11px
  );
  opacity: 0.1;
  z-index: 0;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* 🔹 Solo brilla cuando pasas el mouse */
.main-footer:hover .footer-circuit-pattern {
  opacity: 0.25;
  filter: drop-shadow(0 0 6px var(--color-accent));
}

/* Contenido del footer */
.footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .contact-info { flex-grow: 1; }
}

.contact-info a {
  color: var(--color-text-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.partner-logo {
  height: 50px;
  transition: filter 0.3s;
}

.partner-logo:hover {
  filter: drop-shadow(0 0 10px var(--color-accent));
}


/* ============================ */
/* 13) MODAL                    */
/* ============================ */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.active { display: flex; }

.modal-content {
  background-color: var(--color-bg-card);
  border-radius: var(--border-radius);
  max-width: 600px; width: 100%;
  padding: 2rem; position: relative;
  transform: scale(.9); opacity: 0;
  transition: transform .3s ease-out, opacity .3s ease-out;
}
.modal-overlay.active .modal-content { transform: scale(1); opacity: 1; }
.modal-content h3 { color: var(--color-secondary); margin-bottom: 1rem; }

.modal-close {
  position: absolute; top: 10px; right: 10px;
  background: none; border: none; font-size: 1.5rem;
  color: var(--color-text-secondary); cursor: none;
  transition: color .3s;
}

/* ========================================================= */
/* HERO — Texto fijo blanco en todos los temas               */
/* ========================================================= */
.hero-title,
.hero-subtitle,
.hero-credential {
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

/* ========================================================= */
/* PARTNERS KOMMO SECTION                                    */
/* ========================================================= */
/* ========================================================================= */
/* PARTNERS KOMMO SECTION                                                    */
/* ========================================================================= */

/* ========================================================================= */
/* PARTNERS KOMMO SECTION — contenedor al 80% y logo grande                  */
/* ========================================================================= */

.partners-section {
  text-align: center;
  padding: 4rem 1rem;
  background-color: var(--color-bg-card);
  box-shadow: var(--color-shadow-card);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.partners-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partners-title {
  font-size: 1.8rem;
  color: var(--color-secondary);
  margin-bottom: 2rem;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.3);
}

/* El enlace actúa como “marco” del logo */
.kommo-link {
  width: 80%;                 /* 👈 ocupa el 80% del contenedor */
  max-width: 1200px;          /* límite en pantallas muy grandes */
  min-height: clamp(280px, 48vh, 620px); /* altura generosa y responsive */
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-body);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--border-radius);
  box-shadow: var(--color-shadow-card);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.kommo-link:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 8px var(--color-accent));
}

/* El logo rellena el marco sin deformarse */
.kommo-logo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain; /* mantiene proporción */
  display: block;
}



.modal-close:hover, .modal-close:focus-visible { color: var(--color-accent); }
