/* Delta Seguridad · demo SimCodec · estilo corporativo */
:root {
  --white: #ffffff;
  --gray: #f5f6f7;
  --line: #e3e5e8;
  --ink: #14171c;
  --text: #2b2f36;
  --muted: #5d6470;
  --brand: #ffc800;
  --brand-dark: #e6b400;
  --radius: 6px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hdr: 106px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--hdr); }
body { margin: 0; background: var(--white); color: var(--text); font: 400 1rem/1.7 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0 0 1rem; }
figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; padding: .6rem 1rem; background: var(--ink); color: #fff; }
.skip:focus { top: 1rem; }

/* ---------- Cabecera y aviso ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-solid { box-shadow: 0 2px 12px rgba(20, 23, 28, .06); }
.demo-bar { background: var(--ink); color: #fff; text-align: center; padding: .45rem 1rem; font-size: .8rem; line-height: 1.4; }
.demo-bar p { margin: 0; }
.demo-bar strong { color: var(--brand); font-weight: 600; }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; font-size: 1.1rem; color: var(--ink); letter-spacing: -.01em; }
.brand img { width: 42px; height: auto; }
.brand--light { color: #fff; }
.nav__menu { display: flex; align-items: center; gap: .25rem; }
.nav__menu a:not(.btn) { display: block; padding: .5rem .8rem; font-size: .88rem; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav__menu a:not(.btn):hover { color: var(--ink); }
.nav__menu a.is-active:not(.btn) { color: var(--ink); border-bottom-color: var(--brand); }
.nav__menu li:last-child { margin-left: .75rem; }
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; background: none; border: 0; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .2s; }
.nav__toggle span:first-child { top: 18px; } .nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Botones y enlaces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.4rem; border: 1px solid var(--brand); border-radius: var(--radius); background: var(--brand); color: var(--ink); font-weight: 600; font-size: .95rem; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--sm { padding: .5rem 1rem; font-size: .85rem; }
.btn--block { width: 100%; padding: .95rem; }
.link { align-self: flex-start; padding: 0 0 .15rem; background: none; border: 0; border-bottom: 2px solid var(--brand); font-weight: 600; font-size: .88rem; color: var(--ink); transition: border-color .2s; }
.link:hover { border-color: var(--ink); }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--gray); }
.section--tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section__head { max-width: 760px; margin-bottom: 2.5rem; }
.section__head--sub { margin: 4rem 0 1.5rem; }
.section h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); margin-bottom: 1rem; }
.h3 { font-size: 1.4rem; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .9rem; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ""; width: 24px; height: 3px; background: var(--brand); }

/* Aparición discreta */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 6vw, 5rem) 0 0; }
.hero__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); letter-spacing: -.025em; margin-bottom: 1.3rem; }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.hero__media::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 120px; height: 120px; border-left: 4px solid var(--brand); border-bottom: 4px solid var(--brand); z-index: -1; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 1.6rem 1.5rem; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font-size: 1.35rem; color: var(--ink); margin-bottom: .2rem; }
.fact span { font-size: .9rem; color: var(--muted); }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: var(--radius); }
.about__intro { font-size: 1.15rem; color: var(--ink); font-weight: 500; }
.about__mv { display: grid; gap: 1rem; margin-top: 2rem; }
.about__mv article { padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); }
.about__mv h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.about__mv p { margin: 0; font-size: .95rem; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 4rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
.value { padding: 2rem; border-left: 1px solid var(--line); }
.value:first-child { border-left: 0; }
.value__n { display: block; font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: .8rem; }
.value__n::after { content: ""; display: block; width: 24px; height: 3px; background: var(--brand); margin-top: .5rem; }
.value h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }
.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 900px; margin-inline: auto; }
.leader img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius); background: var(--gray); }
.leader figcaption { padding-top: 1rem; }
.leader b { display: block; color: var(--ink); font-size: 1.02rem; }
.leader span { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Servicios ---------- */
.lead-quote { margin: 0; padding-left: 1.2rem; border-left: 3px solid var(--brand); color: var(--muted); font-size: 1.02rem; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.service:hover { border-color: #cfd3d8; box-shadow: 0 8px 24px rgba(20, 23, 28, .07); }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.service h3 { font-size: 1.12rem; margin-bottom: .6rem; }
.service p { flex: 1; color: var(--muted); font-size: .95rem; }

/* ---------- Normas ---------- */
.norms { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: center; }
.norms__text { font-size: 1.15rem; color: var(--ink); }
.seals { display: flex; align-items: center; gap: 2rem; margin-top: 1.5rem; }
.seals img { height: 72px; width: auto; object-fit: contain; }
.norms__quote { padding: 2rem; background: var(--ink); color: #fff; border-radius: var(--radius); border-left: 4px solid var(--brand); }
.norms__quote blockquote { margin: 0 0 1rem; font-size: 1.1rem; line-height: 1.6; }
.norms__quote figcaption { color: var(--brand); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Cobertura ---------- */
.cover { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.cover__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.cover p { color: var(--muted); }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; margin: 1.5rem 0; }
.ticks li { position: relative; padding-left: 1.4rem; font-size: .95rem; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--brand); }
.cover__sign { font-weight: 700; color: var(--ink) !important; }

/* ---------- Galería ---------- */
.banner { margin-bottom: 3rem; }
.banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 35%; border-radius: var(--radius); }
.banner--wide { margin-bottom: 3.5rem; }
.banner--wide img { aspect-ratio: 1277 / 514; }
.teams { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; }
.teams__tabs { display: grid; gap: .4rem; align-content: start; }
.tab { padding: .9rem 1rem; text-align: left; background: var(--white); border: 1px solid var(--line); border-left: 3px solid transparent; border-radius: var(--radius); font-weight: 600; font-size: .92rem; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--gray); border-left-color: var(--brand); }
.tab small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.teams__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.teams__panel.swap { animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.teams__panel img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.teams__panel h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.people li { padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.quote { margin: 1.5rem 0 0; }
.quote p { font-style: italic; color: var(--muted); margin-bottom: .4rem; }
.quote cite { font-style: normal; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.training { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.training img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.training span { display: block; padding-top: .7rem; font-weight: 600; color: var(--ink); font-size: .95rem; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.post { display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.post:hover { border-color: #cfd3d8; box-shadow: 0 8px 24px rgba(20, 23, 28, .07); }
.post img { width: 100%; aspect-ratio: 1600 / 827; object-fit: cover; border-bottom: 1px solid var(--line); }
.post__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.post__meta { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.post h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.post p { flex: 1; color: var(--muted); font-size: .95rem; }
.post__more { align-self: flex-start; font-weight: 600; font-size: .88rem; color: var(--ink); border-bottom: 2px solid var(--brand); }

.post-dialog { width: min(780px, 100% - 1.5rem); max-height: 90vh; margin: auto; padding: 0; border: 0; border-radius: var(--radius); background: var(--white); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.post-dialog::backdrop { background: rgba(20, 23, 28, .6); }
.post-dialog__box { position: relative; max-height: 90vh; overflow-y: auto; }
.post-dialog__close { position: sticky; top: .8rem; float: right; margin: .8rem .8rem 0 0; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-size: 1.3rem; line-height: 1; z-index: 2; }
.post-dialog__close:hover { border-color: var(--ink); }
.article > img { width: 100%; aspect-ratio: 1600 / 827; object-fit: cover; }
.article__body { padding: 2rem clamp(1.5rem, 4vw, 2.75rem) 2.5rem; }
.article h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: .3rem 0 .6rem; }
.article h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
.article .sub { font-style: italic; color: var(--muted); }
.article .sign { font-weight: 700; color: var(--ink); padding-top: 1rem; border-top: 1px solid var(--line); margin-top: 1.5rem; }
.article .nav-posts { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.info { margin: 1.5rem 0 2rem; }
.info div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.info dt { font-weight: 600; color: var(--ink); }
.info dd { margin: 0; color: var(--muted); }
.info a:hover, .offices a:hover { color: var(--ink); text-decoration: underline; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.offices article { padding: 1.2rem; background: var(--gray); border-radius: var(--radius); border-top: 3px solid var(--brand); }
.offices h3 { font-size: 1rem; margin-bottom: .4rem; }
.offices p { margin: 0 0 .2rem; font-size: .92rem; color: var(--muted); }
.social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: background .2s, border-color .2s; }
.social a:hover { background: var(--brand); border-color: var(--brand); }
.form { position: relative; padding: clamp(1.5rem, 3vw, 2.2rem); background: var(--gray); border-radius: var(--radius); }
.form h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.form__lead { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; margin-bottom: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: .75rem .9rem; border: 1px solid #cfd3d8; border-radius: var(--radius); background: var(--white); color: var(--ink); font: 400 1rem var(--font); resize: vertical; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 200, 0, .45); }
.field.invalid input, .field.invalid textarea { border-color: #c62828; }
.err { display: none; margin-top: .3rem; font-size: .82rem; font-style: normal; color: #c62828; }
.field.invalid .err { display: block; }
.form__note { margin: .9rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.form__ok { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 2rem; text-align: center; background: var(--gray); border-radius: var(--radius); }
.form__ok[hidden] { display: none; }
.form__ok h4 { font-size: 1.3rem; }
.form__ok p { max-width: 340px; color: var(--muted); }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: #c4c8ce; padding-top: 3.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__tag { margin-top: 1rem; font-size: .92rem; }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer li { margin-bottom: .45rem; font-size: .92rem; }
.footer a:not(.brand):hover { color: var(--brand); }
.footer__bottom { padding: 1.2rem 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: #8b919a; }
.footer__bottom p { margin: 0; }
.demo-bar--footer { background: var(--brand); color: var(--ink); font-size: .88rem; padding: .8rem 1rem; }
.demo-bar--footer strong { color: var(--ink); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__inner, .about, .cover, .contact, .norms { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__media::after { display: none; }
  .about__media img { aspect-ratio: 16 / 10; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .teams { grid-template-columns: 1fr; }
  .teams__tabs { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  :root { --hdr: 112px; }
  .nav { height: 64px; }
  .nav__toggle { display: block; }
  .nav__menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(20, 23, 28, .08); }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav__menu li:last-child { margin: 1rem 0 0; }
  .nav__menu .btn { width: 100%; }
  .demo-bar { font-size: .74rem; }
  .about__mv, .values, .services, .posts, .offices, .form__row, .ticks, .footer__grid, .teams__panel { grid-template-columns: 1fr; }
  .value { border-left: 0; border-top: 1px solid var(--line); }
  .value:first-child { border-top: 0; }
  .leaders { gap: .75rem; }
  .leader b { font-size: .82rem; line-height: 1.3; }
  .leader span { font-size: .68rem; }
  .training { grid-template-columns: repeat(2, 1fr); }
  .seals { gap: 1.2rem; }
  .seals img { height: 56px; }
  .info div { grid-template-columns: 1fr; gap: .1rem; }
}
@media (max-width: 460px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
  .training { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
