/* Reset básico para márgenes y paddings */
body, h1, h2, h3, p, ul, ol, li, a, div, section {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Tipografía base */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #1a2980;
  background: #f9faff;
  line-height: 1.6;
  font-size: 16px;
}

/* Contenedor general */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background: linear-gradient(90deg, #1a2980, #26d0ce);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  height: 50px;
  width: auto;
}

.brand-text {
  margin-left: 1rem;
}

.brand-title {
  font-weight: 700;
  font-size: 1.5rem;
}

.brand-subtitle {
  font-weight: 300;
  font-size: 1rem;
  opacity: 0.85;
}

/* Navegación idioma */
.header-actions a.lang-link {
  color: white;
  margin-left: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.header-actions a.lang-link[aria-current="true"],
.header-actions a.lang-link:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Hero */
.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: 3rem;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  flex: 1 1 500px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.badge {
  background: rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-actions a.btn-login,
.hero-actions a.btn-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 1rem;
}

.hero-actions a.btn-login {
  background: #ff6b35;
  color: white;
}

.hero-actions a.btn-login:hover {
  background: #e55a2b;
}

.hero-actions a.btn-secondary {
  background: white;
  color: #1a2980;
}

.hero-actions a.btn-secondary:hover {
  background: #f0f0f0;
}

.hero-mini {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Panel resumen rápido */
.hero-panel {
  flex: 1 1 300px;
}

.panel-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  color: #1a2980;
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.panel-title {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.panel-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.panel-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.2rem;
  position: relative;
  font-weight: 600;
}

.panel-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #26d0ce;
  font-weight: 900;
}

.panel-cta a.btn-compact {
  background: #ff6b35;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.panel-cta a.btn-compact:hover {
  background: #e55a2b;
}

/* Secciones */
.section {
  padding: 3rem 0;
  color: #1a2980;
}

.section--alt {
  background: #f0f7fa;
}

.section-head {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  text-align: center;
}

.section-title {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-sub {
  font-weight: 300;
  font-size: 1.1rem;
  opacity: 0.85;
}

/* Grid 2 y 3 columnas */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Tarjetas */
.card, .feature {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  color: #1a2980;
}

.card h3, .feature h3 {
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* Pasos numerados */
.steps {
  max-width: 600px;
  margin: 0 auto;
  list-style: none;
  counter-reset: step-counter;
  padding-left: 0;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.step-num {
  counter-increment: step-counter;
  font-weight: 700;
  font-size: 1.5rem;
  background: #26d0ce;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 1rem;
  flex-shrink: 0;
}

.step-body h3 {
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.step-body p {
  font-weight: 300;
  opacity: 0.85;
  margin-top: 0;
}

/* Botón centrado */
.center-actions {
  text-align: center;
  margin-top: 2rem;
}

.center-actions a.btn-login {
  background: #ff6b35;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.center-actions a.btn-login:hover {
  background: #e55a2b;
}

/* Footer */
.site-footer {
  background: #1a2980;
  color: white;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-mark {
  font-weight: 700;
  font-size: 1.5rem;
  margin-right: 1rem;
}

.footer-text {
  max-width: 400px;
}

.footer-mini {
  font-weight: 300;
  opacity: 0.7;
  margin-top: 0.3rem;
}

.footer-links a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ff6b35;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid {
    flex-direction: column;
  }
  .hero-panel {
    margin-top: 2rem;
  }
  .header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-row {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    margin-top: 1rem;
  }
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  left: auto;
  background: #ff6b35;
  color: white;
  padding: 0.5rem 1rem;
  z-index: 1000;
  text-decoration: none;
  border-radius: 4px;
}

/* =========================================================
   Header v2 (Centered title + Orange language buttons)
   Add this at the END of landing.css to override old rules
   ========================================================= */

.header-row.header-row--centered {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 16px;
}

/* Left: logo */
.header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Center: company name + subtitle */
.header-center {
  text-align: center;
  min-width: 0;
}

.header-center .brand-title {
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
}

.header-center .brand-subtitle {
  margin-top: 4px;
  font-weight: 400;
  font-size: 0.95rem;
  opacity: 0.92;
  color: rgba(255, 255, 255, 0.92);
}

/* Right: language buttons */
.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

/* Override old lang-link style (make them orange) */
.header-actions .lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;

  background: rgba(255, 107, 53, 0.18);
  border: 1px solid rgba(255, 107, 53, 0.55);
  color: #ffffff;

  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Hover */
.header-actions .lang-link:hover {
  background: rgba(255, 107, 53, 0.30);
  border-color: rgba(255, 107, 53, 0.85);
  transform: translateY(-1px);
}

/* Active language */
.header-actions .lang-link[aria-current="true"] {
  background: #ff6b35;
  border-color: #ff6b35;
  color: #ffffff;
}

/* Mobile: keep it clean */
@media (max-width: 768px) {
  .header-row.header-row--centered {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
  }

  .header-center {
    grid-column: 1 / 3;
    text-align: left;
  }

  .header-right {
    grid-column: 2 / 3;
    justify-content: flex-end;
  }

  .header-center .brand-title {
    font-size: 1.2rem;
  }

  .header-center .brand-subtitle {
    font-size: 0.9rem;
  }
}
