/* ============================================================
   CONVENIR SISTEMAS DE COBRANZAS S.A.S. — Hoja de estilos
   Paleta de marca: coral #F97350 · crema #F9F0DF · azul #120078
   ============================================================ */

:root {
  --coral: #F97350;
  --coral-dark: #E55A36;
  --coral-soft: #FDE5DD;
  --navy: #120078;
  --navy-dark: #0B004E;
  --navy-deep: #080038;
  --cream: #F9F0DF;
  --cream-light: #FDF9F1;
  --ink: #211D35;
  --gray: #5E5A72;
  --gray-light: #8E8AA0;
  --white: #FFFFFF;
  --border: #ECE4D4;
  --shadow-sm: 0 2px 8px rgba(18, 0, 120, 0.06);
  --shadow-md: 0 8px 30px rgba(18, 0, 120, 0.10);
  --shadow-lg: 0 20px 60px rgba(18, 0, 120, 0.16);
  --radius: 16px;
  --radius-lg: 24px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--navy-deep); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -0.3px; }
h3 { font-size: 1.25rem; }

.section { padding: 88px 0; }
.section--cream { background: var(--cream-light); }
.section--navy { background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 70%, #1E0A9E 100%); color: #EFEAFF; }
.section--navy h2 { color: var(--white); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--coral-dark); margin-bottom: 16px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--coral); border-radius: 2px; }
.section--navy .kicker { color: #FFB39E; }
.section--navy .kicker::before { background: #FFB39E; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head p { color: var(--gray); margin-top: 14px; font-size: 1.06rem; }
.section--navy .section-head p { color: #C9C2EC; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px; font-weight: 600; font-size: 0.98rem;
  border: 2px solid transparent; cursor: pointer; transition: all .25s ease;
  font-family: var(--font-body);
}
.btn--primary { background: var(--coral); color: var(--white); box-shadow: 0 8px 24px rgba(249, 115, 80, 0.35); }
.btn--primary:hover { background: var(--coral-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(249, 115, 80, 0.45); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--cream); transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--whatsapp { background: #25D366; color: var(--white); }
.btn--whatsapp:hover { background: #1EB955; transform: translateY(-2px); }
.btn--sm { padding: 9px 20px; font-size: .85rem; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-deep); color: #C9C2EC; font-size: 0.82rem; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 500; }
.topbar a:hover { color: var(--coral); }
.topbar__group { display: flex; gap: 22px; align-items: center; }
.topbar .tag-nacional { color: #FFB39E; font-weight: 600; letter-spacing: .4px; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav__logo img { height: 46px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav__menu > li { position: relative; }
.nav__menu a { color: var(--ink); font-weight: 500; font-size: 0.95rem; padding: 10px 14px; border-radius: 8px; display: block; }
.nav__menu a:hover, .nav__menu a.active { color: var(--coral-dark); background: var(--coral-soft); }
.nav__cta { margin-left: 12px; }
.dropdown__panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px;
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s ease;
  list-style: none;
}
.dropdown:hover .dropdown__panel, .dropdown:focus-within .dropdown__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__panel a { padding: 12px 14px; border-radius: 10px; display: flex; flex-direction: column; gap: 2px; }
.dropdown__panel a strong { color: var(--navy-deep); font-weight: 600; font-size: 0.94rem; }
.dropdown__panel a span { font-size: 0.8rem; color: var(--gray); font-weight: 400; }
.dropdown__panel a:hover { background: var(--cream-light); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2.6px; background: var(--navy-deep); margin: 5.5px 0; border-radius: 3px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(249, 115, 80, 0.22), transparent 60%),
    radial-gradient(700px 600px at -10% 110%, rgba(249, 115, 80, 0.12), transparent 55%),
    linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 60%, #1C089A 100%);
  color: var(--white); padding: 96px 0 110px; position: relative; overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 100px; font-size: 0.82rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: #FFD9CC; margin-bottom: 26px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #2EE6A8; box-shadow: 0 0 12px #2EE6A8; }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--coral); }
.hero__sub { font-size: 1.13rem; color: #CFC8F2; max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 0; margin-top: 56px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 30px; flex-wrap: wrap; }
.hero__stat { padding-right: 40px; margin-right: 40px; border-right: 1px solid rgba(255,255,255,0.15); }
.hero__stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero__stat strong { font-family: var(--font-display); font-size: 2rem; color: var(--white); display: block; }
.hero__stat span { font-size: 0.83rem; color: #B5ACE0; letter-spacing: .3px; }

/* Tarjeta visual del hero */
.hero__card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg); padding: 30px; backdrop-filter: blur(6px);
}
.hero__card h3 { color: var(--white); font-size: 1.02rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero__card h3 svg { flex-shrink: 0; }
.stage { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 12px; background: rgba(255,255,255,0.05); margin-bottom: 10px; }
.stage:last-child { margin-bottom: 0; }
.stage__num {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; background: var(--coral); color: var(--white);
}
.stage:nth-child(3) .stage__num { background: #FF9D7E; }
.stage:nth-child(4) .stage__num { background: #FFC7B0; color: var(--navy-deep); }
.stage strong { display: block; font-size: 0.93rem; color: var(--white); }
.stage span { font-size: 0.79rem; color: #B5ACE0; }
.hero__card .pill-row { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.pill { font-size: 0.74rem; padding: 6px 13px; border-radius: 100px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); color: #DCD6F7; }

/* ---------- Foto del equipo en el hero ---------- */
.hero__visual { position: relative; }
.hero__photo { position: relative; }
.hero__photo::before {
  content: ""; position: absolute; top: -34px; right: -34px; width: 230px; height: 230px;
  background: radial-gradient(circle, rgba(249,115,80,.55), transparent 65%);
  filter: blur(12px); border-radius: 50%; z-index: 0;
  animation: pulseGlow 6s ease-in-out infinite;
}
.hero__photo img.main {
  position: relative; z-index: 1; width: 100%; height: 560px; object-fit: cover;
  object-position: center 72%; border-radius: 26px;
  border: 1px solid rgba(255,255,255,.22); box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.hero__photo-badge {
  position: absolute; z-index: 2; top: 26px; left: -26px;
  background: var(--white); border-radius: 16px; padding: 14px 20px;
  box-shadow: var(--shadow-lg); animation: floaty 5s ease-in-out infinite;
}
.hero__photo-badge strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--coral-dark); display: block; line-height: 1.1; }
.hero__photo-badge span { font-size: .78rem; color: var(--gray); }
.hero__photo-chip {
  position: absolute; z-index: 2; bottom: 26px; right: -18px;
  background: rgba(8,0,56,.85); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px); color: #fff; padding: 11px 18px; border-radius: 100px;
  font-size: .85rem; font-weight: 600; display: flex; gap: 9px; align-items: center;
  animation: floaty 6s ease-in-out 1.2s infinite;
}
.hero__photo-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #2EE6A8; box-shadow: 0 0 10px #2EE6A8; }

/* ---------- Banda de logos ---------- */
.logos { padding: 46px 0; background: var(--white); border-bottom: 1px solid var(--border); }
.logos p { text-align: center; font-size: 0.82rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-light); font-weight: 600; margin-bottom: 28px; }
.logos__row { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.logos__row img { height: 44px; width: auto; filter: grayscale(1) opacity(0.55); transition: filter .3s; }
.logos__row img:hover { filter: grayscale(0) opacity(1); }

/* ---------- Carrusel infinito de logos ---------- */
.logos__marquee { display: flex; overflow: hidden; gap: 48px; }
.logos__marquee .logos__row { flex-shrink: 0; min-width: max-content; flex-wrap: nowrap; animation: marquee 32s linear infinite; }
.logos__marquee:hover .logos__row { animation-play-state: paused; }

/* ---------- Tarjetas de servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 28px; transition: all .3s ease; display: flex; flex-direction: column; position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--coral-soft); }
.card__icon {
  width: 58px; height: 58px; border-radius: 16px; background: var(--coral-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px; color: var(--coral-dark);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--gray); font-size: 0.95rem; flex-grow: 1; }
.card__link { margin-top: 22px; font-weight: 600; font-size: 0.92rem; color: var(--coral-dark); display: inline-flex; align-items: center; gap: 6px; }
.card__link::after { content: "→"; transition: transform .25s; }
.card:hover .card__link::after { transform: translateX(5px); }

/* ---------- Imágenes de servicio en tarjetas ---------- */
.card__img { margin: -34px -28px 24px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.card__img img { width: 100%; height: 150px; object-fit: cover; display: block; transition: transform .55s ease; }
.card:hover .card__img img { transform: scale(1.07); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature { display: flex; gap: 18px; padding: 26px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); }
.feature__icon { width: 46px; height: 46px; border-radius: 13px; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--gray); font-size: 0.91rem; }

/* ---------- Cobertura nacional ---------- */
.coverage__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.coverage__viz { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-lg); padding: 28px; }
.coverage ul.checks { list-style: none; margin-top: 26px; }
.coverage ul.checks li { display: flex; gap: 13px; margin-bottom: 16px; color: #DCD6F7; font-size: 0.98rem; align-items: flex-start; }
.coverage ul.checks li::before {
  content: "✓"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--coral); color: var(--white); display: flex; align-items: center;
  justify-content: center; font-size: 0.78rem; font-weight: 700; margin-top: 2px;
}
.city-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.city-chips .pill { font-size: 0.8rem; }
.city-chips .pill--hq { background: var(--coral); border-color: var(--coral); color: var(--white); font-weight: 600; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 600;
  color: var(--coral-soft); position: absolute; top: 18px; right: 22px; line-height: 1;
}
.step h3 { font-size: 1.08rem; margin-bottom: 10px; padding-right: 50px; }
.step p { color: var(--gray); font-size: 0.92rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(249,115,80,.3), transparent 60%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-radius: var(--radius-lg); padding: 64px 56px; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); max-width: 560px; }
.cta-banner p { color: #C9C2EC; margin-top: 10px; max-width: 520px; }
.cta-banner__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Formulario / Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.form-card h3 { margin-bottom: 6px; font-size: 1.4rem; }
.form-card > p { color: var(--gray); font-size: 0.93rem; margin-bottom: 26px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--navy-deep); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 12px;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); background: var(--cream-light);
  transition: border-color .2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--coral); background: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.78rem; color: var(--gray-light); margin-top: 14px; }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.contact-list li:last-child { border-bottom: none; }
.contact-list .feature__icon { background: var(--coral-soft); color: var(--coral-dark); }
.contact-list strong { display: block; color: var(--navy-deep); font-size: 0.95rem; margin-bottom: 3px; }
.contact-list span, .contact-list a { color: var(--gray); font-size: 0.92rem; }
.contact-list a:hover { color: var(--coral-dark); }

/* Directorio telefónico */
.phone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.phone-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.phone-card strong { color: var(--navy-deep); display: block; margin-bottom: 6px; font-size: 0.95rem; }
.phone-card a { display: inline-block; color: var(--gray); font-size: 0.9rem; margin-right: 12px; }
.phone-card a:hover { color: var(--coral-dark); }

/* WhatsApp en directorio telefónico */
.phone-card .wa { display: block; color: #1EB955; font-weight: 600; margin-top: 6px; }
.phone-card .wa:hover { color: #128C7E; }

/* ---------- Página interna (hero secundario) ---------- */
.page-hero {
  background:
    radial-gradient(700px 380px at 90% -20%, rgba(249,115,80,.18), transparent 60%),
    linear-gradient(150deg, var(--navy-deep), var(--navy));
  color: var(--white); padding: 72px 0;
}
.page-hero h1 { color: var(--white); max-width: 760px; }
.page-hero p { color: #C9C2EC; max-width: 640px; margin-top: 16px; font-size: 1.08rem; }
.breadcrumb { font-size: 0.83rem; color: #9D93D6; margin-bottom: 20px; }
.breadcrumb a { color: #C9C2EC; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Ilustración en hero de páginas de servicio ---------- */
.page-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.page-hero__art {
  width: 100%; border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.15); animation: floaty 7s ease-in-out infinite;
}

/* ---------- Contenido editorial ---------- */
.prose { max-width: 760px; }
.prose h2 { margin: 44px 0 16px; }
.prose h3 { margin: 30px 0 10px; }
.prose p { color: var(--gray); margin-bottom: 16px; }
.prose ul { margin: 0 0 18px 22px; color: var(--gray); }
.prose ul li { margin-bottom: 9px; }
.prose strong { color: var(--navy-deep); }

.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.sidebar-card { background: var(--cream-light); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; position: sticky; top: 110px; }
.sidebar-card h3 { margin-bottom: 14px; }
.sidebar-card p { color: var(--gray); font-size: 0.92rem; margin-bottom: 20px; }
.sidebar-card .btn { width: 100%; margin-bottom: 10px; }
.sidebar-links { list-style: none; margin-top: 22px; border-top: 1px solid var(--border); padding-top: 20px; }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a { color: var(--gray); font-size: 0.92rem; display: flex; gap: 8px; padding: 7px 10px; border-radius: 9px; }
.sidebar-links a:hover, .sidebar-links a.active { background: var(--coral-soft); color: var(--coral-dark); }

/* ---------- FAQ acordeón ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 22px 26px; font-weight: 600; color: var(--navy-deep);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--coral); font-weight: 400; transition: transform .25s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item div { padding: 0 26px 22px; color: var(--gray); font-size: 0.95rem; }

/* ---------- Timeline (historia) ---------- */
.timeline { position: relative; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline__item { position: relative; padding: 0 0 38px 64px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: 0; top: 2px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--coral-soft); border: 2.5px solid var(--coral);
  display: flex; align-items: center; justify-content: center;
}
.timeline__dot svg { color: var(--coral-dark); }
.timeline__year { font-family: var(--font-display); font-size: 1.5rem; color: var(--coral-dark); font-weight: 600; }
.timeline__item h3 { margin: 4px 0 8px; }
.timeline__item p { color: var(--gray); font-size: 0.95rem; }

/* ---------- Valores ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* ---------- Historia con foto (blanco y negro) ---------- */
.history-grid { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: start; }
.history-photo { margin: 0; position: sticky; top: 110px; }
.history-photo img { width: 100%; border-radius: var(--radius-lg); filter: grayscale(1) contrast(1.06); box-shadow: var(--shadow-lg); }
.history-photo figcaption { font-size: 0.85rem; color: var(--gray-light); margin-top: 12px; line-height: 1.55; }
.img-bw { filter: grayscale(1) contrast(1.06); }

/* ---------- Afiliaciones y seguridad ---------- */
.trust-strip { padding: 36px 0 8px; background: var(--white); }
.trust-band { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 44px; }
.features--center { display: flex; flex-wrap: wrap; justify-content: center; }
.features--center .feature { flex: 1 1 300px; max-width: 372px; }
.trust-item {
  flex: 1; min-width: 290px; display: flex; align-items: center; gap: 22px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 30px;
}
.trust-item img { height: 58px; width: auto; max-width: 180px; object-fit: contain; border-radius: 10px; }
.trust-item strong { display: block; color: var(--navy-deep); font-size: 1.02rem; margin-bottom: 3px; }
.trust-item span { color: var(--gray); font-size: 0.89rem; line-height: 1.5; }

/* ---------- Portal de empleados (auth) ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: start; }
.auth-card { max-width: 460px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 24px; background: var(--cream-light); border-radius: 100px; padding: 5px; }
.auth-tabs button {
  flex: 1; border: none; background: transparent; padding: 11px 18px; border-radius: 100px;
  font-family: var(--font-body); font-weight: 600; font-size: .92rem; color: var(--gray); cursor: pointer; transition: all .25s;
}
.auth-tabs button.active { background: var(--navy); color: var(--white); }
.auth-msg { margin-top: 14px; font-size: .9rem; border-radius: 12px; padding: 12px 16px; display: none; }
.auth-msg.ok { display: block; background: #E8FAF1; color: #0E7A4E; border: 1px solid #B5ECD2; }
.auth-msg.err { display: block; background: #FDEAEA; color: #B3261E; border: 1px solid #F5C6C2; }
.auth-msg.warn { display: block; background: #FFF6E5; color: #8A5A00; border: 1px solid #F2DDA9; }
.auth-steps { list-style: none; }
.auth-steps li { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.auth-steps .stage__num { margin-top: 2px; }
.auth-steps strong { display: block; color: var(--navy-deep); }
.auth-steps span { color: var(--gray); font-size: .92rem; }
.portal-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 26px; margin-bottom: 36px; box-shadow: var(--shadow-sm);
}
.portal-bar strong { color: var(--navy-deep); }
.portal-bar span { color: var(--gray); font-size: .9rem; }
.captcha-box { margin-bottom: 16px; }
.captcha-box iframe { max-width: 100%; }

/* ---------- Páginas legales ---------- */
.legal-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.legal-meta .pill { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #EFEAFF; font-size: .8rem; }
.legal-grid { display: grid; grid-template-columns: 270px 1fr; gap: 52px; align-items: start; }
.legal-toc { position: sticky; top: 110px; background: var(--cream-light); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.legal-toc h3 { font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray-light); margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; }
.legal-toc ol { list-style: none; counter-reset: toc; }
.legal-toc li { margin-bottom: 3px; }
.legal-toc ol a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--gray); font-size: .87rem; line-height: 1.4; }
.legal-toc ol a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--coral); font-weight: 700; font-size: .76rem; margin-top: 2px; }
.legal-toc ol a:hover { background: var(--coral-soft); color: var(--coral-dark); }
.legal-toc .toc-related { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 16px; }
.legal-toc .toc-related a { display: block; padding: 6px 10px; border-radius: 9px; color: var(--gray); font-size: .87rem; }
.legal-toc .toc-related a:hover { background: var(--coral-soft); color: var(--coral-dark); }
.legal-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px 38px; margin-bottom: 20px; scroll-margin-top: 110px; }
.legal-section h2 { font-size: 1.22rem; margin-bottom: 14px; display: flex; align-items: baseline; gap: 14px; }
.legal-section h2 .num { font-family: var(--font-display); color: var(--coral); font-size: 1.65rem; line-height: 1; }
.legal-section p, .legal-section li { color: var(--gray); font-size: .96rem; }
.legal-section p { margin-bottom: 12px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 12px 0 4px 20px; }
.legal-section li { margin-bottom: 10px; }
.legal-section strong { color: var(--navy-deep); }
.legal-sign { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 18px; }
.legal-sign div { border-top: 2px solid var(--navy); padding-top: 10px; min-width: 250px; }
.legal-sign strong { display: block; color: var(--navy-deep); }
.legal-sign span { font-size: .85rem; color: var(--gray); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #B5ACE0; padding: 70px 0 0; font-size: 0.92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 50px; }
.footer__brand img { height: 44px; margin-bottom: 18px; filter: brightness(0) invert(1) opacity(.95); }
.footer__brand p { font-size: 0.88rem; line-height: 1.7; }
.footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; font-weight: 700; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 11px; }
.footer a { color: #B5ACE0; }
.footer a:hover { color: var(--coral); }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: var(--white); transition: background .25s;
}
.footer__social a:hover { background: var(--coral); color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; color: #8B81C4; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 1100;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45); transition: transform .25s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }

/* ---------- Animaciones ---------- */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulseGlow { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes marquee { to { transform: translateX(calc(-100% - 48px)); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Entrada del hero */
.hero__badge { animation: fadeUp .7s ease both; }
.hero h1 { animation: fadeUp .8s ease .1s both; }
.hero__sub { animation: fadeUp .8s ease .22s both; }
.hero__actions { animation: fadeUp .8s ease .34s both; }
.hero__stats { animation: fadeUp .8s ease .48s both; }
.hero__visual { animation: fadeUp .9s ease .3s both; }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .hero__badge, .hero h1, .hero__sub, .hero__actions, .hero__stats, .hero__visual,
  .hero__photo::before, .hero__photo-badge, .hero__photo-chip, .page-hero__art,
  .logos__marquee .logos__row { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .coverage__grid, .contact__grid, .two-col, .history-grid, .page-hero__grid, .auth-wrap { grid-template-columns: 1fr; }
  .two-col { gap: 40px; }
  .sidebar-card { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 70px 0 80px; }
  .section { padding: 64px 0; }
  .history-photo { position: static; max-width: 520px; }
  .hero__photo img.main { height: 430px; }
  .hero__photo-badge { left: 14px; }
  .hero__photo-chip { right: 14px; }
  .page-hero__art { max-width: 460px; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-section { padding: 26px 24px; }
  .auth-card { max-width: 100%; }
}
@media (max-width: 820px) {
  .nav__menu {
    position: fixed; inset: 78px 0 auto 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 18px 22px 26px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    display: none; max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav__menu.open { display: flex; }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .dropdown__panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 16px; }
  .topbar__group:last-child { display: none; }
  .hero__stat { padding-right: 24px; margin-right: 24px; }
  .cta-banner { padding: 44px 30px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 18px; }
  .hero__stat { border-right: none; padding-right: 0; margin-right: 0; width: 45%; }
}
