:root{
  --bg:#ffffff;
  --soft:#f6f8fb;
  --text:#0f172a;
  --muted:#64748b;

  --brand:#2f6b2f;
  --brand2:#7bbf3a;
  --dark:#0b1b2b;

  --border:#e5e7eb;
  --shadow: 0 18px 55px rgba(15,23,42,.10);
  --shadow2: 0 10px 30px rgba(15,23,42,.08);
  --radius:18px;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  position:relative;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(1120px, 92%); margin:0 auto; }
.muted{ color:var(--muted); }

/* ==========================
   ✅ Marca de agua (logo.jpg)
   fija al fondo, no estorba clics
   ========================== */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background-image: url("../img/logo.jpg");
  background-repeat:no-repeat;
  background-position:center;
  background-size: min(720px, 70vw);
  opacity:.05;
  pointer-events:none;
  z-index:-1;
  filter: grayscale(10%) contrast(1.05);
}

/* ===== Textos justificados (desktop) ===== */
p, .muted{
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
h1,h2,h3,h4,h5,h6{ text-align:left; }

/* ===== Header ===== */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}

/* Logo un poco más grande */
.brand__logo{
  height:90px;
  width:170px;
  display:block;
}

/* Nav desktop */
.nav{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Links con raya verde al hover (sin “rueda”) */
.nav__link{
  position:relative;
  padding:12px 14px;
  border:0;
  border-radius:12px;
  font-weight:700;
  color:#334155;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.nav__link::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:6px;
  height:3px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  transform: scaleX(0);
  transform-origin:left;
  transition: transform .22s ease;
  opacity:.95;
}
.nav__link:hover{
  background: rgba(47,107,47,.06);
  transform: translateY(-1px);
}
.nav__link:hover::after{ transform: scaleX(1); }
.nav__link.active{
  color:#0f172a;
  background: rgba(15,23,42,.04);
}
.nav__link.active::after{ transform: scaleX(1); }

.nav__cta{ margin-left:6px; }

/* Burger */
.nav-toggle{
  display:none;
  width:44px; height:44px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:5px;
  flex-direction:column;
}
.nav-toggle span{
  width:18px; height:2px;
  background:#334155;
  display:block;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid transparent;
  font-weight:800;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space:nowrap;
}
.btn--primary{
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  color:#fff;
  box-shadow: 0 10px 26px rgba(47,107,47,.18);
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: 0 16px 36px rgba(47,107,47,.22); }
.btn--ghost{
  background:#fff;
  border-color:var(--border);
  color:#0f172a;
}
.btn--ghost:hover{ background:var(--soft); transform: translateY(-1px); }
.btn--dark{
  width:100%;
  background:var(--dark);
  color:#fff;
  border-radius:14px;
}
.btn--dark:hover{ transform: translateY(-2px); }

/* Acomodar botones */
.hero__actions{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}
.hero__actions .btn{ min-width:170px; }

/* ===== Hero ===== */
.hero{
  position:relative;
  padding:56px 0 34px;
  overflow:hidden;
}
.hero__bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 340px at 15% 35%, rgba(123,191,58,.20), transparent 60%),
    radial-gradient(900px 340px at 90% 20%, rgba(47,107,47,.18), transparent 60%),
    linear-gradient(180deg, #ffffff, #f7fafc);
}

/* decor blobs */
.hero__decor{ position:absolute; inset:0; pointer-events:none; }
.blob{
  position:absolute;
  width:420px; height:420px;
  border-radius:50%;
  filter: blur(28px);
  opacity:.25;
  animation: float 10s ease-in-out infinite;
}
.blob--1{ left:-120px; top:140px; background: rgba(123,191,58,.55); animation-duration: 12s; }
.blob--2{ right:-160px; top:40px; background: rgba(47,107,47,.40); animation-duration: 14s; }
.blob--3{ right:120px; bottom:-220px; background: rgba(123,191,58,.40); animation-duration: 16s; }

@keyframes float{
  0%,100%{ transform: translateY(0) translateX(0); }
  50%{ transform: translateY(-18px) translateX(12px); }
}

