/* ==========================================================
   CL Multiservice Finance, LLC — hoja de estilos principal
   Sistema de diseño: "Futuristic Trust" — fintech oscuro,
   glassmorphism + glow, premium. Basado en ui-ux-pro-max
   (estilos: glassmorphism / dark-mode-oled, tipografia:
   "Tech Startup" Space Grotesk + DM Sans).
   ========================================================== */

:root {
  /* Paleta de marca */
  --blue: #4F8CFF;
  --blue-soft: #7EA8FF;
  --cyan: #22D3EE;
  --green: #22C55E;
  --green-dark: #16A34A;

  /* Superficies (oscuro, "deep space") */
  --bg: #05070D;
  --bg-elevated: #0B0F1C;
  --bg-elevated-2: #10162A;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Texto */
  --text-primary: #F4F6FB;
  --text-secondary: #A7B0C4;
  --text-muted: #6E7893;

  /* Glow */
  --glow-blue: rgba(79, 140, 255, 0.45);
  --glow-cyan: rgba(34, 211, 238, 0.35);
  --glow-green: rgba(34, 197, 94, 0.45);

  /* Tipografia */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaciado */
  --section-y: clamp(4.5rem, 8vw, 7.5rem);
  --container-w: 1240px;
  --gutter: 1.5rem;

  /* Forma */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Sombra / glow */
  --shadow-sm: 0 2px 10px -4px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 20px 45px -18px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 0 1px rgba(79, 140, 255, 0.18), 0 20px 60px -20px var(--glow-blue);

  /* Movimiento */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.45s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--blue-soft);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: #05070D;
  padding: 0.85rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; position: relative; }
.section--tight { padding-top: calc(var(--section-y) * 0.55); padding-bottom: calc(var(--section-y) * 0.55); }
.section--muted { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--blue-soft), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

/* ---------- Reveal on scroll (fallback / no-JS-GSAP) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Ambient background: blobs + grid ---------- */
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, -6%) scale(1.08); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-14px) scale(1.25); opacity: 1; }
}
@keyframes shimmer {
  0% { transform: translateX(-120%) skewX(-15deg); }
  100% { transform: translateX(220%) skewX(-15deg); }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  min-height: 44px;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #04140A;
  box-shadow: 0 10px 30px -8px var(--glow-green);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--glow-green); }
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-120%) skewX(-15deg);
}
.btn--primary:hover::after { animation: shimmer 1.1s var(--ease); }

.btn--ghost {
  background: var(--glass);
  border-color: var(--border-strong);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover { border-color: var(--blue-soft); color: var(--blue-soft); background: rgba(79, 140, 255, 0.1); }

.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  background: rgba(5, 7, 13, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(5, 7, 13, 0.86);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand__logo { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px var(--border-strong); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.1;
  color: var(--text-primary);
}
.brand__name span { display: block; font-weight: 500; font-size: 0.72rem; color: var(--blue-soft); letter-spacing: 0.03em; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--text-primary); }

.nav__cta { display: flex; align-items: center; gap: 0.75rem; }

.nav__toggle {
  display: none;
  background: var(--glass);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.3rem;
}

.mobile-menu {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--bg);
  z-index: 49;
  display: none;
  flex-direction: column;
  padding: 2rem var(--gutter);
  gap: 1.75rem;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}
.mobile-menu__social { display: flex; gap: 0.9rem; margin-top: 0.5rem; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero__blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: drift 16s ease-in-out infinite;
}
.hero__blob--blue { background: var(--blue); top: -12%; right: -8%; }
.hero__blob--cyan { background: var(--cyan); bottom: -18%; left: -10%; animation-delay: -8s; opacity: 0.22; }
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 60% at 70% 20%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 60% at 70% 20%, black, transparent 75%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero__content { max-width: 560px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem 0.45rem 0.7rem;
  background: var(--glass);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 1.5rem;
}
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px 2px var(--glow-cyan); animation: pulse-glow 2.2s ease-in-out infinite; }

.hero__title {
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue-soft) 10%, var(--cyan) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.hero__trust-item i { color: var(--cyan); font-size: 1.1rem; }

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__orbit {
  position: absolute;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}
.hero__orbit::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px 3px var(--glow-cyan);
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}
.hero__orbit--1 { inset: 6%; animation: spin 22s linear infinite; }
.hero__orbit--2 { inset: 16%; border-color: rgba(79, 140, 255, 0.28); animation: spin-reverse 30s linear infinite; }
.hero__orbit--2::before { background: var(--blue-soft); box-shadow: 0 0 14px 3px var(--glow-blue); }

.hero__particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px 3px var(--glow-cyan);
  animation: float-particle 3.6s ease-in-out infinite;
}
.hero__particle--1 { top: 8%;  left: 50%; animation-delay: 0s; }
.hero__particle--2 { top: 32%; left: 92%; animation-delay: -0.6s; }
.hero__particle--3 { top: 80%; left: 78%; animation-delay: -1.2s; }
.hero__particle--4 { top: 80%; left: 20%; animation-delay: -1.8s; }
.hero__particle--5 { top: 32%; left: 6%;  animation-delay: -2.4s; }

.hero__logo-card {
  position: relative;
  width: 72%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-elevated-2), var(--bg-elevated) 70%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__logo-card img { width: 100%; position: relative; z-index: 1; filter: drop-shadow(0 0 24px rgba(79, 140, 255, 0.35)); }
.hero__logo-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-blue), transparent 70%);
  filter: blur(24px);
  animation: pulse-glow 3s ease-in-out infinite;
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 320px; margin: 0 auto; order: -1; }
  .hero__content { max-width: none; }
}

