/* =========================================================
   Entre Sistemas - Hoja de estilos
   Paleta tomada del logo ovalado:
   azul marino de fondo + dorado del monograma "ES"
   ========================================================= */
:root {
  --navy-900: #06142b;
  --navy-800: #0a1d3b;   /* fondo del logo */
  --navy-700: #12295091;
  --navy-600: #1a3462;
  --gold-300: #f3dc8a;
  --gold-400: #e2c15a;
  --gold-500: #d8b648;   /* dorado del logo */
  --gold-600: #b8912c;
  --gold-700: #8f6b17;
  --gold-grad: linear-gradient(135deg, #f3dc8a 0%, #d8b648 40%, #b8912c 75%, #e2c15a 100%);
  --ink: #142037;
  --muted: #5b6678;
  --paper: #ffffff;
  --paper-alt: #f5f3ee;
  --line: #e4e0d6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 20, 43, .10);
  /* Tipografía: IBM Plex Sans (la misma que usa Buenos Aires Software) */
  --font-sans: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  --font-serif: "IBM Plex Sans", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }
h1, h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold-400);
  margin-bottom: .9em;
}
.eyebrow--dark { color: var(--gold-700); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .55em 1.1em; font-size: .88rem; }
.btn--gold { background: var(--gold-grad); color: var(--navy-900); box-shadow: 0 6px 18px rgba(216, 182, 72, .35); }
.btn--gold:hover { box-shadow: 0 10px 24px rgba(216, 182, 72, .5); }
.btn--outline { border-color: var(--gold-500); color: var(--gold-300); background: transparent; }
.btn--outline:hover { background: rgba(216, 182, 72, .12); }
.btn--outline-dark { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn--outline-dark:hover { background: var(--navy-800); color: #fff; }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 29, 59, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(216, 182, 72, .25);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7em; text-decoration: none; color: #fff; }
.brand__logo { height: 46px; width: auto; }
.brand__name { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 1.6em; }
.nav a:not(.btn) {
  color: #dfe5ef; text-decoration: none; font-size: .93rem; font-weight: 500; position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold-500); transition: width .2s ease;
}
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold-400); transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(216, 182, 72, .14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(26, 52, 98, .9), transparent 70%),
    var(--navy-800);
  color: #fff;
  padding: clamp(64px, 10vw, 120px) 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 1.12rem; color: #c9d2e1; max-width: 38em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__logo { display: flex; justify-content: center; }
.hero__logo img {
  width: min(360px, 80%);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.45));
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(216, 182, 72, .55), 0 0 0 12px rgba(216, 182, 72, .08);
}

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--paper-alt); }
.section--dark { background: var(--navy-800); color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__sub { color: #c9d2e1; }

.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.two-col--center { align-items: center; }
.two-col p { color: var(--muted); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: var(--navy-800); color: #fff; border-radius: var(--radius);
  padding: 28px 22px; display: flex; flex-direction: column; gap: 4px;
  border: 1px solid rgba(216, 182, 72, .3);
}
.stat__num { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; color: var(--gold-400); line-height: 1; }
.stat__label { color: #c9d2e1; font-size: .92rem; }

/* ---------- Tarjetas de servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 30px 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-500); }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 18px;
  background: var(--navy-800); display: grid; place-items: center;
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-400); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Productos BAS ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(216, 182, 72, .35);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.product h3 { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: .4em; }
.product p { color: #c9d2e1; flex: 1; }
.product__tag {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600;
  color: var(--gold-400); margin-bottom: 12px;
}
.product--more { border-style: dashed; }

/* ---------- IA ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E");
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: calc(.35em + 4px); width: 4px; height: 8px;
  border: solid var(--navy-900); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
#ia { overflow: hidden; }
.ia-visual { position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; margin-inline: auto; display: grid; place-items: center; }
.ia-visual__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px dashed rgba(184, 145, 44, .5);
  animation: girar 30s linear infinite;
}
.ia-visual__ring--2 { inset: 16%; border-style: solid; border-color: rgba(10, 29, 59, .15); animation-direction: reverse; animation-duration: 20s; }
.ia-visual__ring--2::before {
  content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--gold-500);
}
.ia-visual__core {
  width: 44%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--navy-600), var(--navy-900));
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700;
  color: var(--gold-400);
  box-shadow: 0 0 0 6px rgba(216, 182, 72, .25), var(--shadow);
}
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ia-visual__ring { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Contacto ---------- */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list a { text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold-700); }
.contact-list__icon {
  flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--navy-800);
  display: grid; place-items: center;
}
.contact-list__icon svg { width: 20px; height: 20px; fill: var(--gold-400); }
.contact-list li:nth-child(2) svg, .contact-list li:nth-child(3) svg { fill: none; stroke: var(--gold-400); stroke-width: 1.8; stroke-linejoin: round; }

.form {
  background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
  border-top: 4px solid var(--gold-500);
  display: grid; gap: 16px;
}
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--navy-800); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: .75em .9em; border: 1px solid var(--line); border-radius: 10px; background: #fbfaf7;
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(216, 182, 72, .25); background: #fff;
}
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__error { color: #b42318; margin: 0; font-size: .9rem; }

/* ---------- Pie ---------- */
.footer { background: var(--navy-900); color: #c9d2e1; padding: 36px 0; border-top: 1px solid rgba(216, 182, 72, .25); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand strong { display: block; color: #fff; font-family: var(--font-serif); font-size: 1.3rem; }
.footer__brand span { font-size: .85rem; }
.footer__logo { height: 52px; width: auto; }
.footer__copy { margin: 0; font-size: .85rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.3);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .products { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-800); border-bottom: 1px solid rgba(216, 182, 72, .25);
    padding: 8px 16px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__logo { order: -1; }
  .hero__logo img { width: 200px; }
  .hero__cta { justify-content: center; }
  .lead { margin-inline: auto; }
}
@media (max-width: 600px) {
  .cards, .products { grid-template-columns: 1fr; }
  .brand__name { font-size: 1.25rem; }
  .form { padding: 22px; }
}

/* ---------- Líneas de productos BAS ---------- */
.bas-line + .bas-line { margin-top: 48px; }
.bas-line__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid rgba(216, 182, 72, .3); padding-bottom: 14px; margin-bottom: 22px;
}
.bas-line__head h3 { font-family: var(--font-serif); font-size: 1.5rem; margin: 0; color: #fff; }
.bas-line__badge {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700;
  color: var(--navy-900); background: var(--gold-grad); padding: .35em .9em; border-radius: 6px;
}
.product--featured { background: linear-gradient(180deg, rgba(216,182,72,.18), rgba(216,182,72,.05)); border-color: var(--gold-500); }

/* ---------- Clientes ---------- */
.muted { color: var(--muted); }
.clients { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.client {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.client:hover { transform: translateY(-3px); border-color: var(--gold-500); }
.client__mono {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-400);
  display: grid; place-items: center; font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem;
  border: 1px solid rgba(216, 182, 72, .5);
}
.client__name { font-weight: 600; color: var(--navy-800); line-height: 1.3; font-size: .95rem; }
@media (max-width: 960px) { .clients { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .clients { grid-template-columns: 1fr; } }

/* ---------- Soluciones con IA ---------- */
.ia-subtitle { font-family: var(--font-serif); font-size: 1.6rem; text-align: center; margin: 64px 0 28px; }
.ia-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ia-group {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold-500);
  border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow);
}
.ia-group h3 { font-size: 1.15rem; color: var(--navy-800); }
.checklist--sm { margin: 0; }
.checklist--sm li { margin-bottom: 10px; font-size: .96rem; }
@media (max-width: 960px) { .ia-groups { grid-template-columns: 1fr; } }

/* ---------- Desarrollos (galería) ---------- */
.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.filtro {
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  padding: .5em 1.1em; border-radius: 999px;
  background: transparent; color: #dfe5ef; border: 1px solid rgba(216, 182, 72, .45);
  transition: background .2s ease, color .2s ease;
}
.filtro:hover { background: rgba(216, 182, 72, .12); }
.filtro.is-active { background: var(--gold-grad); color: var(--navy-900); border-color: transparent; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shot {
  margin: 0; background: rgba(255,255,255,.04); border: 1px solid rgba(216, 182, 72, .3);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
}
.shot[hidden] { display: none; }
.shot__img { all: unset; cursor: zoom-in; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.shot__img:focus-visible { outline: 3px solid var(--gold-400); outline-offset: -3px; }
.shot__img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .35s ease; }
.shot__img:hover img { transform: scale(1.04); }
.shot figcaption { padding: 16px 18px 20px; display: grid; gap: 4px; }
.shot figcaption strong { color: #fff; font-size: 1rem; }
.shot figcaption span:last-child { color: #c9d2e1; font-size: .9rem; }
.shot__tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--gold-400); }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(6, 20, 43, .94);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1500px, 100%); max-height: calc(100vh - 110px); border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.lightbox__caption { color: #dfe5ef; margin: 14px 0 0; text-align: center; }
.lightbox__close {
  position: absolute; top: 12px; right: 16px; font-size: 2.4rem; line-height: 1;
  background: none; border: 0; color: var(--gold-400); cursor: pointer;
}
@media (max-width: 960px) { .shots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .shots { grid-template-columns: 1fr; } }

/* ---------- Tarjeta destacada (capacitaciones) ---------- */
.card--wide {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  background: var(--navy-800); border-color: rgba(216, 182, 72, .45);
}
.card--wide .card__icon { margin: 0; background: var(--gold-grad); }
.card--wide .card__icon svg { stroke: var(--navy-900); }
.card--wide h3 { color: #fff; }
.card--wide p { color: #c9d2e1; }
@media (max-width: 700px) { .card--wide { grid-template-columns: 1fr; } .card--wide .btn { justify-self: start; } }

/* ---------- Clientes con logo ---------- */
.client { flex-direction: column; justify-content: center; text-align: center; gap: 14px; padding: 24px 18px; }
.client__logo { height: 72px; width: 100%; display: flex; align-items: center; justify-content: center; }
.client__logo img { max-height: 72px; max-width: 80%; width: auto; height: auto; object-fit: contain; }
.client__mono { width: 60px; height: 60px; font-size: 1.3rem; }

/* Clientes: la última fila queda centrada */
.clients { display: flex; flex-wrap: wrap; justify-content: center; }
.clients .client { flex: 0 1 calc((100% - 54px) / 4); }
@media (max-width: 960px) { .clients .client { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 480px) { .clients .client { flex-basis: 100%; } }
.client__sub { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.client__link { display: contents; color: inherit; text-decoration: none; }
.client__link:hover .client__name, .client__link:focus-visible .client__name { color: var(--gold-500); text-decoration: underline; }