/* ✅ HERO GRID: columna derecha fija + tarjeta pegada a la derecha */
.hero__content{
  position:relative;
  display:grid;
  grid-template-columns: 1fr 520px; /* derecha fija */
  gap:40px;
  align-items:stretch;
}

.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.88);
  color:#334155;
  font-weight:700;
  margin-bottom:14px;
  backdrop-filter: blur(8px);
}

.hero h1{
  font-size:clamp(30px, 3.2vw, 48px);
  line-height:1.08;
  letter-spacing:-.02em;
}
.accent{ color:var(--brand); }

.hero__lead{
  margin-top:12px;
  font-size:16px;
  line-height:1.75;
  color:#475569;
  max-width:58ch;
}

.hero__mini{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
}
.mini{
  background:rgba(255,255,255,.88);
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  box-shadow: var(--shadow2);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mini:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.mini__title{ font-weight:900; font-size:13px; }
.mini__desc{ margin-top:4px; font-size:13px; color:var(--muted); }

/* ✅ Tarjeta: más alta y pegada a la derecha */
.hero__card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:26px;
  padding:26px 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);

  width:480px;          /* ✅ asegura tamaño */
  min-height:480px;     /* ✅ más alta */
  justify-self:end;     /* ✅ se va a la derecha */
}

/* ✅ Imagen completa sin recorte */
.hero__imgFull{
  width:100%;
  height:auto;
  display:block;
  border-radius:18px;
  border:1px solid rgba(226,232,240,.9);
  margin-bottom:14px;
  box-shadow: 0 14px 35px rgba(15,23,42,.10);
}

.hero__card h3{ font-size:18px; }
.hero__card p{ margin-top:8px; line-height:1.7; }
.hero__cardRow{
  margin:12px 0 14px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.pill{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--soft);
  font-weight:800;
  font-size:12px;
  color:#334155;
  transition: transform .2s ease;
}
.pill:hover{ transform: translateY(-1px); }
.hero__hint{
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
  text-align:left;
}

/* ===== Sections ===== */
.section{ padding:60px 0; }
.section--soft{ background:var(--soft); }
.section__head{ margin-bottom:18px; }
.section__head h2{
  font-size:clamp(24px, 2.3vw, 34px);
  letter-spacing:-.02em;
}
.section__head p{ margin-top:6px; }

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:26px;
  align-items:start;
}