/* ---------- Highlights (2x2) ---------- */
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.highlight {
  background: var(--bg-elevated);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: background 0.3s var(--ease);
}
.highlight:hover { background: var(--bg-elevated-2); }
.highlight__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(79, 140, 255, 0.14);
  color: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(79, 140, 255, 0.25);
}
.highlight h3 { font-size: 1.05rem; color: var(--text-primary); }
.highlight p { color: var(--text-secondary); font-size: 0.92rem; }

@media (max-width: 700px) {
  .highlights__grid { grid-template-columns: 1fr; }
}

/* ---------- Section headers ---------- */
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 0.9rem;
}
.section-head p { color: var(--text-secondary); font-size: 1.02rem; }

/* ---------- Services (bento) ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover {
  border-color: rgba(79, 140, 255, 0.4);
  transform: translateY(-4px);
  background: var(--bg-elevated-2);
  box-shadow: var(--shadow-glow);
}
.service-card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.12), var(--bg-elevated) 70%);
  border-color: rgba(79, 140, 255, 0.28);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.25);
}
.service-card h3 { font-size: 1.12rem; color: var(--text-primary); }
.service-card p { color: var(--text-secondary); font-size: 0.94rem; }

.service-card--clickable { cursor: pointer; }
.service-card--clickable:focus-visible { border-color: var(--blue-soft); box-shadow: var(--shadow-glow); }
.service-card__more {
  margin-top: auto;
  padding-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-soft);
}
.service-card__more i { transition: transform 0.25s var(--ease); }
.service-card--clickable:hover .service-card__more i,
.service-card--clickable:focus-visible .service-card__more i { transform: translateX(4px); }

@media (max-width: 900px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--featured { grid-column: span 2; }
}
@media (max-width: 620px) {
  .services__grid { grid-template-columns: 1fr; }
  .service-card--featured { grid-column: span 1; }
}

/* ---------- Process ---------- */
.process__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.process__item {
  background: var(--bg-elevated-2);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  position: relative;
}
.process__index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--blue-soft), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  display: block;
}
.process__item h3 { font-size: 1.08rem; color: var(--text-primary); margin-bottom: 0.6rem; }
.process__item p { color: var(--text-secondary); font-size: 0.94rem; }

@media (max-width: 800px) {
  .process__list { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.about__text h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 1.1rem; }
.about__text p { color: var(--text-secondary); font-size: 1.02rem; margin-bottom: 1rem; max-width: 52ch; }
.about__list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.85rem; }
.about__list li { display: flex; align-items: center; gap: 0.7rem; color: var(--text-primary); font-size: 0.96rem; }
.about__list i { color: var(--cyan); font-size: 1.15rem; }

.about__visual {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about__visual .about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05) brightness(0.92);
}
.about__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(79, 140, 255, 0.18), transparent 55%);
  pointer-events: none;
}

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3rem);
}
.contact__card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
}
.contact__card--accent {
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.14), var(--bg-elevated) 65%);
  border-color: rgba(34, 197, 94, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
}
.contact__card--accent h3 { font-size: 1.4rem; color: var(--text-primary); margin-bottom: 0.6rem; }
.contact__card--accent p { color: var(--text-secondary); }

.contact__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact__row:last-child { border-bottom: none; }
.contact__row-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(79, 140, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-soft);
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(79, 140, 255, 0.22);
}
.contact__row-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.contact__row-value { color: var(--text-primary); font-size: 0.98rem; font-weight: 500; }

.contact__social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
}

/* ---------- Social icon buttons ---------- */
.social-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.social-icon img { width: 18px; height: 18px; }
.social-icon:hover { border-color: var(--blue-soft); background: rgba(79, 140, 255, 0.14); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; background: var(--bg); }
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer__brand { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; }
.footer__brand img { width: 36px; height: 36px; border-radius: 8px; }
.footer__brand span { font-family: var(--font-display); font-weight: 700; color: var(--text-primary); }
.footer p.footer__desc { color: var(--text-secondary); font-size: 0.92rem; max-width: 34ch; }

.footer h4 { font-size: 0.85rem; color: var(--text-primary); margin-bottom: 1rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__links a { color: var(--text-secondary); font-size: 0.92rem; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--blue-soft); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 800px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px -10px var(--glow-green);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 20px 50px -8px var(--glow-green); }
.wa-float img { width: 30px; height: 30px; }

@media (max-width: 520px) {
  .wa-float { width: 54px; height: 54px; right: 1rem; bottom: 1rem; }
  .wa-float img { width: 26px; height: 26px; }
}

/* ---------- Motion (GSAP-controlled, hidden pre-JS state) ---------- */
.js-hero-in,
.js-reveal-target {
  will-change: transform, opacity;
}

/* ---------- Modal: detalle de servicio ---------- */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.service-modal.is-open { display: flex; }

.service-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modal-fade 0.25s var(--ease);
}

.service-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(160deg, var(--bg-elevated-2), var(--bg-elevated) 70%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  animation: modal-pop 0.3s var(--ease);
}
.service-modal__dialog:focus { outline: none; }

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.service-modal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--glass);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.service-modal__close:hover { color: var(--text-primary); border-color: var(--blue-soft); }

.service-modal__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.25);
  margin-bottom: 1.25rem;
}

.service-modal__title { font-size: 1.4rem; color: var(--text-primary); margin-bottom: 0.6rem; padding-right: 2rem; }
.service-modal__description { color: var(--text-secondary); font-size: 0.98rem; margin-bottom: 1.5rem; }

.service-modal__list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.service-modal__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.service-modal__list i { color: var(--green); font-size: 1.15rem; flex-shrink: 0; margin-top: 0.1rem; }

@media (max-width: 520px) {
  .service-modal { padding: 1rem; }
  .service-modal__dialog { max-height: 90vh; }
}
