/* ==========================================================================
   VARIABLES EDITABLES (Colores, tipografía y radios)
   ========================================================================== */
:root {
  --ink-dark: #0b131e;
  --ink-slate: #162232;
  --navy: #0e2440;
  --green: #6db33f;
  --green-hover: #5ca030;
  --banner-green: #156c3b;
  --amber: #f5b800;
  --text-main: #1f2937;
  --text-muted: #5b6675;
  --surface: #ffffff;
  --surface-alt: #f4f6f8;
  --border: #e2e8f0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--green);
}

.center {
  text-align: center;
}

.mt-lg {
  margin-top: 40px;
}

/* ==========================================================================
   BARRA SUPERIOR Y CABECERA
   ========================================================================== */
.util-bar {
  background-color: var(--ink-dark);
  color: #cbd5e1;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.util-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 12px;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--navy);
}

.brand-img {
  height: 36px;
  width: auto;
}

.brand-inline {
  font-weight: 800;
  color: var(--navy);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a:not(.btn-outline-dark):not(.btn-solid-green) {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.main-nav a:not(.btn-outline-dark):not(.btn-solid-green):hover {
  color: var(--green);
}

/* Botones */
.btn-outline-dark {
  padding: 9px 16px;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  transition: all 0.2s ease;
}

.btn-outline-dark:hover {
  background-color: var(--navy);
  color: var(--surface);
}

.btn-solid-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background-color: var(--green);
  color: var(--surface);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-solid-green:hover {
  background-color: var(--green-hover);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 0.95rem;
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.btn-ghost-light:hover {
  background-color: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   HERO PRINCIPAL
   ========================================================================== */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1800&q=80') center / cover no-repeat;
  color: var(--surface);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 19, 30, 0.88) 0%, rgba(11, 19, 30, 0.65) 58%, rgba(11, 19, 30, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 72px 0;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a7f374;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.05rem;
  color: #e2e8f0;
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   SECCIÓN DIVIDIDA (IMAGEN + TEXTO)
   ========================================================================== */
.split-section {
  background-color: var(--surface);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.split-media {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-quote {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  background: rgba(11, 19, 30, 0.84);
  color: var(--surface);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--green);
  font-size: 0.98rem;
  font-weight: 600;
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px clamp(24px, 5vw, 72px);
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.split-copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 18px;
}

.split-copy p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.metrics-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.metrics-inline strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

.metrics-inline span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CATÁLOGO Y TARJETAS VISUALES
   ========================================================================== */
.catalog-section {
  padding: 84px 0;
  background-color: var(--surface-alt);
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-heading p {
  color: var(--text-muted);
}

.group-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cards-2-wide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.visual-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(14, 36, 64, 0.08);
}

.card-thumb {
  height: 175px;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 18px;
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 6px;
}

.card-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.horizontal-card {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.horizontal-card .card-thumb {
  height: 100%;
  min-height: 150px;
}

/* ==========================================================================
   TABLA COMPARATIVA CON TARJETA CENTRAL ELEVADA
   ========================================================================== */
.compare-section {
  padding: 84px 0;
  background-color: var(--surface);
}

.compare-table-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr 1fr;
  align-items: center;
  background-color: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--border);
}

.compare-col {
  display: flex;
  flex-direction: column;
}

.col-head {
  padding: 20px 22px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}

.col-row {
  padding: 16px 22px;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-row:last-child {
  border-bottom: none;
}

.center-highlight {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(14, 36, 64, 0.12);
  border: 1px solid var(--border);
  transform: scale(1.02);
  z-index: 2;
}

.highlight-head {
  text-align: center;
  font-size: 1.05rem;
}

.check {
  color: var(--green);
  font-weight: 800;
}

.cross {
  color: #dc2626;
  font-weight: 800;
}

.compare-footnote {
  text-align: center;
  margin-top: 26px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECCIÓN OSCURA CON PESTAÑAS CSS (:target)
   ========================================================================== */
.offer-dark-section {
  padding: 88px 0;
  background-color: var(--ink-dark);
  color: var(--surface);
}

.kicker-light {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #a7f374;
  margin-bottom: 12px;
}

.offer-top-copy {
  max-width: 780px;
  margin-bottom: 36px;
}

.offer-top-copy h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.3;
}

.tab-state {
  display: none;
}

.tabs-bar {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #94a3b8;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover {
  color: var(--surface);
}

.offer-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.offer-panel-box {
  background-color: var(--ink-slate);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.offer-panel-box h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #a7f374;
  margin-bottom: 10px;
}

.offer-panel-box p {
  font-size: 0.92rem;
  color: #cbd5e1;
}

/* Estado activo por defecto (Pestaña 01) y al hacer clic en #tab-02 o #tab-03 */
.tab-link-1,
.panel-1 {
  border-color: var(--green);
  color: var(--surface);
}

#tab-02:target ~ .tabs-bar .tab-link-1,
#tab-03:target ~ .tabs-bar .tab-link-1 {
  border-bottom-color: transparent;
  color: #94a3b8;
}

#tab-02:target ~ .tabs-bar .tab-link-2,
#tab-03:target ~ .tabs-bar .tab-link-3 {
  border-bottom-color: var(--green);
  color: var(--surface);
}

#tab-02:target ~ .offer-panels .panel-2,
#tab-03:target ~ .offer-panels .panel-3 {
  border-color: var(--green);
  transform: translateY(-3px);
}

/* ==========================================================================
   BANNER VERDE CTA
   ========================================================================== */
.cta-banner-section {
  padding: 56px 0;
  background-color: var(--surface);
}

.cta-banner {
  background: linear-gradient(120deg, var(--banner-green) 0%, #1e8449 100%);
  color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.cta-text p {
  color: #dcfce7;
  font-size: 0.95rem;
}

.btn-amber {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  background-color: var(--amber);
  color: var(--ink-dark);
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* ==========================================================================
   FORMULARIO DE CONTACTO
   ========================================================================== */
.contact-section {
  padding: 80px 0;
  background-color: var(--surface-alt);
}

.contact-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.req {
  color: #dc2626;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--surface);
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form-notice {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background-color: #dcfce7;
  color: #14532d;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */
.site-footer {
  background-color: var(--ink-dark);
  color: #cbd5e1;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--surface);
  margin-bottom: 12px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--surface);
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.footer-col a:hover {
  color: var(--surface);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.8rem;
  color: #64748b;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   ADAPTACIÓN MÓVIL Y TABLET
   ========================================================================== */
@media (max-width: 980px) {
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-grid {
    grid-template-columns: 1fr;
  }

  .compare-table-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .center-highlight {
    transform: none;
  }

  .offer-panels {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main-nav {
    gap: 12px;
  }

  .cards-4,
  .cards-2-wide,
  .form-row {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    grid-template-columns: 1fr;
  }

  .metrics-inline {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 24px 18px;
  }

  .cta-banner {
    padding: 28px 22px;
  }
}