:root {
  /* Paleta Oficial Krak 2025 */
  --brand-primary: #08407c;
  /* Azul Principal */
  --brand-secondary: #7c8594;
  /* Gris Azulado */
  --brand-dark: #4e586e;
  /* Gris Oscuro */
  --brand-light: #c3c3c3;
  /* Gris Claro */
  --bg-faint: #f3f3f3;
  /* Gris casi blanco para fondos */

  /* Aplicación Semántica */
  --bg-white: #ffffff;
  --bg-light: var(--bg-faint);
  --text-main: var(--brand-dark);
  --text-muted: var(--brand-secondary);
  --primary-accent: var(--brand-primary);
  --secondary-accent: var(--brand-secondary);
  --border-color: var(--brand-light);

  /* Tipografía */
  --font-main: "Inter", sans-serif;

  /* Formas – Limpio y Moderno */
  --radius-soft: 4px;
  --radius-round: 50px;
  --shadow-soft: 0 4px 12px rgba(8, 64, 124, 0.08);
}

/* ── Reset ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-white);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--brand-dark);
}

p {
  font-weight: 400;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ── Header ── */
.site-header {
  max-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100px;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  padding: 4px 0;
}

.logo-img {
  width: 120px;
  height: auto;
  min-width: 90px;
  display: block;
  object-fit: contain;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-soft);
  font-weight: 600;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  box-shadow: none;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #063160;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--brand-dark);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #3b4252;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--brand-dark);
}

.btn-outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.full-width {
  width: 100%;
}

/* ── Hero Split ── */
.hero-split {
  display: flex;
  height: 100vh;
  padding-top: 70px;
}

.hero-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  transition: flex 0.5s ease;
  position: relative;
  overflow: hidden;
}

.hero-side:hover {
  flex: 1.15;
}

.seller-side {
  background-image: url("./img/vendeenkrak.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-right: 1px solid var(--border-color);
}

.buyer-side {
  background-color: var(--bg-light);
  background-image: url("./img/compraenkrak.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Mejora de legibilidad sobre imágenes de fondo */
.seller-side,
.buyer-side {
  position: relative;
  color: #ffffff;
}

.seller-side::before,
.buyer-side::before {
  content: "";
  position: absolute;
  inset: 0;
  /* ligero degradado para dar contraste al texto */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.seller-side .content,
.buyer-side .content {
  z-index: 2;
  color: #ffffff;
}

.seller-side h1,
.buyer-side h1 {
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.seller-side p,
.buyer-side p {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Ajustes para la etiqueta (tag) sobre imagen */
.seller-side .tag,
.buyer-side .tag {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Si necesita un bloque de texto más legible en pantallas pequeñas */
@media (max-width: 900px) {
  .hero-split {
    flex-direction: column;
    height: auto;
  }

  .hero-side {
    padding: 60px 28px;
    min-height: 60vh;
  }

  .seller-side::before,
  .buyer-side::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.24) 0%,
      rgba(0, 0, 0, 0.6) 100%
    );
  }
}

.hero-side .content {
  max-width: 450px;
  z-index: 2;
}

.hero-side h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--bg-white);
}

.hero-side p {
  font-size: 1.15rem;
  color: var(--bg-white);
  margin-bottom: 32px;
  line-height: 1.7;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-round);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
}

/* ── Problem Section ── */
.problem-section {
  padding: 140px 0;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 80px;
  color: var(--brand-dark);
}

.pain-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
}

.pain-point {
  padding: 40px;
  border: 1px solid transparent;
  transition: transform 0.3s ease;
}

.pain-point:hover {
  transform: translateY(-5px);
}

.pain-point .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 30px;
  color: var(--brand-primary);
}

.pain-point h3 {
  font-weight: 700;
  margin-bottom: 12px;
}

.pain-point p {
  font-weight: 400;
  line-height: 1.7;
}

