/* ============================================================
   SATISERCOM GROUP — CSS Global
   Child theme: hello-elementor-child
   v1.0.0 · Julio 2026
   ============================================================ */

/* ── 1. GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400&display=swap');

/* ── 2. VARIABLES DE MARCA ── */
:root {
  /* Paleta SATISERCOM */
  --sati-navy:    #0E1F5C;
  --sati-blue:    #1843A1;
  --sati-sky:     #2F75BB;
  --sati-dark:    #212121;
  --sati-gray:    #575757;
  --sati-light:   #F7F9FC;
  --sati-white:   #FFFFFF;

  /* Semánticos */
  --sati-primary:    var(--sati-navy);
  --sati-secondary:  var(--sati-blue);
  --sati-accent:     var(--sati-sky);
  --sati-text:       var(--sati-dark);
  --sati-text-light: var(--sati-gray);
  --sati-bg:         var(--sati-light);

  /* Gradientes */
  --sati-gradient-hero:    linear-gradient(135deg, rgba(14,31,92,0.92) 0%, rgba(24,67,161,0.75) 50%, rgba(47,117,187,0.55) 100%);
  --sati-gradient-dark:    linear-gradient(180deg, rgba(14,31,92,0.95) 0%, rgba(14,31,92,0.70) 100%);
  --sati-gradient-card:    linear-gradient(180deg, transparent 40%, rgba(14,31,92,0.88) 100%);
  --sati-gradient-section: linear-gradient(135deg, var(--sati-navy) 0%, var(--sati-blue) 100%);

  /* Tipografía */
  --sati-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Espaciado */
  --sati-section-pad: 100px 0;
  --sati-section-pad-md: 64px 0;

  /* Bordes y sombras */
  --sati-radius:     8px;
  --sati-radius-lg:  16px;
  --sati-shadow-sm:  0 2px 8px rgba(14,31,92,0.10);
  --sati-shadow-md:  0 8px 32px rgba(14,31,92,0.16);
  --sati-shadow-lg:  0 20px 60px rgba(14,31,92,0.22);
  --sati-shadow-card: 0 4px 24px rgba(14,31,92,0.14);

  /* Transiciones */
  --sati-ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --sati-ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --sati-spring:  cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --sati-trans:   0.35s var(--sati-ease);
  --sati-trans-fast: 0.18s var(--sati-ease);

  /* Z-index */
  --z-hero:    1;
  --z-overlay: 2;
  --z-content: 3;
  --z-nav:     100;
  --z-modal:   200;
}

/* ── 3. RESET BASE ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sati-font);
  color: var(--sati-text);
  background: var(--sati-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── 4. TIPOGRAFÍA ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sati-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--sati-navy);
}

.elementor-widget-heading .elementor-heading-title {
  font-family: var(--sati-font) !important;
}

/* Clase de display grande */
.sati-display {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.sati-headline {
  font-size: clamp(24px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
}

.sati-subtitle {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--sati-gray);
}

.sati-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sati-sky);
}

