/* =========================================================
   Grupo Santiago — Landing simple
   ========================================================= */

:root {
  --navy-950: #071729;
  --navy-900: #0B1F3A;
  --navy-800: #10294A;
  --navy-700: #173A63;
  --blue-700: #174E8C;
  --blue-600: #1F5FA8;
  --blue-500: #2E74BE;
  --blue-300: #8FB8DE;
  --blue-100: #E4EEF8;
  --paper: #F7F9FC;
  --ink: #0E1B2C;
  --muted: #5A6B81;
  --line: #E2E9F2;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--navy-900);
  text-wrap: balance;
}

::selection { background: var(--blue-100); color: var(--navy-900); }

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 4px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-600);
}

/* ---------------- Portada ---------------- */
.portada {
  min-height: 82vh;
  min-height: 82svh;
  display: grid;
  place-items: center;
  padding: clamp(56px, 8vh, 96px) 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, rgba(143, 184, 222, .22), transparent 70%),
    linear-gradient(180deg, #F7FAFE 0%, #FFFFFF 75%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.portada-inner {
  animation: rise .9s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.logo-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 26px);
}

.logo-mark {
  width: clamp(76px, 11vw, 124px);
  height: auto;
  flex-shrink: 0;
}

.logo-type { text-align: left; }

.logo-type h1 {
  font-size: clamp(2rem, 5.6vw, 3.9rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
}

.logo-type p {
  margin-top: .6em;
  font-size: clamp(.55rem, 1.1vw, .7rem);
  font-weight: 500;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: .4em;
}

.tagline {
  margin-top: clamp(30px, 5vh, 46px);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.02rem, 1.8vw, 1.3rem);
  color: var(--muted);
}

.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(32px, 5vh, 48px);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--blue-300);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-800);
  transition: color .25s, border-color .25s, gap .3s var(--ease);
}

.scroll-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-link:hover {
  color: var(--blue-600);
  border-color: var(--blue-600);
  gap: 12px;
}

/* ---------------- Misión y visión ---------------- */
.mv {
  padding-block: clamp(64px, 9vw, 104px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.mv-block {
  padding-inline: clamp(0px, 4vw, 56px);
}

.mv-block:first-child { padding-left: 0; }

.mv-block:last-child {
  border-left: 1px solid #DCE5F0;
}

.mv-block .label { margin-bottom: 20px; }

.mv-text {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.9vw, 1.42rem);
  line-height: 1.55;
  letter-spacing: -.005em;
  color: var(--navy-800);
  max-width: 30ch;
}

/* ---------------- Negocios ---------------- */
.negocios {
  padding-block: clamp(64px, 9vw, 112px) clamp(72px, 10vw, 120px);
}

.negocios-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.negocios-head .label { margin-bottom: 16px; }

.negocios-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.9rem);
}

.negocios-intro {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 44ch;
  padding-bottom: 4px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 56px) clamp(20px, 3vw, 32px);
}

.card { display: block; }

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--blue-100);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.94);
  transition: transform .8s var(--ease), filter .4s;
}

.card:hover .card-media img {
  transform: scale(1.04);
  filter: saturate(1.04);
}

.card-body { padding-top: 18px; }

.card-cat {
  display: block;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.card-body h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-bottom: 8px;
  transition: color .25s;
}

.card:hover .card-body h3 { color: var(--blue-700); }

.card-body p {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 14px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--navy-800);
  transition: color .25s, gap .3s var(--ease);
}

.card-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card:hover .card-link { color: var(--blue-600); gap: 11px; }

/* ---------------- Pie ---------------- */
.footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .68);
  padding-top: clamp(40px, 6vw, 56px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img { width: 44px; height: 44px; }

.footer-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.15;
}

.footer-sub {
  display: block;
  margin-top: 4px;
  font-size: .52rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: .85rem;
}

.footer-contact a { transition: color .2s; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 20px;
  font-size: .72rem;
  color: rgba(255, 255, 255, .4);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .portada { min-height: 76vh; min-height: 76svh; }

  .mv-grid { grid-template-columns: 1fr; gap: 0; }
  .mv-block { padding-inline: 0; }
  .mv-block:last-child {
    border-left: 0;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #DCE5F0;
  }
  .mv-text { max-width: 46ch; }

  .negocios-head { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .negocios-intro { max-width: 52ch; }
}

@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; gap: 40px; }
  .card-media { border-radius: 14px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-contact { align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .logo-lockup { gap: 12px; }
  .logo-mark { width: 64px; }
  .logo-type h1 { font-size: 1.85rem; }
  .logo-type p { letter-spacing: .3em; padding-left: .3em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .portada-inner { animation: none; }
}

@media print {
  .portada { min-height: auto; padding-block: 40px; }
  .footer { background: #fff; color: #000; }
}
