:root {
  --brand: #0d6efd;
  --brand-ink: #0b5ed7;
  --ink: #0f172a;
  --muted: #6c757d;

  --brand-green: #16a34a;
  --brand-green-ink: #13823d;
  --brand-green-ghost: rgba(22,163,74,.1);

  --brand-orange: #ffb366;   /* título */
  --deep-green:   #0f5132;   /* (ya no se usa para subtítulo) */

  --hero-bg: radial-gradient(60% 60% at 70% 30%, rgba(22,163,74,.22), transparent 60%),
             radial-gradient(40% 40% at 20% 70%, rgba(13,110,253,.18), transparent 60%);
}

/* Base */
*{ box-sizing: border-box; }
html { scroll-behavior: smooth; }
body{
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
}

/* ===== HERO (fondo oscuro con Matrix) ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;

  background-color: #0b1220;   /* más oscuro */
  background-image: var(--hero-bg);
  transition: height .4s ease, padding .3s ease, opacity .35s ease, transform .35s ease;
}

.matrix-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  filter: saturate(1.2);
  opacity:.35;
  pointer-events:none;
}

.hero .container {
  text-align: left;              /* Alinea todo el contenido a la izquierda */
}

.hero .row {
  justify-content: flex-start !important;
}

.hero .col-12 {
  text-align: left;
  align-items: flex-start;
}


.hero-fade-bottom{
  position:absolute; left:0; right:0; bottom:0; height:100px;
  background: linear-gradient(180deg, rgba(11,18,32,0), #ffffff);
  z-index:1;
}

/* Contracción suave al hacer scroll */
.hero.shrink { height: 60vh; padding-block: 2rem; }

/* === Logo más grande que el texto principal === */
.hero-logo {
  max-width: 320px;              /* Agrandado respecto al texto */
  width: 40vw;                   /* Escala proporcionalmente según pantalla */
  height: auto;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp .9s ease-out .1s forwards;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.25));
  display: block;
  margin-bottom: 1rem;
}

.hero-title,
.hero-subtitle {
  text-align: left;
}

@keyframes fadeUp{
  to { opacity:1; transform: translateY(0); }
}

/* ===== Título y subtítulo ===== */
.fw-900{ font-weight: 900; }

.hero-title.brand-orange{
  color: var(--brand-orange);
  font-size: clamp(3.5rem, 10.5vw, 7.5rem); /* bien grande y adaptable */
  line-height: 1.05;
  text-shadow: 0 3px 15px rgba(0,0,0,.25);
  margin-top: .25rem;
}

.hero-subtitle{
  color: #ffffff;
  opacity: .92;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.65;
}