/* ── 5. KEYFRAMES DE ANIMACIÓN ── */
@keyframes sati-fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sati-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes sati-fade-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes sati-fade-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes sati-scale-in {
  from { opacity: 0; transform: scale(0.90); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes sati-slide-down {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Ken Burns keyframes — usados por el hero */
@keyframes kb-zoom-pan-1 {
  0%   { transform: scale(1.0)  translate(0%, 0%); }
  100% { transform: scale(1.12) translate(-3%, -2%); }
}
@keyframes kb-zoom-pan-2 {
  0%   { transform: scale(1.12) translate(3%, 2%); }
  100% { transform: scale(1.0)  translate(0%, 0%); }
}
@keyframes kb-zoom-pan-3 {
  0%   { transform: scale(1.05) translate(-2%, 2%); }
  100% { transform: scale(1.15) translate(2%, -1%); }
}
@keyframes kb-zoom-pan-4 {
  0%   { transform: scale(1.1)  translate(2%, -2%); }
  100% { transform: scale(1.0)  translate(-1%, 1%); }
}

@keyframes sati-line-grow {
  from { width: 0; }
  to   { width: 60px; }
}

@keyframes sati-counter-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}

@keyframes sati-nav-shrink {
  from { padding: 24px 40px; background: transparent; }
  to   { padding: 12px 40px; background: rgba(14,31,92,0.96); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
}

/* ── 6. CLASES DE ANIMACIÓN (activadas por JS con IntersectionObserver) ── */
.sati-animate {
  opacity: 0;
  transition: opacity 0.6s var(--sati-ease), transform 0.6s var(--sati-ease);
}
.sati-animate.is-visible { opacity: 1; transform: none !important; }

/* Variantes de entrada */
.sati-anim-up    { transform: translateY(40px); }
.sati-anim-left  { transform: translateX(-40px); }
.sati-anim-right { transform: translateX(40px); }
.sati-anim-scale { transform: scale(0.92); }
.sati-anim-fade  { /* solo opacity */ }

/* Delay de stagger — aplicado por JS automáticamente a hijos directos */
.sati-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.sati-stagger > *:nth-child(2) { transition-delay: 0.15s; }
.sati-stagger > *:nth-child(3) { transition-delay: 0.25s; }
.sati-stagger > *:nth-child(4) { transition-delay: 0.35s; }
.sati-stagger > *:nth-child(5) { transition-delay: 0.45s; }
.sati-stagger > *:nth-child(6) { transition-delay: 0.55s; }

/* ── 7. HERO SECTION ── */
.sati-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  max-height: 1080px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slideshow Ken Burns */
.sati-hero__slides {
  position: absolute;
  inset: 0;
  z-index: var(--z-hero);
}

.sati-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: transform, opacity;
}

.sati-hero__slide.is-active {
  opacity: 1;
  animation: kb-zoom-pan-1 8s var(--sati-ease) forwards;
}
.sati-hero__slide:nth-child(2).is-active { animation-name: kb-zoom-pan-2; }
.sati-hero__slide:nth-child(3).is-active { animation-name: kb-zoom-pan-3; }
.sati-hero__slide:nth-child(4).is-active { animation-name: kb-zoom-pan-4; }
.sati-hero__slide:nth-child(5).is-active { animation-name: kb-zoom-pan-1; }
.sati-hero__slide:nth-child(6).is-active { animation-name: kb-zoom-pan-2; }

/* Overlay de gradiente */
.sati-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--sati-gradient-hero);
  z-index: var(--z-overlay);
}

/* Contenido del hero */
.sati-hero__content {
  position: relative;
  z-index: var(--z-content);
  text-align: center;
  color: var(--sati-white);
  padding: 0 24px;
  max-width: 900px;
}

.sati-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  margin-bottom: 20px;
  animation: sati-fade-in 0.8s var(--sati-ease) 0.3s both;
}

.sati-hero__title {
  font-size: clamp(32px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--sati-white);
  margin-bottom: 24px;
  animation: sati-fade-up 0.9s var(--sati-ease) 0.5s both;
}

.sati-hero__title span { color: var(--sati-sky); }

.sati-hero__desc {
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255,255,255,0.80);
  max-width: 560px;
  margin: 0 auto 40px;
  animation: sati-fade-up 0.9s var(--sati-ease) 0.7s both;
}

.sati-hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: sati-fade-up 0.9s var(--sati-ease) 0.9s both;
}

/* Indicadores del slideshow */
.sati-hero__dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: var(--z-content);
}

.sati-hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: all 0.3s ease;
  cursor: pointer;
}

.sati-hero__dot.is-active {
  background: var(--sati-white);
  width: 24px;
  border-radius: 3px;
}

/* Flecha de scroll */
.sati-hero__scroll-arrow {
  position: absolute;
  bottom: 36px;
  right: 40px;
  z-index: var(--z-content);
  animation: sati-fade-in 1s ease 1.5s both;
}

