/* ============================================================
   TMT SECURITY — IDENTIDAD CORPORATIVA 2025
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,500;1,900&display=swap');


:root {

  --tmt-blue:    #193D70;
  --tmt-blue-d:  #0f2548;
  --tmt-blue-l:  #1e4a88;
  --tmt-slate:   #77918F;
  --tmt-slate-l: #92aaA8;
  --tmt-black:   #161616;
  --tmt-white:   #FFFFFF;

  --bg:     #f4f6f9;
  --fg:     var(--tmt-black);
  --muted:  #4a5568;
  --line:   #d8e2ec;
  --soft:   #eaf0f7;
  --card-bg:#ffffff;

  --radius: 16px;
  --max:    980px;

  --font-display: 'Poppins', sans-serif;
  --font-body:    'Barlow', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: var(--tmt-blue);
  border-bottom: 3px solid var(--tmt-blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(25,61,112,.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 38px; width: auto; display: block; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  border: 2px solid var(--tmt-white);
  background: var(--tmt-white);
  color: var(--tmt-blue);
  cursor: pointer;
  user-select: none;
  transition: background .18s, color .18s, transform .12s, box-shadow .18s;
  white-space: nowrap;
}
.btn:hover {
  background: transparent;
  color: var(--tmt-white);
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}
.btn:active { transform: translateY(1px); }

/* Variante outline */
.btn-outline {
  background: transparent;
  color: var(--tmt-blue);
  border-color: var(--tmt-blue);
}
.btn-outline:hover {
  background: var(--tmt-blue);
  color: var(--tmt-white);
  box-shadow: 0 0 0 3px rgba(25,61,112,.18);
}

/* Botones dentro de secciones claras */
section .btn {
  background: var(--tmt-blue);
  color: var(--tmt-white);
  border-color: var(--tmt-blue);
}
section .btn:hover {
  background: var(--tmt-blue-d);
  border-color: var(--tmt-blue-d);
  box-shadow: 0 4px 18px rgba(25,61,112,.3);
}

/* ============================================================
   SECCIONES
   ============================================================ */
section {
  padding: 64px 0;
}

/* Alternancia de fondo entre secciones */
section:nth-of-type(odd)  { background: var(--bg); }
section:nth-of-type(even) { background: var(--card-bg); }

.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Kicker ── */
.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 7px 16px;
  border: 1.5px solid var(--tmt-slate);
  background: rgba(119,145,143,.1);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--tmt-slate);
  font-weight: 700;
  text-transform: uppercase;
}

/* ── Tipografía principal ── */
h1 {
  margin: 16px 0 12px;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -.5px;
  line-height: 1.0;
  max-width: 20ch;
  color: var(--tmt-blue);
}
@media (max-width: 520px) { h1 { font-size: 36px; } }

h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--tmt-blue);
  position: relative;
  padding-bottom: 14px;
}
/* Línea decorativa bajo cada h2 */
h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--tmt-blue);
  border-radius: 2px;
  margin: 10px auto 0;
}
.center h2::after { margin-left: auto; margin-right: auto; }

.sub {
  max-width: 68ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin-top: 10px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

/* ============================================================
   HERO — fondo azul institucional
   ============================================================ */
section:first-of-type {
  background: linear-gradient(135deg, #161616 0%, var(--tmt-blue-d) 45%, var(--tmt-blue) 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
section:first-of-type::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(119,145,143,.18) 0%, transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(255,255,255,.06) 0%, transparent 45%);
  pointer-events: none;
}
section:first-of-type .kicker {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,.85);
}
section:first-of-type h1 { color: var(--tmt-white); }
section:first-of-type .sub { color: rgba(255,255,255,.75); }
section:first-of-type .btn {
  background: var(--tmt-white);
  color: var(--tmt-blue);
  border-color: var(--tmt-white);
}
section:first-of-type .btn:hover {
  background: transparent;
  color: var(--tmt-white);
}
section:first-of-type .btn-outline {
  background: transparent;
  color: var(--tmt-white);
  border-color: rgba(255,255,255,.55);
}
section:first-of-type .btn-outline:hover {
  background: rgba(255,255,255,.12);
}

/* ============================================================
   LISTA DE PROBLEMAS
   ============================================================ */
.list {
  width: 100%;
  max-width: 820px;
  margin: 22px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  text-align: left;
}
@media (max-width: 700px) { .list { grid-template-columns: 1fr; } }

.list li {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  background: var(--card-bg);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--tmt-blue);
  transition: border-color .18s, box-shadow .18s;
}
.list li::before {
  content: '✕';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: rgba(25,61,112,.08);
  color: var(--tmt-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}
.list li:hover {
  border-color: var(--tmt-slate);
  box-shadow: 0 2px 12px rgba(25,61,112,.1);
}

/* ============================================================
   VIDEO
   ============================================================ */
.video {
  width: 100%;
  max-width: 900px;
  border: 2px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--tmt-black);
  margin: 22px auto 0;
  aspect-ratio: 16/9;
  position: relative;
  box-shadow: 0 8px 40px rgba(25,61,112,.18);
}
.video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ============================================================
   METODOLOGÍA BOS — 4 BLOQUES CON ICONO SVG
   ============================================================ */
