/* Vida IP — light flex redesign */
:root {
  --brand-red: #fb3d49;
  --brand-navy: #0e2a3f;
  --brand-blue: #0274be;
  --brand-muted: #6b7c8f;
  --brand-body: #3a3a3a;
  --brand-bg: #f4f7fa;
  --brand-line: #d9e2ec;
  --brand-white: #ffffff;
  --container: 1140px;
  --header-h: 72px;
  --font-display: "Bebas Neue", "Exo 2", sans-serif;
  --font-ui: "Exo 2", "Roboto Condensed", sans-serif;
  --font-body: "Roboto Condensed", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--brand-body);
  background: var(--brand-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }

.site-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.site-main { flex: 1 0 auto; }

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--brand-red);
  color: var(--brand-white);
  box-shadow: 0 2px 12px rgba(14, 42, 63, 0.18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 42px;
  width: auto;
}

.site-logo:hover { text-decoration: none; opacity: 0.92; }

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.site-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-social a {
  color: var(--brand-white);
  opacity: 0.9;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-social a:hover { opacity: 1; text-decoration: none; }
.site-social svg { width: 16px; height: 16px; fill: currentColor; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--brand-white);
  width: 42px;
  height: 42px;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

/* —— Nav —— */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav__item { position: relative; }

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--brand-white);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 4px;
}

.site-nav__link:hover,
.site-nav__item:hover > .site-nav__link,
.site-nav__item.is-open > .site-nav__link {
  background: rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.site-nav__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.85;
}

.site-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--brand-navy);
  border-radius: 6px;
  padding: 8px 0;
  box-shadow: 0 12px 28px rgba(14, 42, 63, 0.28);
  z-index: 50;
}

.site-nav__item:hover > .site-nav__dropdown,
.site-nav__item.is-open > .site-nav__dropdown {
  display: block;
}

.site-nav__dropdown a,
.site-nav__dropdown span {
  display: block;
  padding: 9px 16px;
  color: #cfd8e3;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.site-nav__dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-white);
  text-decoration: none;
}

.site-nav__dropdown span.is-muted {
  color: #8ea3b8;
  cursor: default;
}

.site-nav__sub {
  position: relative;
}

.site-nav__nested {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 200px;
  max-height: 70vh;
  overflow-y: auto;
  background: #153243;
  border-radius: 6px;
  padding: 8px 0;
  box-shadow: 0 12px 28px rgba(14, 42, 63, 0.28);
}

.site-nav__sub:hover > .site-nav__nested,
.site-nav__sub.is-open > .site-nav__nested {
  display: block;
}

/* —— Page chrome —— */
.page-hero {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 100%);
  color: var(--brand-white);
  padding: 52px 0 44px;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.page-hero p {
  margin: 12px 0 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.page-header {
  margin: 0 0 28px;
}

.page-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  color: var(--brand-navy);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.romlicontainer,
.content-block {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.romlicontainer h2,
.content-block h2 {
  font-family: var(--font-display);
  color: var(--brand-navy);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 1.75rem;
  margin: 0 0 14px;
}

.romlicontainer h3,
.content-block h3 {
  font-family: var(--font-ui);
  color: var(--brand-navy);
  font-size: 1.2rem;
  margin: 1.4rem 0 0.5rem;
}

.romlicontainer p,
.content-block p { margin: 0 0 1rem; }

.romlicontainer ul,
.content-block ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--brand-red);
  color: var(--brand-white);
}

.btn--primary:hover { background: #e2313c; color: var(--brand-white); }

.btn--ghost {
  background: transparent;
  color: var(--brand-white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--brand-white);
}

.btn--outline {
  background: transparent;
  color: var(--brand-navy);
  border-color: var(--brand-navy);
}

.btn--outline:hover {
  background: var(--brand-navy);
  color: var(--brand-white);
}

/* —— Home —— */
.home-hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: center;
  color: var(--brand-white);
  background:
    linear-gradient(105deg, rgba(14, 42, 63, 0.88) 0%, rgba(2, 116, 190, 0.55) 55%, rgba(251, 61, 73, 0.35) 100%),
    url("/wp-content/uploads/2017/02/slide-3-vida-ip-home-filtro.jpg") center / cover no-repeat;
}

.home-hero__inner {
  padding: 72px 0 64px;
  max-width: 680px;
}

.home-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  line-height: 1;
  font-weight: 500;
}

.home-hero__lead {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 34ch;
  line-height: 1.4;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: 56px 0;
}

.section--alt { background: var(--brand-bg); }

