/* =========================================================
   SR Investments Group — sistema de diseño del sitio
   ========================================================= */

/* Poppins: tipografía de la presentación institucional, alojada en el propio sitio (sin Google Fonts) */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Poppins-Regular.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Poppins-Medium.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Poppins-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Poppins-Bold.ttf") format("truetype"); }

:root {
  --navy-deep: #071f39;
  --navy: #1b374c;
  --navy-soft: #2a4a61;
  --blue-accent: #6a8394;
  --blue-mist: #eef2f5;
  --gold: #b68a4e; /* dorado de acento (decisión 2026-10-10): líneas finas, etiquetas, números y bordes; nunca como relleno */
  --gold-light: #d9b378; /* dorado claro para texto y líneas sobre fondos oscuros */
  --ink: #16212c;
  --gray-700: #45505c;
  --gray-500: #6b7480;
  --gray-300: #d7dce2;
  --gray-100: #f4f6f8;
  --white: #ffffff;

  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow-soft: 0 20px 50px -20px rgba(7, 31, 57, 0.35);
  --shadow-card: 0 10px 30px -12px rgba(7, 31, 57, 0.25);
  --transition: 260ms cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--navy-deep);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
p { line-height: 1.7; color: var(--gray-700); margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
  display: inline-block;
}
/* sobre fondos oscuros el gris azulado base no alcanza contraste: se usa el tono claro */
.hero .eyebrow, .section-navy .eyebrow, .cta-band .eyebrow, .site-footer .eyebrow { color: var(--gold-light); }
.hero .eyebrow::before, .section-navy .eyebrow::before, .cta-band .eyebrow::before { background: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-soft); }
.hero .btn-primary, .cta-band .btn-primary { background: var(--white); color: var(--navy-deep); }
.hero .btn-primary:hover, .cta-band .btn-primary:hover { background: var(--blue-mist); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(7, 31, 57, 0.96);
  backdrop-filter: blur(8px);
  padding: 10px 0;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,.35);
}
.brand { display: flex; align-items: center; }
.brand img { height: 60px; width: auto; }  /* logo D+A+C: el texto fino pide más altura que el anterior */

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: rgba(255,255,255,.88);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--white); border-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: .82rem; }
.lang-switch a { color: rgba(255,255,255,.55); padding: 4px 6px; border-radius: 6px; }
.lang-switch a.is-active { color: var(--white); background: rgba(255,255,255,.12); }
.lang-switch span { color: rgba(255,255,255,.35); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero-block { min-height: 100vh; display: flex; flex-direction: column; }
.hero-block .hero { flex: 1 1 auto; min-height: 0; }
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  transform-origin: 50% 8%;
  z-index: -2;
  animation: heroZoom 30s ease-in-out infinite alternate;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,51,.55) 0%, rgba(10,30,51,.35) 35%, rgba(10,20,33,.92) 100%);
  z-index: -1;
}
.hero-inner { padding: 116px 0 56px; max-width: 760px; }
.hero-inner h1 { color: var(--white); }
.hero-inner p.lead { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero.hero-sub { min-height: 56vh; }
.hero.hero-sub .hero-inner { padding: 150px 0 70px; }

.breadcrumb { font-family: var(--font-head); font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-tight { padding: 70px 0; }
.section-navy { background: var(--navy-deep); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,.72); }
.section-mist { background: var(--blue-mist); }

.section-head { max-width: 680px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Stat strip ---------- */
.stats-hero { padding: 34px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat-card { text-align: left; border-left: 2px solid var(--gold); padding-left: 18px; }
.stat-number {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--white);
  display: block;
  line-height: 1;
}
.section-navy .stat-number { color: var(--white); }
.stat-card:not(.on-dark) .stat-number { color: var(--navy-deep); }
.stat-label { font-size: .88rem; color: rgba(255,255,255,.7); margin-top: 8px; }
.stat-card:not(.on-dark) .stat-label { color: var(--gray-500); }

/* ---------- Business line cards (home grid) ---------- */
.line-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.line-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition);
}
.line-card:hover { transform: translateY(-6px); }
/* Cartas de líneas: foto propia de cada línea (ninguna se repite en la web) + velo azul + ícono de línea */
.line-card[data-line] { background-color: var(--navy); background-size: cover; background-position: center; }
.line-card[data-line]::after { background: linear-gradient(180deg, rgba(7,31,57,.58) 0%, rgba(7,31,57,.18) 28%, rgba(7,31,57,.74) 58%, rgba(7,31,57,.96) 100%); }
.line-card[data-line]::before { content: ""; position: absolute; top: 28px; left: 28px; width: 46px; height: 46px; z-index: 1; background-repeat: no-repeat; background-size: contain; }
.line-card[data-line="agro"]::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9BBC8' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21V11 M12 11C12 7 9 5 5 5c0 4 3 6 7 6 M12 14c0-3 2-5 6-5 0 3-2 5-6 5'/></svg>"); }
.line-card[data-line="finance"]::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9BBC8' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10l9-6 9 6 M5 10v8 M9.5 10v8 M14.5 10v8 M19 10v8 M3 20h18'/></svg>"); }
.line-card[data-line="energy"]::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9BBC8' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'><path d='M13 2L4 14h7l-1 8 9-12h-7z'/></svg>"); }
.line-card[data-line="re"]::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9BBC8' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'><path d='M4 21V5l8-2v18 M12 9h8v12 M7 8h2 M7 12h2 M7 16h2 M15 13h2 M15 17h2 M3 21h18'/></svg>"); }