/* ===== Botones ===== */
.btn-brand{
  background: var(--brand-green);
  color: #fff;
  border: 1px solid var(--brand-green);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn-brand:hover{
  background: var(--brand-green-ink);
  border-color: var(--brand-green-ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.btn-outline-brand{
  background: transparent;
  color: var(--brand-green);
  border: 1px solid var(--brand-green);
}
.btn-outline-brand:hover{
  background: var(--brand-green-ghost);
  color: var(--brand-green-ink);
  border-color: var(--brand-green-ink);
}

/* ===== Chips de herramientas ===== */
.stack { font-size: .95rem; }
.stack-label{ display:inline-block; margin-right:.5rem; color:#c9d1d9; }
.stack-list{
  display:inline-flex; flex-wrap:wrap; gap:.4rem .5rem;
  list-style:none; margin:.25rem 0 0; padding:0;
}
.stack-list li{
  padding:.28rem .6rem;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background: rgba(255,255,255,.05);
  color: #e6edf3;
  box-shadow: 0 .2rem .6rem rgba(0,0,0,.25);
  white-space:nowrap;
}

/* WhatsApp flotante */
.whatsapp-float{
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px; height: 56px;
  display:grid; place-items:center;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  z-index: 1000;
}
.whatsapp-float:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.25);
  background: #1ebe5d;
}

/* ======== Servicios con mini-carruseles en tarjetas ======== */
.services { background: #fff; } /* o dejá transparente si preferís */
.services .h3 { color: #0f172a; }

.services-grid{
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(1, minmax(0,1fr));
}
@media (min-width: 576px){
  .services-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.services-grid{
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(1, minmax(0,1fr));
}

@media (min-width: 768px){
  .services-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.service-card {
  background: #083b2d;                 /* verde oscuro elegante */
  color: #e8f1ec;
  border: none;
  border-radius: 16px;
  min-height: 420px;
  padding: 1.5rem 1.5rem 3.25rem;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.service-card .title {
  font-family: 'Oswald', sans-serif;  /* más alta que ancha */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #ffb347;                     /* naranja brillante */
}

.service-card .kicker{
  color: #94a3b8;
  margin-bottom: 1rem;
}
/* Subtítulos dentro de los carruseles */
.service-card .subtitle {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: #ffb347;                     /* mismo tono naranja */
}

.service-card .desc,
.service-card .kicker {
  color: #d2e6dc;
}
/* Título de clientes alineado como el H2 de Servicios */
.services .clients h3 {
  text-align: left !important;
  margin-left: 0;
}

/* Full-bleed: estira el carrusel a 100vw aunque esté dentro de .container */
.services .clients {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  padding-left: max(calc((100vw - 1320px)/2), 16px);  /* respeta padding a grandes anchos, ajusta si usás container-xl */
  padding-right: max(calc((100vw - 1320px)/2), 16px);
}

/* antes
.client-item img{
  height: clamp(40px, 6vw, 70px);
...
}
*/

/* ahora, más grandes */
.client-item img{
  height: clamp(56px, 8.5vw, 96px);
  width: auto;
  display: block;
  filter: grayscale(100%) contrast(92%) brightness(92%);
  transition: filter .2s ease, transform .2s ease, opacity .2s ease;
  user-select: none;
  -webkit-user-drag: none;
}



/* Mini-carousel */
.mini-carousel { height: 100%; display: grid; }
.mini-carousel .slides{
  position: relative;
  min-height: 280px;
}
.mini-carousel .slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease;
}
.mini-carousel .slide.active{
  opacity: 1;
  transform: translateY(0);
}

/* Dots */
.mini-carousel .dots{
  position: absolute;
  left: 0; right: 0; bottom: 1.1rem;
  display: flex; gap: .45rem;
  justify-content: center;
  align-items: center;
}
.mini-carousel .dots button{
  width: 7px; height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  border: none;
  padding: 0;
  transition: transform .15s ease, background .2s ease;
}
.mini-carousel .dots button[aria-current="true"]{
  background: #ffb366;          /* naranja del tema */
  transform: scale(1.15);
}
.mini-carousel .dots button:focus-visible{
  outline: 2px solid #ffb366;
  outline-offset: 2px;
}

/* Hover sutil en la tarjeta */
.service-card:hover{
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
  transform: translateY(-1px);
  transition: box-shadow .2s ease, transform .2s ease;
}

/* ===== Carrusel de clientes ===== */
.clients { width: 100%; }

.clients-carousel{
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 12px 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fafb, #ffffff);
  border: 1px solid rgba(0,0,0,.06);
}

.clients-track{
  display: flex;
  align-items: center;
  column-gap: 32px;      /* 👈 importante: coincide con GAP del JS */
  white-space: nowrap;   /* evita wraps raros */
  will-change: transform;
  transform: translateZ(0);
}

.client-item{
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 10px 6px;
  opacity: .9;
  transition: transform .2s ease, opacity .2s ease;
}

.client-item:hover{
  opacity: 1;
  transform: translateY(-2px);
}
.client-item:hover img{
  filter: none;                 /* pasa a color */
  transform: scale(1.04);
}

/* Fader lateral (opcional sutil) */
.clients-carousel::before,
.clients-carousel::after{
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  pointer-events: none;
}
.clients-carousel::before{
  left: 0;
  background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0));
}
.clients-carousel::after{
  right: 0;
  background: linear-gradient(270deg, rgba(255,255,255,1), rgba(255,255,255,0));
}

/* Modo dark dentro de tarjetas verdes (por si anida visualmente) */
.services .clients-carousel{
  background: linear-gradient(180deg, #f5f7f6, #ffffff);
  border-color: rgba(0,0,0,.05);
}

.clients-track { will-change: transform; transform: translateZ(0); }


/* ===== Contacto minimal ===== */
.contacto-min {
  background: #ffffff;
}
.contacto-list {
  display: grid;
  gap: 1rem;
}
.contacto-list .item {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: baseline;
  gap: .5rem 1rem;
  padding: .4rem 0;
  border-bottom: 1px dashed rgba(0,0,0,.08);
}
.contacto-list .item:last-child { border-bottom: 0; }

.contacto-list .label {
  color: #64748b;            /* gris suave */
  font-size: .95rem;
}
.contacto-list .value {
  color: #0f172a;
  font-weight: 500;
  text-decoration: none;
}
.contacto-list a.value:hover { text-decoration: underline; }

.letter-spread { letter-spacing: .08em; }

/* Suscripción: campo + botón pegados en móvil también */
@media (max-width: 575.98px) {
  .subscribe { flex-direction: column; }
  .subscribe .btn { width: 100%; }
}


/* Contacto: verde extremadamente claro */
.contacto-min {
  background: #F3FBF6; /* tono muy suave */
}

/* WhatsApp flotante: etiqueta "chatea con nosotros" */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  z-index: 1000;
}

.whatsapp-float:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.25);
  background: #1ebe5d;
}

/* Burbuja de texto al costado */
.whatsapp-float .label{
  position: absolute;
  right: 64px;
  white-space: nowrap;
  background: #1f2937;   /* gris muy oscuro */
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .85rem;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity .2s ease, transform .2s ease;
}

.whatsapp-float:hover .label{
  opacity: 1;
  transform: translateX(0);
}
#servicios {
  scroll-margin-top: 100px; /* ajusta según la altura del header o navbar */
}
