/* ============================================================
   GLOBAL.CSS — reset, variables, navbar, footer, botones
   Shelu Technologies
   ============================================================ */

/* ------------------------------------------------------------
   GOOGLE FONTS
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800;900&display=swap');

/* ------------------------------------------------------------
   VARIABLES
   ------------------------------------------------------------ */
:root {
  /* Colores */
  --c-black:       #0a0a0a;
  --c-white:       #ffffff;
  --c-text-muted:  #64748b;
  --c-gray-dark:   #2b2b2b;
  --c-gray-mid:    #666666;
  --c-gray-text:   #94a3b8;
  --c-gray-light:  #e6e6e6;
  --c-gray-pale:   #f5f5f5;
  --c-bg-surface: #0e1117;
  --c-bg-surface-hover: #151821;
  --c-surface:     #111111;
  --c-surface-2:   #1a1a1a;
  --c-border-dark: #1f1f1f;
  --c-border-light:#e0e0e0;
  --c-border-subtle: rgba(255, 255, 255, 0.08);
  --c-border-focus: rgba(99, 102, 241, 0.4);
  --c-glow-indigo: 0 0 50px rgba(99, 102, 241, 0.18);
  --c-glow-cyan: 0 0 60px rgba(6, 182, 212, 0.15);
  --c-blue:        #1f3a5f;
  --c-blue-dark:   #233041;
  --c-accent:      #6b93c4;
  --c-accent-emerald: #10b981;
  --c-accent-dim:  rgba(107,147,196,0.14);
  --c-accent-glow: rgba(107,147,196,0.30);
  --c-accent-cyan: #06b6d4;
  --c-grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --footer-bg: linear-gradient(to right, #00093c, #2d0b00);
  --footer-color-primary: #ffffff;
  --footer-color-secondary: #c5c7cf;
  --footer-color-muted: #8c8fa1;
  --footer-color-accent: #ffffff;
  --footer-border-color: rgba(255, 255, 255, 0.2);

  /* Tipografía */
  --font:       'Onest', sans-serif;
  --font-family: 'Onest', system-ui, -apple-system, sans-serif;
  --fs-xs:      0.72rem;
  --fs-sm:      0.875rem;
  --fs-base:    1rem;
  --fs-md:      1.125rem;
  --fs-lg:      1.375rem;
  --fs-xl:      1.75rem;
  --fs-2xl:     2.25rem;
  --fs-3xl:     3rem;
  --fs-4xl:     clamp(2.5rem, 5vw, 4rem);
  --fs-hero:    clamp(4.5rem, 10vw, 7rem);
  --fs-stat:    clamp(3.5rem, 8vw, 7rem);

  /* Espaciado */
  --s2:   0.5rem;
  --s4:   1rem;
  --s6:   1.5rem;
  --s8:   2rem;
  --s10:  2.5rem;
  --s12:  3rem;
  --s16:  4rem;
  --s20:  5rem;
  --s24:  6rem;
  --s28:  7rem; 
  --s32:  8rem;
  --s36:  9rem;
  --s40: 10rem;
  --s44: 11rem;
  --s48: 12rem;
  --s52: 13rem;
  --s56: 14rem;
  --s60: 15rem;
  --s64: 16rem;
  --s68: 17rem;
  --s72: 18rem;
  --s76: 19rem;
  --s80: 20rem;

  /* Radios */
  --r-sm:   6px;
  --r-md:   14px;
  --r-lg:   24px;
  --r-pill: 999px;

  /* Transiciones */
  --ease:       cubic-bezier(.4,0,.2,1);
  --dur-fast:   140ms;
  --dur-base:   240ms;
  --dur-slow:   380ms;
  --transition-speed: 0.3s;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  /* Navbar */
  --nav-h:  64px;
  --nav-w:  min(880px, 92vw);
}

/* ------------------------------------------------------------
   RESET
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--c-gray-light);
  background: var(--c-black);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ------------------------------------------------------------
   BOTONES
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: .75rem 1.6rem;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Blanco */
.btn--white {
  background: var(--c-white);
  color: var(--c-black);
  border-color: var(--c-white);
}
.btn--white:hover { background: var(--c-gray-light); }

/* Acento */
.btn--accent {
  background: var(--c-accent);
  color: var(--c-black);
  border-color: var(--c-accent);
  font-weight: 700;
}
.btn--accent:hover {
  background: #7aaad4;
  box-shadow: 0 4px 24px var(--c-accent-glow);
}

/* Outline oscuro (para fondos negros) */
.btn--outline-dark {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,0.22);
}
.btn--outline-dark:hover { border-color: rgba(255,255,255,0.5); }