/* List */
.list{ margin:18px 0; display:grid; gap:12px; }
.list__item{
  display:flex; gap:12px;
  padding:14px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow: var(--shadow2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.list__item:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.dot{
  width:10px; height:10px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  margin-top:7px;
}

/* ✅ CTA Nosotros: centra el botón "Conoce más" */
.nosotros__cta{
  display:flex;
  justify-content:center;
  margin-top:14px;
}

/* Panel */
.panel{
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  padding:18px;
  box-shadow: var(--shadow);
}
.kpis{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
}
.kpi{
  border:1px solid var(--border);
  background:var(--soft);
  border-radius:16px;
  padding:14px;
  transition: transform .2s ease;
}
.kpi:hover{ transform: translateY(-2px); }
.kpi__num{ font-weight:900; font-size:20px; color:#0f172a; }
.kpi__text{ margin-top:6px; font-size:13px; color:var(--muted); }
.panel__note{
  margin-top:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px dashed #cbd5e1;
  background:#fff;
  color:#334155;
}

/* ===== Fondo tech (servicios) ===== */
.techBG{
  position:relative;
  overflow:hidden;
}
.techBG::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    radial-gradient(700px 280px at 18% 25%, rgba(47,107,47,.10), transparent 55%),
    radial-gradient(700px 280px at 85% 30%, rgba(123,191,58,.12), transparent 60%),
    url("https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=1400&q=60");
  background-size: cover;
  background-position:center;
  opacity:.08;
  pointer-events:none;
  filter: grayscale(1) contrast(1.05);
}
.techBG > *{ position:relative; }

/* Cards services */
.cards{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}
.card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:20px;
  padding:18px;
  box-shadow: var(--shadow2);
  transition: transform .2s ease, box-shadow .2s ease;
  backdrop-filter: blur(8px);
}
.card:hover{ transform: translateY(-3px); box-shadow: var(--shadow); }
.icon{
  width:46px; height:46px;
  display:grid; place-items:center;
  border-radius:16px;
  background:linear-gradient(135deg, rgba(47,107,47,.12), rgba(123,191,58,.14));
  border:1px solid var(--border);
  font-size:20px;
  margin-bottom:10px;
}
.card h3{ font-size:16px; }
.card p{ margin-top:8px; line-height:1.7; }

/* CTA */
.cta{
  margin-top:18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:18px;
  border-radius:22px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow: var(--shadow2);
}

/* ===== Logo box (se reutiliza para carrusel) ===== */
.logoBox{
  height:120px;
  border-radius:18px;
  border:1px solid var(--border);
  background:linear-gradient(180deg, #ffffff, #f8fafc);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  box-shadow: var(--shadow2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.logoBox img{
  max-width:85%;
  max-height:85%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
  opacity:.96;
  transition: transform .2s ease, opacity .2s ease, filter .2s ease;
}
.logoBox:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.logoBox:hover img{
  opacity:1;
  transform: scale(1.03);
  filter:none;
}
.logoBox.is-round img{
  max-width:78%;
  max-height:78%;
}

/* ==========================
   ✅ Carrusel Clientes (auto) — MÁS GRANDE
   ========================== */
.clientsCarousel{
  margin-top: 22px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;

  /* ✅ más “caja” / presencia */
  padding: 18px 14px;
  background: rgba(255,255,255,.70);
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
}
.clientsCarousel::before,
.clientsCarousel::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 140px;              /* ✅ fades más anchos */
  z-index: 2;
  pointer-events:none;
}
.clientsCarousel::before{
  left:0;
  background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0));
}
.clientsCarousel::after{
  right:0;
  background: linear-gradient(270deg, rgba(255,255,255,1), rgba(255,255,255,0));
}
.clientsTrack{
  display:flex;
  gap: 18px;                 /* ✅ un poquito más de aire */
  will-change: transform;
  animation: clientsScroll 28s linear infinite;
}
.clientsCarousel:hover .clientsTrack{ animation-play-state: paused; }
@keyframes clientsScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ✅ Tamaño de cada tarjeta de logo (AHORA MÁS GRANDE) */
.clientsCarousel .logoBox{
  flex: 0 0 auto;
  width: 230px;              /* ✅ antes 180 */
  height: 140px;             /* ✅ antes 110 */
  border-radius: 20px;
  padding: 18px;
}

/* ✅ Logos un poco más grandes dentro */
.clientsCarousel .logoBox img{
  max-width: 92%;
  max-height: 92%;
}

/* ==========================
   CONTACTO (LIMPIO Y PRO)
   ========================== */
.contact{ display:block; }
.contact__cards{
  display:grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(260px, 1fr);
  gap:16px;
  align-items:stretch;
}
.infoCard{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  box-shadow: var(--shadow2);
  transition: transform .2s ease;
  height:100%;
}
.infoCard:hover{ transform: translateY(-2px); }
.infoCard__title{
  font-weight:900;
  margin-bottom:8px;
  display:flex;
  gap:10px;
  align-items:center;
}

/* ✅ Evita cortes tipo "Man- zanillo" SOLO en Contacto */
.contact .muted{
  text-align:left !important;
  text-justify:auto;
  hyphens:none !important;
  word-break:normal;
  overflow-wrap:break-word;
}
.infoCard a{
  color:var(--brand);
  font-weight:800;
  display:inline-block;
  overflow-wrap:anywhere;
}

/* Mapa */
.map{
  margin-top:16px;
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow: var(--shadow2);
}
.map iframe{
  width:100%;
  height:320px;
  border:0;
  display:block;
}