.sati-hero__scroll-arrow svg {
  width: 24px;
  height: 24px;
  stroke: rgba(255,255,255,0.6);
  animation: sati-bounce 2s ease-in-out infinite;
}

@keyframes sati-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ── 8. BOTONES ── */
.sati-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sati-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--sati-trans);
  white-space: nowrap;
}

.sati-btn--primary {
  background: var(--sati-sky);
  color: var(--sati-white);
  border-color: var(--sati-sky);
}
.sati-btn--primary:hover {
  background: var(--sati-blue);
  border-color: var(--sati-blue);
  transform: translateY(-2px);
  box-shadow: var(--sati-shadow-md);
  color: var(--sati-white);
}

.sati-btn--outline {
  background: transparent;
  color: var(--sati-white);
  border-color: rgba(255,255,255,0.55);
}
.sati-btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--sati-white);
  color: var(--sati-white);
}

.sati-btn--dark {
  background: var(--sati-navy);
  color: var(--sati-white);
  border-color: var(--sati-navy);
}
.sati-btn--dark:hover {
  background: var(--sati-blue);
  border-color: var(--sati-blue);
  transform: translateY(-2px);
  box-shadow: var(--sati-shadow-md);
  color: var(--sati-white);
}

/* ── 9. TARJETAS DE SERVICIO ── */
.sati-service-card {
  position: relative;
  border-radius: var(--sati-radius-lg);
  overflow: hidden;
  background: var(--sati-white);
  box-shadow: var(--sati-shadow-card);
  transition: transform var(--sati-trans), box-shadow var(--sati-trans);
  cursor: pointer;
}

.sati-service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sati-shadow-lg);
}

.sati-service-card__image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--sati-ease);
}

.sati-service-card:hover .sati-service-card__image {
  transform: scale(1.06);
}

.sati-service-card__body {
  padding: 28px 24px;
}

.sati-service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--sati-gradient-section);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: white;
  font-size: 22px;
}

.sati-service-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--sati-navy);
  margin-bottom: 10px;
}

.sati-service-card__text {
  font-size: 14px;
  color: var(--sati-gray);
  line-height: 1.65;
}

/* Tarjeta variante oscura (foto con overlay) */
.sati-service-card--dark {
  color: white;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
}

.sati-service-card--dark .sati-service-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--sati-gradient-card);
}

.sati-service-card--dark .sati-service-card__body {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.sati-service-card--dark .sati-service-card__title { color: white; }
.sati-service-card--dark .sati-service-card__text  { color: rgba(255,255,255,0.80); }

/* ── 10. ESTADÍSTICAS / COUNTERS ── */
.sati-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  text-align: center;
}

.sati-stat {
  padding: 40px 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.sati-stat:last-child { border-right: none; }

.sati-stat__number {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
  color: var(--sati-white);
  display: block;
  font-variant-numeric: tabular-nums;
}

.sati-stat__suffix {
  font-size: 0.55em;
  font-weight: 700;
  color: var(--sati-sky);
  vertical-align: super;
}

.sati-stat__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.60);
  margin-top: 8px;
  display: block;
}

/* ── 11. SECCIÓN CON FONDO OSCURO ── */
.sati-section--dark {
  background: var(--sati-gradient-section);
  color: var(--sati-white);
  padding: var(--sati-section-pad);
}

.sati-section--dark h2,
.sati-section--dark h3 {
  color: var(--sati-white);
}

.sati-section--navy {
  background: var(--sati-navy);
  color: var(--sati-white);
  padding: var(--sati-section-pad);
}

.sati-section--light {
  background: var(--sati-light);
  padding: var(--sati-section-pad);
}

/* Decorador de línea bajo título */
.sati-title-line::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: var(--sati-sky);
  margin: 16px auto 0;
  border-radius: 2px;
  transition: width 0.6s var(--sati-ease) 0.3s;
}
.sati-title-line.is-visible::after { width: 60px; }

/* ── 12. LÍNEA DE TIEMPO (About / History) ── */
.sati-timeline {
  position: relative;
  padding: 0 0 0 32px;
  max-width: 720px;
}