/* Hero sin foto (Contacto) y galería de dos fotos (Agroindustria) */
.hero-bg--solid { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); animation: none; }
.gallery.gallery--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; height: 420px; }
.gallery.gallery--2 img:nth-child(1) { grid-row: auto; grid-column: auto; }

.line-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,51,0) 30%, rgba(9,22,37,.92) 100%);
}
.line-card-body { position: relative; z-index: 1; padding: 28px; color: var(--white); }
.line-card .eyebrow { color: var(--gold-light); }
.line-card h3 { color: var(--white); margin-bottom: 8px; }
.line-card p { color: rgba(255,255,255,.78); font-size: .92rem; margin-bottom: 14px; }
.line-card .card-link { font-family: var(--font-head); font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 8px; color: var(--white); }
.line-card .card-link .arrow { transition: transform var(--transition); }
.line-card:hover .card-link .arrow { transform: translateX(4px); }

/* ---------- Feature split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-card); width: 100%; height: 480px; object-fit: cover; }
.split-media.short img { height: 340px; }

/* ---------- Two-col text ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }

/* ---------- Differentiator cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.card .num { font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: 1.6rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 520px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery img:nth-child(1) { grid-row: 1 / 3; }

/* ---------- Countries list ---------- */
.countries { display: flex; flex-wrap: wrap; gap: 10px; }
.countries li {
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white);
}

/* ---------- World map ---------- */
.world-map { max-width: 1120px; margin: 40px auto 0; position: relative; }
.world-map::before { content: ""; position: absolute; inset: 8% 6%; background: radial-gradient(ellipse at center, rgba(59,110,165,.28), transparent 65%); filter: blur(30px); pointer-events: none; }
.world-map object, .world-map img { position: relative; width: 100%; height: auto; display: block; aspect-ratio: 1000 / 438; }
.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; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy-soft));
  color: var(--white);
  border-radius: 24px;
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 70px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid img { height: 64px; width: auto; margin-bottom: 16px; }
.footer-grid h4 { color: var(--white); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; font-size: .92rem; }
.footer-grid ul li a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: .82rem; flex-wrap: wrap; gap: 10px; }
.placeholder-note { font-size: .78rem; color: rgba(255,255,255,.4); font-style: italic; }

/* ---------- Mission / vision ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mv-card { padding: 36px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }
.mv-card h3 { color: var(--gold-light); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-card { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 34px; }
.contact-card h3 { margin-bottom: 6px; }
.contact-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gray-300); }
.contact-list li:last-child { border-bottom: none; }
.contact-list .label { font-family: var(--font-head); font-weight: 700; min-width: 140px; color: var(--navy); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: .85rem; color: var(--gray-500); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .lang-switch { display: none; }

  .site-header.nav-open { background: rgba(10,30,51,.98); }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-deep);
    padding: 10px 24px 24px;
  }
  .site-header.nav-open .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); width: 100%; }
  .site-header.nav-open .header-actions .lang-switch { display: flex; margin: 14px 24px 20px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .line-grid { grid-template-columns: 1fr; }
  .split, .two-col, .mv-grid, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 180px); height: auto; }
  .gallery img:nth-child(1) { grid-row: auto; grid-column: 1 / 3; }
  .gallery.gallery--2 { grid-template-columns: 1fr; grid-template-rows: repeat(2, 220px); height: auto; }
  .gallery.gallery--2 img:nth-child(1) { grid-column: auto; }
  .cta-band { padding: 40px 28px; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 120px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* ---------- BETRIF Capital Fund (presencia propia) ---------- */
.betrif-hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.betrif-logo-h1 { margin: 6px 0 18px; line-height: 0; }
.betrif-logo-h1 img { display: block; width: clamp(240px, 36vw, 440px); height: auto; }
.betrif-mark { display: flex; align-items: center; justify-content: center; min-height: 320px; border: 1px solid rgba(217,179,120,.45); border-radius: var(--radius); background: radial-gradient(circle at 30% 20%, rgba(106,131,148,.28), transparent 60%), rgba(255,255,255,.03); }
.betrif-mark .betrif-logo-card { width: min(78%, 360px); height: auto; min-height: 0; max-height: none; object-fit: contain; display: block; border-radius: 0; box-shadow: none; }
.betrif-lines { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.betrif-lines a { display: block; padding: 14px 18px; border: 1px solid var(--gray-300); border-radius: 10px; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.betrif-lines a:hover { border-color: var(--gold); color: var(--gold); }
.betrif-legal { font-size: .88rem; color: var(--gray-700); border-left: 3px solid var(--gold); padding: 6px 0 6px 16px; max-width: 880px; }
.betrif-band-inner { background: linear-gradient(120deg, var(--navy), var(--navy-soft)); }
.betrif-band-inner .eyebrow { color: var(--gold-light); }

/* Estado del formulario de contacto */
.form-status { margin-top: 14px; font-size: .92rem; min-height: 1.2em; }
.form-status.is-ok { color: var(--navy); }
.form-status.is-error { color: #9b2c2c; }
.btn[disabled] { opacity: .6; cursor: progress; }
