:root {
  --ca-black: #000000;
  --ca-dark: #343a40;
  --ca-green: #338f5c;
  --ca-green-dark: #2a7549;
  --ca-green-light: rgba(51, 143, 92, 0.12);
  --ca-bg: #f4f3ef;
  --ca-white: #ffffff;
  --ca-text: #333333;
  --ca-muted: #6c757d;
  --ca-border: #e8e7e3;
  --ca-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  --ca-radius: 12px;
  --ca-max: 1140px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: Roboto, "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ca-text);
  background: var(--ca-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ca-green-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--ca-max));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1.25rem;
  position: relative;
}

.nav__menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav__login {
  flex-shrink: 0;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.nav__brand img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ca-green);
}

.nav__actions {
  display: none;
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--ca-green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(51, 143, 92, 0.32);
}

.btn--primary:hover {
  background: var(--ca-green-dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  border-color: var(--ca-green);
  color: var(--ca-green);
}

.btn--outline {
  background: transparent;
  color: var(--ca-dark);
  border-color: var(--ca-border);
}

.btn--outline:hover {
  border-color: var(--ca-green);
  color: var(--ca-green-dark);
}

/* Hero banner (foto biblioteca WordPress) */
.hero-banner {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  width: 100%;
  min-height: clamp(490px, 51vh, 610px);
}

.hero-banner__bg {
  position: absolute;
  inset: 0;
  background-color: #1f1812;
  background-image: url("/landing/img/hero-background.jpg");
  background-repeat: no-repeat;
  background-position: center 90%;
  background-size: 100% auto;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-banner__content {
  position: relative;
  z-index: 1;
  min-height: inherit;
  padding: 1rem 1rem 4.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-banner__logo {
  width: min(72%, 380px);
  height: auto;
}

.hero-banner__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 1.85rem);
  font-weight: 400;
  line-height: 1.25;
  max-width: 22ch;
  font-family: "Open Sans", Roboto, sans-serif;
}

.hero-banner__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Vista del sistema debajo del banner */
.hero {
  background: linear-gradient(135deg, var(--ca-black) 0%, var(--ca-dark) 55%, #224a38 100%);
  color: #fff;
  padding: 3rem 0 3.5rem;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(51, 143, 92, 0.22), transparent 45%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1,
.hero h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.35;
  margin: 0 0 0.85rem;
  font-weight: 600;
}

.hero h1 span,
.hero h2 span {
  color: var(--ca-green);
}

.hero__lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 42ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__preview {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  border-radius: var(--ca-radius);
  overflow: hidden;
  box-shadow: var(--ca-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #fff;
  line-height: 0;
}

.hero__preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 490;
  object-fit: contain;
  object-position: top left;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--white {
  background: var(--ca-white);
}

.section--dark {
  background: var(--ca-dark);
  color: #fff;
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section__eyebrow {
  color: var(--ca-green-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section--dark .section__eyebrow {
  color: var(--ca-green);
}

.section__header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.section__header p {
  margin: 0;
  color: var(--ca-muted);
}

.section--dark .section__header p {
  color: rgba(255, 255, 255, 0.7);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  background: var(--ca-white);
  border: 1px solid var(--ca-border);
  border-radius: var(--ca-radius);
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ca-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--ca-muted);
  font-size: 0.95rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  background: var(--ca-white);
  border: 1px solid var(--ca-border);
  border-radius: var(--ca-radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature:hover {
  border-color: var(--ca-green);
  box-shadow: 0 8px 24px rgba(2, 119, 52, 0.12);
}

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ca-green-light);
  color: var(--ca-green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--ca-muted);
  font-size: 0.92rem;
}

/* Modules */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.module {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--ca-radius);
}

.module__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ca-green-light);
  color: var(--ca-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.module h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.module p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}

/* Tribunals */
.tribunals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.tribunal-tag {
  background: var(--ca-white);
  border: 1px solid var(--ca-border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Seguimiento detail */
.seguimiento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.seguimiento-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.seguimiento-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ca-border);
}

.seguimiento-list li:last-child {
  border-bottom: 0;
}

.seguimiento-list .check {
  color: var(--ca-green);
  font-weight: 700;
  flex-shrink: 0;
}

/* Plans teaser */
.plans-teaser {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.plan-card {
  background: var(--ca-white);
  border: 1px solid var(--ca-border);
  border-radius: var(--ca-radius);
  padding: 1.5rem;
  text-align: center;
}

.plan-card--highlight {
  border-color: var(--ca-green);
  box-shadow: 0 8px 28px rgba(2, 119, 52, 0.18);
}

.plan-card h3 {
  margin: 0 0 0.25rem;
}

.plan-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ca-dark);
  margin: 0.75rem 0;
}

.plan-card .price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ca-muted);
}

.plan-card ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  text-align: left;
  font-size: 0.88rem;
  color: var(--ca-muted);
}

.plan-card li {
  padding: 0.3rem 0;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  background: var(--ca-white);
  border: 1px solid var(--ca-border);
  border-radius: var(--ca-radius);
  margin-bottom: 0.75rem;
  padding: 0.25rem 1.25rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--ca-green-dark);
}

.faq p {
  margin: 0 0 1rem;
  color: var(--ca-muted);
  font-size: 0.95rem;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--ca-green-dark), var(--ca-green));
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: var(--ca-radius);
}

.cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta p {
  margin: 0 0 1.5rem;
  opacity: 0.92;
}

.cta .btn--ghost {
  border-color: #fff;
  color: #fff;
}

.cta .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Footer */
.footer {
  background: var(--ca-black);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: #fff;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 0.4rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer a:hover {
  color: var(--ca-green);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  text-align: center;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.social a:hover {
  background: var(--ca-green);
}

/* Subpage content */
.page-hero {
  background: var(--ca-black);
  color: #fff;
  padding: 3rem 0;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  max-width: 60ch;
}

.page-content {
  padding: 3rem 0 4rem;
}

.page-content .prose {
  background: var(--ca-white);
  border: 1px solid var(--ca-border);
  border-radius: var(--ca-radius);
  padding: 2rem;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.page-content th,
.page-content td {
  border: 1px solid var(--ca-border);
  padding: 0.5rem 0.65rem;
  text-align: center;
}

.page-content th {
  background: var(--ca-bg);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
  .hero__grid,
  .seguimiento-grid,
  .modules {
    grid-template-columns: 1fr;
  }

  .features,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans-teaser {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: block;
    order: 3;
  }

  .nav__login {
    order: 2;
    margin-left: auto;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
  }

  .nav__brand {
    order: 1;
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex: none;
    justify-content: flex-start;
    background: var(--ca-black);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    order: 4;
  }

  .nav__menu.is-open {
    display: block;
  }

  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .features,
  .steps,
  .plans-teaser {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    min-height: 450px;
  }

  .hero-banner__bg {
    background-size: 100% auto;
    background-position: center 90%;
  }

  .hero-banner__content {
    padding: 0.875rem 1rem 3.5rem;
  }

  .hero-banner__logo {
    width: min(85%, 280px);
  }

  .hero {
    padding-top: 3rem;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__preview {
    order: -1;
    max-width: 100%;
    justify-self: stretch;
  }
}