/* ── Guide Section ── */
.guide-section {
  padding: 100px 0;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.guide-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.guide-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.guide-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ── Plan Section ── */
.plan-section {
  padding: 120px 0;
  background-color: var(--bg-light);
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
  gap: 24px;
}

.tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding-bottom: 10px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.tab-btn.active {
  color: var(--brand-dark);
  border-bottom-color: var(--brand-primary);
}

.tab-btn-form {
  background: transparent;
  border: none;
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  padding-bottom: 10px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  color: var(--brand-secondary);
}

.tab-btn-form.active {
  color: var(--bg-white);
  border-bottom-color: var(--bg-white);
}

.plan-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.plan-content.active {
  display: block;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step {
  background: #ffffff;
  padding: 40px;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.step h3 {
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  font-weight: 400;
  line-height: 1.7;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--brand-primary);
  color: #ffffff;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ── Authority Section ── */
.authority-section {
  padding: 120px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  text-align: center;
}

.big-num {
  display: block;
  font-size: 4rem;
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: -2px;
}

.metric .label {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Contact / Lead Capture ── */
.contact-section {
  padding: 120px 0;
  background-color: #063160;
  color: #ffffff;
}

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  color: var(--text-main);
  padding: 50px;
  border-radius: 12px;
  animation: fadeScale 0.4s ease-out;
}

.form-wrapper h2 {
  margin-bottom: 30px;
  text-align: center;
  color: var(--brand-dark);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lead-form input,
.lead-form select {
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-soft);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s ease;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--brand-primary);
}

.form-status {
  margin-top: 10px;
  font-size: 14px;
}

.form-status.error {
  color: red;
}

.form-status.success {
  color: green;
}

.input-error {
  border: 1px solid red;
}

.input-error {
  border: 1px solid #e74c3c;
}

.field-error {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
}

/* ── Footer ── */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

footer p {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
   ══════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-split {
    min-height: 60vh;
    max-height: 80vh;
  }
  .hero-side h1 {
    font-size: 2.5rem;
  }

  .hero-side p {
    font-size: 1.05rem;
  }

  .hero-side {
    padding: 40px 32px;
  }

  .section-title {
    font-size: 2.1rem;
    margin-bottom: 60px;
  }

  .pain-points-grid {
    gap: 40px;
  }

  .pain-point {
    padding: 30px;
  }

  .guide-text h2 {
    font-size: 1.9rem;
  }

  .plan-section {
    padding: 80px 0;
  }

  .tabs {
    margin-bottom: 40px;
  }

  .tab-btn,
  .tab-btn-form {
    font-size: 1.2rem;
  }

  .authority-section {
    padding: 80px 0;
  }

  .big-num {
    font-size: 3.2rem;
  }

  .contact-section {
    padding: 80px 0;
  }

  .form-wrapper {
    padding: 40px 32px;
  }
}

/* ══════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
   ══════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Header ── */
  .site-header {
    padding: 10px 0;
  }

  .logo-img {
    width: 100px;
  }

  .btn-outline {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  /* ── Hero ── */
  .hero-split {
    flex-direction: column;
    height: auto;
    padding-top: 70px;
  }

  .hero-side {
    width: 100%;
    padding: 48px 24px;
    min-height: 45vh;
    text-align: center;
  }

  .hero-side:hover {
    flex: 1;
    /* Disable expand on mobile */
  }

  .hero-side .content {
    max-width: 100%;
  }

  .hero-side h1 {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .hero-side p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .seller-side {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .tag {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }

  /* ── Problem ── */
  .problem-section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 48px;
  }

  .pain-points-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pain-point {
    padding: 24px 16px;
  }

  .pain-point .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
  }

  .pain-point h3 {
    font-size: 1.1rem;
  }

  /* ── Guide ── */
  .guide-section {
    padding: 60px 0;
  }

  .guide-text {
    padding: 0 8px;
  }

  .guide-text h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }

  .guide-text p {
    font-size: 1rem;
    line-height: 1.7;
  }

  /* ── Plan ── */
  .plan-section {
    padding: 60px 0;
  }

  .tabs {
    gap: 16px;
    margin-bottom: 32px;
  }

  .tab-btn,
  .tab-btn-form {
    font-size: 1.1rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step {
    padding: 28px 24px;
  }

  /* ── Authority ── */
  .authority-section {
    padding: 60px 0;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .big-num {
    font-size: 3rem;
  }

  .metric .label {
    font-size: 1rem;
  }

  /* ── Contact ── */
  .contact-section {
    padding: 60px 0;
  }

  .form-wrapper {
    margin: 0 16px;
    padding: 32px 24px;
    border-radius: 8px;
  }

  .form-wrapper h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }

  .lead-form input,
  .lead-form select {
    padding: 14px;
    font-size: 1rem;
  }

  /* ── Footer ── */
  footer {
    padding: 28px 0;
  }

  footer p {
    font-size: 0.8rem;
  }
}

/* ══════════════════════════════════
   RESPONSIVE — Small Phone (≤ 480px)
   ══════════════════════════════════ */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .logo-img {
    width: 90px;
  }

  .hero-side {
    padding: 40px 16px;
    min-height: 40vh;
  }

  .hero-side .content {
    margin-block: 30px;
  }

  .hero-split {
    flex-direction: column;
    height: auto;
    padding-top: 100px;
  }

  .hero-side h1 {
    font-size: 1.7rem;
  }

  .hero-side p {
    font-size: 0.95rem;
  }

  .problem-section {
    padding: 140px 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 36px;
  }

  .pain-point h3 {
    font-size: 1rem;
  }

  .pain-point p {
    font-size: 0.9rem;
  }

  .guide-text h2 {
    font-size: 1.4rem;
  }

  .guide-text p {
    font-size: 0.95rem;
  }

  .tab-btn,
  .tab-btn-form {
    font-size: 1rem;
  }

  .step {
    padding: 24px 20px;
  }

  .step h3 {
    font-size: 1rem;
  }

  .step p {
    font-size: 0.9rem;
  }

  .big-num {
    font-size: 2.5rem;
  }

  .form-wrapper {
    margin: 0 8px;
    padding: 28px 20px;
  }

  .form-wrapper h2 {
    font-size: 1.3rem;
  }

  .lead-form input,
  .lead-form select {
    padding: 12px;
    font-size: 0.95rem;
  }
}

/* ── Utilities ── */
.hidden {
  display: none;
}

/* ── Animations ── */
@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