.grid4 {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 980px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid4 { grid-template-columns: 1fr; } }

/* Cada bloque BOS */
.bos-block {
  position: relative;
  background: var(--card-bg);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.bos-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tmt-blue), var(--tmt-slate));
  border-radius: 18px 18px 0 0;
}
.bos-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(25,61,112,.16);
  border-color: var(--tmt-slate);
}

/* Ícono circular */
.bos-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tmt-blue) 0%, var(--tmt-blue-l) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(25,61,112,.25);
}
.bos-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--tmt-white);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Número de bloque */
.bos-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--tmt-slate);
  text-transform: uppercase;
}

.bos-block strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--tmt-blue);
  line-height: 1.2;
  margin-bottom: 10px;
}
.bos-block span {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Compatibilidad con .item genérico ── */
.item {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--card-bg);
  text-align: left;
  transition: box-shadow .18s;
}
.item:hover { box-shadow: 0 4px 16px rgba(25,61,112,.1); }
.item strong { display: block; font-size: 14px; color: var(--tmt-blue); font-weight: 700; }
.item span   { display: block; margin-top: 6px; color: var(--muted); font-size: 13.5px; }

/* ============================================================
   DIFERENCIADORES — BADGES
   ============================================================ */
.badges {
  width: 100%;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
}
.badge {
  border: 1.5px solid var(--tmt-blue);
  background: rgba(25,61,112,.06);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .4px;
  color: var(--tmt-blue);
  transition: background .18s, color .18s;
}
.badge:hover {
  background: var(--tmt-blue);
  color: var(--tmt-white);
}

/* ── Card genérica ── */
.card {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  padding: 22px;
  box-shadow: 0 2px 12px rgba(25,61,112,.06);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  width: 100%;
  max-width: 900px;
  margin-top: 22px;
  display: grid;
  gap: 10px;
  text-align: left;
}
details {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  background: var(--card-bg);
  transition: border-color .18s, box-shadow .18s;
}
details[open] {
  border-color: var(--tmt-slate);
  box-shadow: 0 2px 16px rgba(25,61,112,.1);
}
summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .1px;
  color: var(--tmt-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary span {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--soft);
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--tmt-blue);
  transition: background .18s, color .18s;
}
details[open] summary span {
  background: var(--tmt-blue);
  color: var(--tmt-white);
  border-color: var(--tmt-blue);
}
.ans {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ============================================================
   FORMULARIO
   ============================================================ */
/* Sección formulario — fondo azul */
#formulario {
  background: linear-gradient(135deg, var(--tmt-blue-d) 0%, var(--tmt-blue) 100%) !important;
}
#formulario h2 { color: var(--tmt-white); }
#formulario h2::after { background: var(--tmt-slate-l); }
#formulario .sub { color: rgba(255,255,255,.75); }

form {
  width: 100%;
  max-width: 720px;
  margin-top: 22px;
  display: grid;
  gap: 12px;
  text-align: left;
}
label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}
input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: var(--tmt-white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.4); }
select option { background: var(--tmt-blue-d); color: var(--tmt-white); }
input:focus, select:focus, textarea:focus {
  border-color: var(--tmt-slate-l);
  background: rgba(255,255,255,.16);
  box-shadow: 0 0 0 3px rgba(119,145,143,.25);
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

#formulario .btn {
  background: var(--tmt-white);
  color: var(--tmt-blue);
  border-color: var(--tmt-white);
  font-size: 16px;
  letter-spacing: .8px;
  padding: 14px 24px;
  margin-top: 4px;
}
#formulario .btn:hover {
  background: rgba(255,255,255,.88);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--tmt-black);
  border-top: 3px solid var(--tmt-blue);
  padding: 24px 0;
  color: rgba(255,255,255,.5);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .5px;
  text-align: center;
}

/* ============================================================
   CARD DIFERENCIADOR — Selección estricta
   ============================================================ */
section:has(.badges) .card {
  border-color: var(--tmt-blue);
  background: linear-gradient(135deg, var(--soft) 0%, #ffffff 100%);
}
/* ── HERO: dos columnas ── */
section:first-of-type .wrap {
  display: block;
}
.hero-inner {
  display: grid !important;
  grid-template-columns: 1fr 400px;
  align-items: center;
  gap: 48px;
  width: 100%;
}
.hero-content {
  text-align: left;
}
.hero-content .cta-row {
  justify-content: flex-start;
}
.hero-img-wrap {
  height: 480px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.hero-img-wrap img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,.5));
  display: block;
}
.hero-img-wrap::before {
  content: '';
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(25,61,112,.4) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}
.hero-avans-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: 12px;
}
.hero-avans-tag span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 99px;
  padding: 4px 12px;
  color: rgba(255,255,255,.9);
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr !important; }
  .hero-content { text-align: center; }
  .hero-content .cta-row { justify-content: center; }
  .hero-avans-tag { justify-content: center; }
  .hero-img-wrap { height: 280px; width: 100%; }
}