/* Óptimo · v2 — estructura inspirada en el sitio Wix, rojo solo como acento */
:root {
  --ink: #1A1A1A;
  --bordo: #8B1A2B;
  --gray: #6B6B6B;
  --light: #F4F4F4;
  --line: #E2E2E2;
  --white: #FFFFFF;
  --max: 1140px;
  --header-h: 88px;
  --font: "Aptos", "Inter", "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 300; /* Aptos Light */
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
strong, b { font-weight: 600; }
img { max-width: 100%; display: block; }
a { color: var(--bordo); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; }

/* ---------- Header (blanco, como en Wix) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 44px; margin-left: auto; }
.nav a {
  color: var(--ink); font-size: 15.5px; font-weight: 400; text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--bordo); text-decoration: none; }
.header-social { display: flex; gap: 14px; align-items: center; }
.header-social a, .social a { color: var(--ink); display: inline-flex; }
.header-social svg { width: 20px; height: 20px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 28px; cursor: pointer; line-height: 1; }

/* ---------- Títulos ---------- */
.title {
  font-family: var(--font); font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px); letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink); line-height: 1.15; text-align: center; margin-bottom: 14px;
}
.title::after {
  content: ""; display: block; width: 56px; height: 2px; background: var(--bordo);
  margin: 18px auto 0;
}
.title.left { text-align: left; }
.title.left::after { margin-left: 0; }
.subtitle { text-align: center; color: var(--gray); font-size: 19px; max-width: 760px; margin: 0 auto 40px; }
h3 { font-family: var(--font); font-weight: 600; font-size: 21px; line-height: 1.3; color: var(--ink); margin: 0 0 10px; }

/* ---------- Botones (contorno fino, como en Wix) ---------- */
.btn {
  display: inline-block; margin-top: 28px;
  background: var(--white); color: var(--bordo) !important;
  border: 1px solid var(--bordo);
  font-family: var(--font); font-size: 15px; font-weight: 400;
  padding: 12px 34px; text-decoration: none !important; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--bordo); color: var(--white) !important; }
.btn-white { background: var(--white); color: var(--ink) !important; border-color: var(--white); padding: 9px 20px; font-size: 14px; }
.btn-white:hover { background: transparent; color: var(--white) !important; }

/* ---------- Secciones ---------- */
.section { padding: 96px 32px; }
.section-light { background: var(--light); }
.center { text-align: center; }

/* ---------- Hero con caja blanca superpuesta ---------- */
.hero {
  position: relative; height: 640px;
  background: #2a2a2a center 70%/cover no-repeat;
}
.hero-box {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(860px, calc(100% - 48px));
  background: var(--white); text-align: center;
  padding: 30px 32px 26px;
}
.hero-box .eyebrow {
  font-size: clamp(15px, 1.7vw, 22px); font-weight: 400; letter-spacing: .03em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 6px;
}
.hero-box h1 {
  font-family: var(--font); font-weight: 300;
  font-size: clamp(40px, 6vw, 72px); letter-spacing: .04em; line-height: 1.05;
  color: var(--bordo);
}

/* ---------- Sobre nosotros (fondo de oficina desvanecido) ---------- */
.about {
  position: relative; padding: 72px 24px 88px;
  background: center/cover no-repeat;
}
.about::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.86); }
.about .wrap { position: relative; max-width: 820px; }
.about .stack p { color: #2b2b2b; }
.stack p + p { margin-top: 1em; }

/* ---------- Servicios: tarjetas imagen + panel oscuro ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tile { display: grid; grid-template-columns: 44% 56%; min-height: 250px; background: var(--ink); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding: 26px 22px 24px; display: flex; flex-direction: column; color: var(--white); }
.tile-body h3 { color: var(--white); font-size: 18.5px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.85); margin-bottom: 0; }
.tile-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Clientes: grilla uniforme ---------- */
.logo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 1040px; margin: 8px auto 0;
}
.logo-cell {
  background: var(--white); border: 1px solid var(--line);
  aspect-ratio: 16 / 7; display: flex; align-items: center; justify-content: center;
  padding: 8px 12px;
}
.logo-cell img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .25s;
}
.logo-cell:hover img { transform: scale(1.04); }