.sati-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--sati-sky) 0%, rgba(47,117,187,0.15) 100%);
}

.sati-timeline__item {
  position: relative;
  margin-bottom: 48px;
}

.sati-timeline__item::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sati-sky);
  border: 3px solid var(--sati-white);
  box-shadow: 0 0 0 3px var(--sati-sky);
}

.sati-timeline__year {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--sati-sky);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sati-timeline__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--sati-navy);
  margin-bottom: 8px;
}

.sati-timeline__text {
  font-size: 14px;
  color: var(--sati-gray);
  line-height: 1.65;
}

/* ── 13. MAPA DE RED (Network) ── */
.sati-network-map {
  position: relative;
  background: var(--sati-navy);
  border-radius: var(--sati-radius-lg);
  overflow: hidden;
  padding: 48px;
}

/* ── 14. NAVEGACIÓN (refinamiento sobre Elementor) ── */
.sati-nav-scrolled .elementor-nav-menu {
  background: rgba(14,31,92,0.96) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  transition: all 0.3s ease;
}

/* ── 15. FOOTER ── */
.sati-footer {
  background: var(--sati-navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
}

.sati-footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--sati-trans-fast);
}
.sati-footer a:hover { color: var(--sati-sky); }

.sati-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 24px;
  margin-top: 48px;
  font-size: 12px;
  color: rgba(255,255,255,0.40);
}

/* ── 16. UTILIDADES ── */
.sati-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.sati-text-center { text-align: center; }
.sati-text-white  { color: var(--sati-white) !important; }
.sati-text-sky    { color: var(--sati-sky) !important; }
.sati-text-navy   { color: var(--sati-navy) !important; }

.sati-mb-8  { margin-bottom: 8px; }
.sati-mb-16 { margin-bottom: 16px; }
.sati-mb-24 { margin-bottom: 24px; }
.sati-mb-40 { margin-bottom: 40px; }

/* Separador diagonal entre secciones */
.sati-divider--diagonal {
  position: relative;
  margin-bottom: -2px;
}
.sati-divider--diagonal svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── 17. RESPONSIVE ── */
@media (max-width: 1024px) {
  :root {
    --sati-section-pad: 72px 0;
  }
}

@media (max-width: 768px) {
  :root {
    --sati-section-pad: 56px 0;
  }

  .sati-hero { height: 92vh; min-height: 560px; }
  .sati-hero__content { padding: 0 20px; }

  .sati-stats { grid-template-columns: repeat(2, 1fr); }
  .sati-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .sati-stat:nth-child(even) { border-right: none; }
  .sati-stat:last-child, .sati-stat:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  .sati-timeline { padding-left: 24px; }
}

@media (max-width: 480px) {
  .sati-hero__cta { flex-direction: column; align-items: center; }
  .sati-btn { width: 100%; max-width: 280px; justify-content: center; }
  .sati-stats { grid-template-columns: 1fr; }
}

/* ── 18. ELEMENTOR OVERRIDES ── */
/* Forzar Montserrat en toda la tipografía de Elementor */
.elementor-widget-text-editor,
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-button .elementor-button,
.elementor-widget-icon-box .elementor-icon-box-title,
.elementor-widget-icon-box .elementor-icon-box-description {
  font-family: var(--sati-font) !important;
}

/* Botones Elementor con estilo SATISERCOM */
.elementor-button.sati-btn-primary {
  background: var(--sati-sky) !important;
  border-color: var(--sati-sky) !important;
  font-family: var(--sati-font) !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  transition: all var(--sati-trans) !important;
}
.elementor-button.sati-btn-primary:hover {
  background: var(--sati-blue) !important;
  border-color: var(--sati-blue) !important;
  transform: translateY(-2px) !important;
}

/* Asegurar que las secciones Elementor con clase sati-section--dark */
.elementor-section.sati-section--dark > .elementor-container {
  position: relative;
  z-index: 2;
}
