/* Paleta de marca BMLT (logos y presentación corporativa) */
:root {
  --blue: #17527a;       /* azul de marca */
  --blue-dark: #1c3f59;  /* azul oscuro */
  --blue-deep: #10202e;  /* azul profundo */
  --blue-pale: #d6dee8;  /* celeste pálido */
  --gray: #606060;       /* gris del logo */
  --gray-light: #bfbfbf; /* gris claro del logo */
  --bg-soft: #f3f6f9;
  --paper: #ffffff;
  --text: #33393f;
  --muted: #69717a;
  --line: #dde3ea;
  --radius: 4px;
  --head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Open Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--paper); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); color: var(--blue-dark); line-height: 1.25; font-weight: 600; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--blue); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; }

/* encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: block; }
.brand-logo { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--gray); font-family: var(--head); font-size: .82rem; font-weight: 500; letter-spacing: .04em; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--blue-dark); margin: 5px 0; }

/* botones y enlaces */
.btn { display: inline-block; background: var(--blue); color: #fff !important; text-decoration: none; padding: 14px 28px; border-radius: var(--radius); font-family: var(--head); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--blue); cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-small { padding: 10px 18px; font-size: .74rem; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--blue-dark) !important; border-color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }
.link { color: var(--blue); font-family: var(--head); font-weight: 600; font-size: .88rem; text-decoration: none; border-bottom: 1px solid var(--blue-pale); }
.link:hover { border-color: var(--blue); }

/* secciones */
.eyebrow { font-family: var(--head); font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: 14px; }
.eyebrow::after { content: ""; display: block; width: 44px; height: 3px; background: var(--blue-dark); margin-top: 12px; }
.section { padding: 96px 0; }
.section-tight { padding: 48px 0 96px; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: var(--blue); color: #e6edf3; }
.section-dark h2 { color: #fff; font-weight: 500; }
.section-dark .eyebrow { color: var(--blue-pale); }
.section-dark .eyebrow::after { background: #fff; }
.section-title { margin-bottom: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.lead { font-size: 1.15rem; font-weight: 300; max-width: 680px; }
.big { font-size: 1.12rem; }
.pull { font-family: var(--head); font-weight: 400; font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--blue-dark); line-height: 1.5; border-left: 4px solid var(--blue); margin: 40px 0 0; padding: 4px 0 4px 26px; }
.pull-light { color: #fff; border-color: var(--blue-pale); margin-top: 56px; }

/* portada */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--blue-deep); }
/* Foto a la derecha que se funde con el azul hacia la izquierda */
.hero-bg { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; height: 100%; object-fit: cover; object-position: center 85%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 10%, rgba(0,0,0,.9) 26%, #000 40%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 10%, rgba(0,0,0,.9) 26%, #000 40%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(23,82,122,0) 40%, rgba(23,82,122,.15) 100%); }
.hero-inner { position: relative; z-index: 2; padding-block: 110px 120px; }
.hero h1 { color: #fff; max-width: 600px; }
.hero .eyebrow { color: var(--blue-pale); }
.hero .eyebrow::after { background: #fff; }
.hero .lead { color: #e2e9f0; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero .btn:not(.btn-ghost) { background: #fff; color: var(--blue-dark) !important; border-color: #fff; }
.hero .btn:not(.btn-ghost):hover { background: var(--blue-pale); }

/* servicios */
.services { display: grid; gap: 24px; }
.service { display: grid; grid-template-columns: 80px 1fr; gap: 24px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 40px; }
.service-num { font-family: var(--head); font-size: 2.6rem; color: var(--gray-light); line-height: 1; font-weight: 300; }
.service h3 { text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; line-height: 1.4; }
.service ul { padding-left: 1.2em; margin: 0; }
.service li { margin-bottom: .3em; }
.service li::marker { color: var(--blue); }

/* socios */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.person { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: start; }
.person-photo { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; background: var(--blue); display: grid; place-items: center; border: 4px solid var(--blue-pale); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-initials { font-family: var(--head); color: #fff; font-size: 2.4rem; }
.person h3 { text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3em; }
.role { font-weight: 600; color: var(--gray); }
.creds { padding-left: 1.1em; color: var(--muted); font-size: .95rem; }

/* dos mundos */
.two-worlds { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.two-worlds-photo { margin: 0; }
.two-worlds-photo img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(16,32,46,.35); }

/* publicaciones */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: 0 14px 34px rgba(16,32,46,.1); transform: translateY(-2px); }
.post-card-link { display: flex; flex-direction: column; height: 100%; padding: 28px; text-decoration: none; color: inherit; }
.post-card h3 { margin: 14px 0 10px; color: var(--blue-dark); font-size: 1.12rem; }
.post-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.read-more { color: var(--blue); font-family: var(--head); font-weight: 600; font-size: .82rem; letter-spacing: .04em; }
.post-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.author { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-dark); }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.avatar-initials { display: grid; place-items: center; background: var(--blue); color: #fff; font-size: .68rem; font-weight: 600; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chip { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 500 .85rem var(--head); cursor: pointer; color: var(--gray); }
.chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.empty { color: var(--muted); font-size: 1.1rem; }
.page-head { background: var(--blue); color: #e6edf3; padding: 80px 0 64px; }
.page-head h1 { color: #fff; }
.page-head .eyebrow { color: var(--blue-pale); }
.page-head .eyebrow::after { background: #fff; }

/* artículo */
.post-head { padding-top: 64px; padding-bottom: 24px; }
.back { display: inline-block; margin-bottom: 28px; text-decoration: none; color: var(--muted); font-size: .9rem; }
.post-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--blue-dark); font-weight: 600; }
.post-image { border-radius: var(--radius); margin: 8px 0 24px; }
.prose { font-size: 1.08rem; padding-top: 16px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose blockquote { border-left: 4px solid var(--blue); margin: 1.5em 0; padding-left: 20px; color: var(--blue-dark); font-style: italic; }
.prose .tag { color: var(--blue); font-weight: 600; }
.post-foot { padding-bottom: 80px; }
.cta-box { margin-top: 40px; background: var(--bg-soft); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cta-box p { margin: 0; }

/* contacto */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.cv-box { margin-top: 32px; padding: 24px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); background: var(--paper); }
.cv-box h3 { font-size: 1rem; }
.cv-box p { margin: 0; }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: grid; gap: 18px; box-shadow: 0 10px 30px rgba(16,32,46,.06); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-family: var(--head); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--blue-dark); }
.contact-form input, .contact-form textarea { font: 400 1rem var(--body); padding: 12px 14px; border: 1px solid #cfd8e1; border-radius: var(--radius); background: #fff; color: var(--text); width: 100%; text-transform: none; letter-spacing: 0; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: #1f6b3a; font-weight: 600; }
.form-status.err { color: #a12a2a; font-weight: 600; }

/* pie */
.site-footer { background: var(--blue-deep); color: #a9b6c3; padding: 56px 0 28px; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-logo { width: 260px; height: auto; margin-bottom: 18px; }
.site-footer .muted { color: #8796a5; }
.footer-inner .muted { max-width: 380px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: #e1e8ef; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.footer-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 6px; }
.footer-bar span:nth-child(1) { background: var(--gray); }
.footer-bar span:nth-child(2) { background: var(--blue); }
.footer-bar span:nth-child(3) { background: var(--gray-light); }

@media (max-width: 960px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .people, .contact, .two-worlds { grid-template-columns: 1fr; }
  .contact, .two-worlds { gap: 40px; }
}
@media (max-width: 860px) {
  .hero-bg { width: 100%; height: 300px; bottom: auto; object-position: center 75%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .hero::after { display: none; }
  .hero-inner { padding-block: 300px 72px; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }
  .nav .btn { margin-top: 8px; width: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .section { padding: 64px 0; }
  .brand-logo { height: 30px; }
  .post-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; padding: 28px 22px; gap: 8px; }
  .person { grid-template-columns: 1fr; }
  .person-photo { width: 130px; height: 130px; }
  .contact-form { padding: 24px 18px; }
  .contact-form .row { grid-template-columns: 1fr; }
}