/* ---------- Misión / visión (caja oscura con divisor, como en Wix) ---------- */
.mv-box {
  display: grid; grid-template-columns: 1fr 1px 1fr; gap: 40px; align-items: stretch;
  background: var(--ink); color: var(--white); border-radius: 14px;
  padding: 44px 48px; max-width: 980px; margin: 0 auto; text-align: center;
}
.mv-box .divider { background: rgba(255,255,255,.35); }
.mv-box h2 { font-family: var(--font); font-weight: 300; font-size: 24px; margin-bottom: 10px; }
.mv-box h2 b { font-weight: 600; }
.mv-box p { color: #e6e6e6; font-size: 16.5px; }

/* ---------- Equipo ---------- */
.team-lead { margin: 0 auto 72px; }
.team-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 72px; margin: 0 auto; }
.person { max-width: 400px; margin: 0 auto; width: 100%; }
.person img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top;
  border: 1px solid #cfcfcf; margin: 0 0 22px;
}
.person h3 { font-weight: 400; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.person .role { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bordo); margin-bottom: 12px; }
.person p { font-size: 15.5px; color: #333; }
.person p + p { margin-top: .8em; }

/* ---------- Alianzas (banda con foto de sala + tarjetas) ---------- */
.alliances {
  position: relative; padding: 80px 24px;
  background: center/cover no-repeat;
}
.alliances::before { content: ""; position: absolute; inset: 0; background: rgba(20,20,20,.45); }
.alliances .wrap { position: relative; }
.al-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.al-card {
  background: rgba(255,255,255,.94); padding: 30px 26px 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.al-card img { width: 100%; max-width: 240px; height: 96px; object-fit: contain; margin-bottom: 18px; }
.al-card p { font-size: 15.5px; color: #333; }
.al-card .al-name { margin-top: auto; padding-top: 16px; font-size: 14px; color: var(--gray); letter-spacing: .02em; }
.label-block {
  display: inline-block; background: var(--ink); color: var(--white);
  font-size: 22px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
  padding: 12px 40px;
}

/* ---------- Páginas internas ---------- */
.page-head { padding: 76px 24px 36px; text-align: center; }
.page-head .title { margin-bottom: 0; }
.svc-head { padding: 72px 24px 24px; text-align: center; }
.svc-head .section-kicker { color: var(--gray); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.svc-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px auto 0; }
.svc-nav a {
  font-size: 14px; border: 1px solid var(--line); padding: 8px 14px;
  color: var(--ink); text-decoration: none; background: var(--white);
}
.svc-nav a[aria-current="page"], .svc-nav a:hover { border-color: var(--ink); background: var(--ink); color: var(--white); text-decoration: none; }
.svc-body { max-width: 860px; }
.block { padding: 0 0 44px; }
.block h3 { font-size: 22px; margin-bottom: 12px; padding-left: 14px; border-left: 2px solid var(--bordo); }
.block ul { margin: 12px 0 0 22px; }
.block li { margin: 4px 0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-grid h2 { font-weight: 400; font-size: 26px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; font-weight: 400; color: #333; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid #bdbdbd; padding: 10px 2px;
  font: inherit; background: transparent; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; border: 1px solid #bdbdbd; padding: 10px; }
.req { color: var(--bordo); }

/* ---------- Footer (negro, 3 columnas, como en Wix) ---------- */
.site-footer { background: #000; color: #e9e9e9; padding: 56px 24px 32px; font-size: 15px; }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-weight: 400; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; color: #fff; }
.site-footer a { color: #fff; }
.site-footer p { margin: 2px 0; }
.social { display: flex; gap: 16px; margin-top: 4px; }
.social a { color: #bdbdbd; }
.social a:hover { color: #fff; }
.social svg { width: 26px; height: 26px; }
.legal { max-width: var(--max); margin: 36px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: #9a9a9a; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 28px; }
  .tiles { gap: 20px; }
  .tile-body { padding: 22px 18px 20px; }
  .tile-body h3 { font-size: 17px; }
  .al-grid { gap: 18px; }
  .al-card { padding: 26px 20px 22px; }
}
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .al-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .team-pair { gap: 40px; }
  .person { max-width: 340px; }
}
@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: block; }
  .header-social { display: none; }
  .logo img { height: 34px; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 12px 24px 22px; gap: 10px; border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .hero { height: 460px; }
  .section { padding: 64px 20px; }
  .tile { grid-template-columns: 1fr; }
  .tile img { height: 200px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mv-box { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .mv-box .divider { height: 1px; }
  .team-pair { grid-template-columns: minmax(0, 400px); }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
}