/* Outline claro (para fondos blancos) */
.btn--outline-light {
  background: transparent;
  color: var(--c-black);
  border-color: rgba(0,0,0,0.22);
}
.btn--outline-light:hover { border-color: var(--c-black); }

/* Grande */
.btn--lg { padding: 1rem 2.2rem; font-size: var(--fs-base); }

/* Arrow */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: gap var(--dur-base) var(--ease);
}
.btn-arrow:hover { gap: .7rem; }
.btn-arrow svg { flex-shrink: 0; }

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-white);
  border: 1px solid var(--c-border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   NAVBAR — Dynamic Island
   ------------------------------------------------------------ */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: var(--nav-w);
  z-index: 900;
}

.navbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s6);
  height: var(--nav-h);
  padding: 0 var(--s6);
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-pill);
}

.navbar__logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  /* Mientras no hay logo real: placeholder invertido */
  filter: brightness(0) invert(1);
}

.navbar__links {
  display: flex;
  justify-content: center;
  gap: .25rem;
}

.navbar__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.48);
  padding: .45rem .85rem;
  border-radius: var(--r-pill);
  transition: color var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}
.navbar__link:hover,
.navbar__link.active {
  color: var(--c-white);
}
.navbar__link.active {
  background: rgba(255,255,255,0.08);
}

.navbar__actions { display: flex; align-items: center; gap: .75rem; }

.navbar__cta { padding: .55rem 1.25rem; font-size: var(--fs-sm); transform: translateX(.75rem); }
.navbar__cta:hover { transform: translateX(.75rem) translateY(-1px); }

/* Hamburger */
.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  margin-left: auto;
  transform: translateX(.75rem);
}
.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}
.navbar__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.is-open span:nth-child(2) { opacity: 0; }
.navbar__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.navbar__mobile {
  display: none;
  position: absolute;
  top: calc(var(--nav-h) + 10px);
  inset-inline: 0;
  background: rgba(12,12,12,.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-lg);
  padding: var(--s6);
}
.navbar__mobile.is-open { display: block; animation: fadeDown .3s var(--ease) both; }
.navbar__mobile ul { display: flex; flex-direction: column; gap: .5rem; }
.navbar__mobile .navbar__link { display: block; padding: .75rem 1rem; font-size: var(--fs-base); }
.navbar__mobile li:last-child { margin-top: .75rem; }
.navbar__mobile .btn { width: 100%; justify-content: center; }

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
/* ==========================================================================
   VARIABLES & CONFIGURACIÓN BASE
   ========================================================================== */

/* Ocultar visualmente manteniendo accesibilidad */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   CONTENEDOR PRINCIPAL DEL FOOTER
   ========================================================================== */
