/* Portada SEB GESTIO PYMES & FINANCIAL — white and blue, light studio look. */
:root {
  --canvas: #F5F8FF;
  --surface: #FFFFFF;
  --ink: #0B1B33;
  --muted: #52607A;
  --subtle: #8792A8;
  --line: rgba(11, 27, 51, 0.08);
  --blue: #1F5BFF;
  --blue-deep: #1240D6;
  --sky: #E3ECFF;
  --cyan: #7FD8EE;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --radius: 28px;
  --shadow: 0 1px 2px rgba(11, 27, 51, 0.04), 0 18px 48px rgba(17, 45, 110, 0.08);
}
:lang(ar) { --display: 'IBM Plex Sans Arabic', 'Bricolage Grotesque', sans-serif; --body: 'IBM Plex Sans Arabic', 'Inter', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* soft blue halos behind the hero */
.halo { position: absolute; inset: 0 0 auto; height: 900px; overflow: hidden; pointer-events: none; z-index: 0; }
.halo::before, .halo::after { content: ''; position: absolute; border-radius: 50%; filter: blur(90px); }
.halo::before { width: 720px; height: 620px; right: -140px; top: -160px; background: radial-gradient(closest-side, rgba(31, 91, 255, 0.22), transparent); }
.halo::after { width: 620px; height: 520px; left: -220px; top: 280px; background: radial-gradient(closest-side, rgba(127, 216, 238, 0.35), transparent); }

/* ---------- header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 248, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand .mark { width: 38px; height: 38px; border-radius: 11px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 1px 2px rgba(11, 27, 51, 0.06); }
.brand b { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.nav { display: flex; gap: 26px; font-size: 15px; color: var(--muted); }
.nav a { text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.top .langs { margin-inline-start: auto; }
.langs { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.7); }
.langs a { text-decoration: none; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 5px 9px; border-radius: 9px; min-width: 34px; text-align: center; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current='page'] { background: var(--blue); color: #fff; }
.signin { font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.signin:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 14px;
  font: 600 15px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s, background-color 0.2s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3D72FF, var(--blue));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 22px rgba(31, 91, 255, 0.32);
}
.btn-primary:hover { background: linear-gradient(180deg, #3368FF, var(--blue-deep)); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11, 27, 51, 0.05); }
.btn-ghost:hover { border-color: rgba(11, 27, 51, 0.18); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; }

/* ---------- hero */
.hero { position: relative; z-index: 1; padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.3rem); line-height: 1; letter-spacing: -0.035em;
  margin: 0; text-wrap: balance;
}
:lang(ar) h1 { letter-spacing: 0; line-height: 1.2; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); margin: 24px 0 0; max-width: 34rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.checks li { display: inline-flex; align-items: center; gap: 7px; }
.checks svg { color: #16A36B; flex: none; }

/* hero visual: real photos */
.visual { position: relative; }
.frame { background: #fff; padding: 10px; border-radius: 30px; border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 0 6px rgba(255, 255, 255, 0.6); }
.frame img { border-radius: 22px; aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 12px 30px rgba(17, 45, 110, 0.16);
  font-size: 13.5px; font-weight: 600; line-height: 1.25;
}
.chip img { width: 54px; height: 54px; border-radius: 11px; object-fit: cover; }
.chip span small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.chip.vic { left: -28px; bottom: 34px; }
.chip.casa { right: -22px; top: 30px; }
:dir(rtl) .chip.vic { left: auto; right: -28px; }
:dir(rtl) .chip.casa { right: auto; left: -22px; }
:dir(rtl) .chip { padding: 8px 8px 8px 14px; }

/* ---------- sections */
section.block { position: relative; z-index: 1; padding: 88px 0; }
.head { max-width: 40rem; margin-bottom: 44px; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
:lang(ar) h2 { letter-spacing: 0; line-height: 1.3; }
.head p { color: var(--muted); font-size: 1.08rem; margin: 16px 0 0; }

/* offices: two showcase cards */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.office { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.office:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(11, 27, 51, 0.04), 0 26px 60px rgba(17, 45, 110, 0.13); }
.office img { aspect-ratio: 16 / 9.5; object-fit: cover; width: 100%; }
.office .body { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.office .where { font-size: 14px; font-weight: 600; color: var(--blue); margin: 0; }
.office h3 { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
:lang(ar) .office h3 { letter-spacing: 0; }
.office p { margin: 0; color: var(--muted); }
.office .more { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--blue); }
.office:hover .more { text-decoration: underline; text-underline-offset: 4px; }

/* services grid */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.service .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--sky); color: var(--blue); margin-bottom: 16px; }
.service h3 { font-size: 1.05rem; margin: 0 0 6px; font-weight: 700; }
.service p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.service.wide { grid-column: span 2; background: linear-gradient(140deg, #FFFFFF 40%, #EEF3FF); }
.service .note { margin-top: 12px; font-size: 13.5px; color: var(--ink); padding: 10px 12px; border-radius: 12px; background: rgba(31, 91, 255, 0.06); }

/* custom software (Omniverso) */
.software { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 34px; border: 1px solid rgba(31, 91, 255, 0.14);
  background: radial-gradient(90% 120% at 100% 0%, rgba(127, 216, 238, 0.28), transparent 60%), linear-gradient(140deg, #FFFFFF 30%, #E8F0FF);
  box-shadow: var(--shadow); }
.sw-lead { color: var(--muted); font-size: 1.12rem; margin: 18px 0 0; max-width: 32rem; }
.sw-how { margin: 16px 0 0; font-size: 14.5px; color: var(--ink); max-width: 32rem; }
.sw-how a { color: var(--blue); font-weight: 600; text-decoration: none; }
.sw-how a:hover { text-decoration: underline; }
.sw-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sw-points li { display: flex; gap: 16px; align-items: flex-start; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.sw-points .ico { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #3D72FF, var(--blue)); box-shadow: 0 6px 16px rgba(31, 91, 255, 0.28); }
.sw-points h3 { margin: 0 0 4px; font-size: 1.02rem; }
.sw-points p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
a.note { display: inline-block; text-decoration: none; font-weight: 600; color: var(--blue); }
a.note:hover { text-decoration: underline; }

/* contact band */
.contact { border-radius: 34px; padding: 56px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #3D72FF 0%, var(--blue) 35%, #0E2F9E 100%);
  box-shadow: 0 30px 70px rgba(31, 91, 255, 0.28); }
.contact::after { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -200px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, 0.07); }
.contact h2 { color: #fff; max-width: 30rem; }
.contact .sub { color: rgba(255, 255, 255, 0.8); margin: 14px 0 0; max-width: 34rem; font-size: 1.05rem; }
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; position: relative; z-index: 1; }
.place { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 20px; padding: 22px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.place h3 { margin: 0 0 8px; font-size: 1.05rem; }
.place p { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 14.5px; line-height: 1.7; }
.place a { text-decoration: none; }
.place a:hover { text-decoration: underline; }
.contact .ctas { margin-top: 28px; position: relative; z-index: 1; }
.btn-white { color: var(--blue-deep); background: #fff; box-shadow: 0 8px 22px rgba(8, 24, 80, 0.25); }
.btn-white:hover { transform: translateY(-1px); }
.btn-line { color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); }
.btn-line:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- footer */
footer { padding: 56px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer h4 { margin: 0 0 10px; font-size: 14px; color: var(--ink); }
footer p { margin: 0; line-height: 1.8; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 12.5px; color: var(--subtle); }
.legal .credits { margin-inline-start: auto; }

/* ---------- one load moment: hero visual settles in */
@media (prefers-reduced-motion: no-preference) {
  .visual .frame { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .visual .chip { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
}

/* ---------- responsive */
@media (max-width: 1060px) {
  .nav { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 44px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .visual { margin: 0 18px; }
  .offices, .places { grid-template-columns: 1fr; }
  .software { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .about { grid-column: 1 / -1; }
  .contact { padding: 40px 28px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .top { position: static; }
  .top .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 10px; }
  .brand small { display: none; }
  .signin { display: none; }
  .top .cta { margin-inline-start: auto; }
  .top .langs { order: 3; width: 100%; margin-inline-start: 0; justify-content: space-between; }
  .langs a { flex: 1; }
  .services { grid-template-columns: 1fr; }
  .service.wide { grid-column: auto; }
  section.block { padding: 64px 0; }
  .chip { font-size: 12.5px; }
  .chip img { width: 42px; height: 42px; }
  .chip.vic { left: -12px; bottom: 18px; }
  .chip.casa { right: -12px; top: 18px; }
  :dir(rtl) .chip.vic { right: -12px; }
  :dir(rtl) .chip.casa { left: -12px; }
  .office .body { padding: 22px; }
  .software { padding: 28px 20px; }
  .sw-points li { padding: 16px; }
  footer .wrap { grid-template-columns: 1fr; }
  .legal .credits { margin-inline-start: 0; }
}
