/* ══════════════════════════════════════════════════════════════════
   INTRANET CONEXO — hoja de estilos (mobile-first)
   Identidad basada en el sistema de marca de Conexo Inmobiliario
   (referencia: app Postventas Conexo).
   Paleta: coral #ff585f · casi-negro #2a2623 · navy #172641
   · gris #e0e1dd · arena #d5d0c9 · fondo beige #f5f2ec
   Tipografías: Archivo (display) + Inter (texto)
   ══════════════════════════════════════════════════════════════════ */

:root {
  --coral: #ff585f;
  --coral-dark: #e14b52;
  --ink: #2a2623;
  --navy: #172641;
  --gray: #6f6a60;
  --gray-dark: #9a958a;
  --line: #e8e6e3;
  --sand: #d5d0c9;
  --bg: #f5f2ec;
  --surface: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(23, 38, 65, 0.08);
  --shadow-hover: 0 10px 34px rgba(23, 38, 65, 0.14);
  --font-display: 'Archivo', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo, .header-badge, .btn, .hero-eyebrow {
  font-family: var(--font-display);
}

a { color: var(--coral-dark); }

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ── TOPBAR ───────────────────────────────────────────────── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(23, 38, 65, 0.04);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-img {
  height: 26px;
  width: auto;
  display: inline-block;
}
.topbar-right { display: flex; align-items: center; gap: 14px; }
.header-nav { display: none; gap: 16px; }
.header-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
}
.header-nav a:hover { color: var(--coral-dark); }

.header-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral-dark);
  background: rgba(255, 88, 95, 0.1);
  border: 1px solid rgba(255, 88, 95, 0.22);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #e8e6e3 0%, #d5d0c9 100%);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 44px;
}
.hero-content { max-width: 720px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-dark);
  margin-bottom: 12px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero p {
  margin: 0;
  font-size: clamp(15px, 3.6vw, 18px);
  color: var(--gray);
  max-width: 60ch;
}

/* ── MÓDULOS ──────────────────────────────────────────────── */
.section-modules { padding: 34px 0 56px; }

.pending-notice {
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.3);
  color: #8a5300;
  font-size: 13.5px;
  line-height: 1.45;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 22px;
}

.module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #ddd8cf;
}
.module-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--coral);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.module-card:hover::before { opacity: 1; }

.module-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 88, 95, 0.1);
  color: var(--coral-dark);
  margin-bottom: 16px;
}
.module-icon svg { width: 24px; height: 24px; display: block; }

.module-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.module-card p {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--gray);
  flex: 1 1 auto;
}

/* CTA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: var(--coral);
  color: var(--ink);
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.btn:hover { background: var(--coral-dark); color: #fff; transform: translateY(-1px); }
.btn .btn-arrow { transition: transform 0.16s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Botón secundario (contorno) */
.btn-outline {
  margin-top: 10px;
  background: transparent;
  color: var(--ink);
  border-color: var(--sand);
  text-transform: none;
  letter-spacing: 0.01em;
}
.btn-outline:hover {
  background: var(--bg);
  color: var(--coral-dark);
  border-color: var(--coral);
}

.btn.is-disabled,
.btn[disabled] {
  background: #ece9e3;
  color: var(--gray-dark);
  border-color: #e2ded6;
  cursor: not-allowed;
  text-transform: none;
  letter-spacing: 0.01em;
}
.btn.is-disabled:hover,
.btn[disabled]:hover { background: #ece9e3; color: var(--gray-dark); transform: none; }

/* Focus visible */
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 88, 95, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
  color: var(--gray-dark);
  font-size: 12.5px;
}
.footer-inner #footerOrg { color: var(--gray); font-weight: 600; }
.footer-social {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  min-width: 0;
  max-width: 100%;
}
.footer-social a { color: var(--gray-dark); text-decoration: none; }
.footer-social a:hover { color: var(--coral-dark); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (min-width: 560px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .header-nav { display: flex; }
  .topbar-inner { min-height: 66px; }
  .logo-img { height: 28px; }
  .hero { padding: 54px 0 58px; }
}
@media (min-width: 900px) {
  .module-card { padding: 28px 26px 24px; }
}

/* ── ACCESIBILIDAD / MOVIMIENTO ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .module-card:hover { transform: none; }
}