.section__title {
  font-family: var(--font-display);
  color: var(--brand-navy);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  margin: 0 0 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.section__lead {
  margin: 0 0 28px;
  max-width: 720px;
  color: var(--brand-muted);
  font-size: 1.05rem;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.card-grid--solutions > a,
.card-grid--brands > a {
  flex: 1 1 140px;
  max-width: 180px;
  min-width: 120px;
  background: var(--brand-white);
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--brand-navy);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.card-grid--solutions > a:hover,
.card-grid--brands > a:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 8px 20px rgba(14, 42, 63, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.card-grid img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.card-grid span {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}

.feature-row > * { flex: 1 1 280px; }

.stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.stat {
  flex: 1 1 180px;
  background: var(--brand-white);
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 22px 18px;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--brand-red);
  line-height: 1;
  margin: 0 0 8px;
}

.stat__label {
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.95rem;
}

/* —— Forms —— */
.contact-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}

.contact-layout__form { flex: 1 1 420px; }
.contact-layout__aside { flex: 1 1 240px; }

.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.form-field {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field--full { flex: 1 1 100%; }

.form-field label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-navy);
}

.form-field input,
.form-field textarea,
.form-field select {
  border: 1px solid var(--brand-line);
  border-radius: 4px;
  padding: 11px 12px;
  font: inherit;
  color: var(--brand-body);
  background: var(--brand-white);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid rgba(2, 116, 190, 0.35);
  border-color: var(--brand-blue);
}

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  margin: 8px 0;
}

.form-check input { margin-top: 4px; }

/* —— Brand / list pages —— */
.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.brand-list a {
  flex: 1 1 160px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: var(--brand-white);
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 14px;
}

.brand-list a:hover {
  border-color: var(--brand-red);
  text-decoration: none;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.service-card {
  flex: 1 1 240px;
  background: var(--brand-white);
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 22px 20px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  color: var(--brand-navy);
  font-size: 1.1rem;
}

.service-card p { margin: 0; color: var(--brand-muted); font-size: 0.95rem; }

/* —— Footer —— */
.site-footer {
  background: var(--brand-navy);
  color: #cfd8e3;
  padding: 44px 0 26px;
  margin-top: auto;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.site-footer__logo img { height: 44px; width: auto; }

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer__nav a {
  color: #cfd8e3;
  font-size: 14px;
  font-weight: 600;
}

.site-footer__nav a:hover { color: var(--brand-white); text-decoration: none; }

.site-footer__meta {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: #8ea3b8;
}

.site-footer__meta a {
  color: #8ea3b8;
  text-decoration: underline;
}

.wf-links-section { padding: 28px 0; background: var(--brand-bg); }

/* —— Article helpers (keep romlicontainer styles usable) —— */
.tkjymrp { color: var(--brand-body); font-size: 16px; line-height: 1.7; }
.tkjymrp p { margin: 0 0 1rem; }
.tkjymrp h1, .tkjymrp h2, .tkjymrp h3, .tkjymrp h4 {
  font-family: var(--font-display);
  color: var(--brand-navy);
  line-height: 1.25;
  margin: 1.4rem 0 0.6rem;
  font-weight: 500;
}
.tkjymrp img { border-radius: 4px; }
.tkjymrp a { color: var(--brand-blue); }
.tkjymrp ul, .tkjymrp ol { padding-left: 1.3rem; margin: 0.8rem 0 1rem; list-style: revert; }
.tkjymrp table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.tkjymrp th, .tkjymrp td { padding: 0.55rem 0.65rem; border: 1px solid var(--brand-line); }
.tkjymrp th { background: #eef5fb; color: var(--brand-navy); }

.wf-article { max-width: 1100px; margin: 0 auto; padding: 36px 24px 60px; }
.wf-article__breadcrumb { font-size: 13px; color: var(--brand-muted); margin: 0 0 18px; }
.wf-article__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--brand-navy);
  margin: 0 0 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.wf-article__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}
.wf-article__layout > article { flex: 1 1 560px; }
.wf-sidebar { flex: 0 1 280px; }
.wf-sidebar .widget {
  background: var(--brand-white);
  border: 1px solid var(--brand-line);
  border-radius: 6px;
  padding: 18px 16px;
  margin-bottom: 18px;
}
.wf-sidebar .widget-title {
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-blue);
  margin: 0 0 14px;
  font-weight: 700;
}
.wf-sidebar a { color: var(--brand-navy); font-size: 14px; font-weight: 600; }
.wf-sidebar a:hover { color: var(--brand-blue); }
.wf-recent-item {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8eef4;
}
.wf-recent-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 2000;
  background: var(--brand-white);
  color: var(--brand-navy);
  padding: 8px 12px;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--brand-navy);
    padding: 12px 0 20px;
    justify-content: stretch;
  }

  body.nav-open .site-nav { display: block; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 24px;
    border-radius: 0;
  }

  .site-nav__dropdown,
  .site-nav__nested {
    position: static;
    display: none;
    min-width: 0;
    max-height: none;
    box-shadow: none;
    border-radius: 0;
    background: #153243;
    padding-left: 12px;
  }

  .site-nav__item.is-open > .site-nav__dropdown,
  .site-nav__sub.is-open > .site-nav__nested {
    display: block;
  }

  .site-social { display: none; }
}

@media (max-width: 600px) {
  .home-hero { min-height: 520px; }
  .home-hero__inner { padding: 56px 0 48px; }
  .section { padding: 40px 0; }
}