.site-footer {
  width: 100%;
  background: var(--footer-bg);
  color: var(--footer-color-secondary);
  font-family: var(--font-family);
  font-size: 0.9375rem;
  line-height: 1.6;
  border-top-left-radius: 125px; /* Curva característica superior izquierda */
  padding-top: 80px;
  position: relative;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

/* ==========================================================================
   TÍTULOS Y SUBRAYADOS DECORATIVOS
   ========================================================================== */
.footer-title {
  color: var(--footer-color-primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 2rem;
  position: relative;
  width: fit-content;
}

/* Línea decorativa debajo del título */
.title-underline {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: #555869;
  border-radius: 4px;
  overflow: hidden;
}

.title-underline::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 100%;
  background: var(--footer-color-primary);
  border-radius: 4px;
}

/* ==========================================================================
   COLUMNA 1: MARCA
   ========================================================================== */
.footer-logo img{
  width: var(--s40);
}

.logo-icon {
  font-size: 1.75rem;
}

.footer-desc {
  color: var(--footer-color-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ==========================================================================
   COLUMNA 2: DIRECCIÓN Y CONTACTO
   ========================================================================== */
.footer-address {
  font-style: normal;
  margin-top: 2.1rem;
  }

.footer-address p {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
}

.footer-link {
  color: var(--footer-color-secondary);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--footer-color-primary);
}

.footer-link--email {
  border-bottom: 1px solid var(--footer-border-color);
  padding-bottom: 2px;
}

.footer-phone {
  font-weight: 700;
  color: var(--footer-color-primary);
  margin-top: 1rem;
}

/* ==========================================================================
   COLUMNA 3: ENLACES
   ========================================================================== */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 0.875rem;
}

.footer-nav-list a {
  font-size: 0.875rem;
}

/* ==========================================================================
   COLUMNA 4: FORMULARIO NEWSLETTER Y REDES
   ========================================================================== */
.newsletter-form {
  margin-bottom: 2rem;
}

.newsletter-input-group {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--footer-border-color);
  padding-bottom: 8px;
  transition: border-color var(--transition-speed) ease;
}

.newsletter-input-group:focus-within {
  border-color: var(--footer-color-primary);
}

.input-icon {
  width: 18px;
  height: 18px;
  color: var(--footer-color-muted);
  flex-shrink: 0;
  margin-right: 10px;
}

.newsletter-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--footer-color-primary);
  font-size: 0.875rem;
  font-family: inherit;
}

.newsletter-input::placeholder {
  color: var(--footer-color-muted);
}

.newsletter-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-color-primary);
  transition: transform var(--transition-speed) ease;
}

.newsletter-btn svg {
  width: 20px;
  height: 20px;
}

.newsletter-btn:hover {
  transform: translateX(4px);
}

/* Contenedor de iconos */
.footer-icons-row {
  display: flex !important;
  gap: 12px;
  margin-top: 15px;
  align-items: center;
}

/* Iconos de Redes Sociales circulares */
.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.875rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--footer-color-primary);
  color: #121526;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  transform: translateY(-3px);
  background-color: var(--footer-color-secondary);
}

/* ==========================================================================
   BARRA DE COPYRIGHT INFERIOR
   ========================================================================== */
.footer-bottom {
  margin-top: 4rem;
  border-top: 1px solid var(--footer-border-color);
  padding: 1.5rem 1rem;
  text-align: center;
}

.copyright-text {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--footer-color-secondary);
}

/* ==========================================================================
   DISEÑO RESPONSIVO (Breakpoints)
   ========================================================================== */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .site-footer {
    border-top-left-radius: 60px; /* Reducción de curvatura en pantallas pequeñas */
    padding-top: 60px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ------------------------------------------------------------
   ANIMACIONES
   ------------------------------------------------------------ */
@keyframes fadeDown {
  from { opacity:0; transform:translateY(-10px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}
@keyframes float1 {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%     { transform: translateY(-12px) rotate(-3deg); }
}
@keyframes float2 {
  0%,100% { transform: translateY(0) rotate(2deg); }
  50%     { transform: translateY(-16px) rotate(2deg); }
}
@keyframes float3 {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%     { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.4; transform:scale(.65); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity:1; transform:translateY(0); }
.rv-d1 { transition-delay: .10s; }
.rv-d2 { transition-delay: .20s; }
.rv-d3 { transition-delay: .30s; }
.rv-d4 { transition-delay: .40s; }

/* ------------------------------------------------------------
   UTILIDADES
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--s8);
}

/* Pill badge sobre títulos */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .35rem .9rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.5rem;
}
/* Variante oscura (sobre fondo negro) */
.eyebrow--dark {
  background: var(--c-accent-dim);
  border: 1px solid rgba(107,147,196,.2);
  color: var(--c-accent);
}
/* Variante clara (sobre fondo blanco) */
.eyebrow--light {
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.1);
  color: var(--c-gray-dark);
}

/* ------------------------------------------------------------
   RESPONSIVE GLOBAL
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .navbar__links { display: none; }
  .navbar__cta   { display: none; }
  .navbar__burger { display: flex; }

  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--s10);
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}