/* Footer */
.footer{
  padding:22px 0;
  border-top:1px solid var(--border);
  background:#fff;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

/* ===== Animaciones profesionales (scroll reveal + stagger) ===== */
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .75s ease, transform .75s ease;
  transition-delay: var(--d, 0ms);
  will-change: transform, opacity;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero__content{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: repeat(2, 1fr); }

  .hero__card{
    width:100%;
    min-height:auto;
    justify-self: stretch;
  }
}

@media (max-width: 720px){
  .brand__logo{ height:46px; width:auto; }
  .nav-toggle{ display:flex; }

  /* Menú móvil */
  .nav{
    position:fixed;
    left:0; right:0;
    top:78px;
    background:#fff;
    border-bottom:1px solid var(--border);
    box-shadow: var(--shadow2);
    padding:12px;
    display:none;
    flex-direction:column;
    align-items:stretch;
  }
  .nav--open{ display:flex; }
  .nav__link{ width:100%; }
  .nav__cta{ width:100%; margin-left:0; }

  .nav__link::after{
    left:14px;
    right:14px;
    bottom:8px;
  }

  .hero{ padding-top:32px; }
  .hero__mini{ grid-template-columns:1fr; }
  .cards{ grid-template-columns:1fr; }
  .cta{ flex-direction:column; align-items:flex-start; }

  /* En móvil mejor sin justificar para evitar huecos */
  p, .muted{ text-align:left; }

  /* Marca de agua más chica en móvil */
  body::before{
    background-size: min(420px, 82vw);
    opacity:.05;
  }

  /* ✅ Carrusel más grande también en móvil */
  .clientsCarousel .logoBox{
    width: 180px;   /* ✅ antes 150 */
    height: 120px;  /* ✅ antes 104 */
  }
  .clientsCarousel::before,
  .clientsCarousel::after{ width: 85px; } /* ✅ antes 70 */
  .clientsTrack{ animation-duration: 20s; }

  /* Contacto en móvil */
  .contact__cards{ grid-template-columns: 1fr; }
}

/* ==========================
   ✅ WhatsApp flotante PRO
   ========================== */
.wa-float--pro{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(229,231,235,.9);
  box-shadow: 0 18px 45px rgba(15,23,42,.18);
  backdrop-filter: blur(10px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float--pro::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 30%, rgba(37,211,102,.35), transparent 55%);
  opacity:.9;
  z-index:-1;
  filter: blur(10px);
}
.wa-icon{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #25D366;
  box-shadow: 0 14px 35px rgba(37,211,102,.26);
  position: relative;
}
.wa-icon::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:999px;
  border:2px solid rgba(37,211,102,.35);
  animation: waPulse 1.8s ease-out infinite;
}
@keyframes waPulse{
  0%{ transform: scale(.85); opacity:.85; }
  100%{ transform: scale(1.25); opacity:0; }
}
.wa-icon svg{
  width: 28px;
  height: 28px;
  fill: #fff;
}
.wa-badge{
  font-weight: 900;
  font-size: 13px;
  color: #0f172a;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(37,211,102,.10);
  border: 1px solid rgba(37,211,102,.22);
  letter-spacing: .2px;
}
.wa-float--pro:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(15,23,42,.22);
}
@media (max-width: 720px){
  .wa-float--pro{
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .wa-float--pro::before{ display:none; }
  .wa-badge{ display:none; }
  .wa-icon{ width: 56px; height: 56px; }
}

/* =======================
   EQUIPOS (CENTRADO PRO)
======================= */
.equipos{
  text-align: left;
}

.equipos__img{
  margin-top: 28px;
  display: flex;
  justify-content: center; /* ✅ centra horizontal */
}

.equipos__frame{
  width: min(100%, 980px);
  min-height: 420px;

  display: flex;                 /* ✅ flexbox */
  align-items: center;           /* ✅ centra vertical */
  justify-content: center;       /* ✅ centra horizontal */

  background: #fff;
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,.10);
  padding: 24px;
}

.equipos__frame img{
  max-width: 100%;
  height: auto;
  display: block;
}

