/* landing.css — estilos exclusivos de index.html: hero, secciones de leyes, help-card y footer. */

body {
  display: flex;
  flex-direction: column;
}

/* ============== HERO ============== */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy) 65%, var(--paper) 65%, var(--paper) 100%);
  position: relative;
  padding: 4rem 2rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 65%;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(0, 69, 142, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(0, 69, 142, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: 3.5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.8rem;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.hero h1 .accent {
  color: #4d8fd1;
  font-style: italic;
}

.hero-lede {
  font-family: var(--body);
  font-size: 1.18rem;
  color: rgba(255,255,255,0.75);
  max-width: 56ch;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.hero-search {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  padding: 1rem 1.2rem 1rem 3rem;
  border-radius: 10px;
  outline: none;
  transition: all 0.18s ease;
  box-shadow: 0 12px 40px rgba(0, 3, 40, 0.3);
}

.hero-search:focus {
  box-shadow: 0 12px 50px rgba(0, 3, 40, 0.4), 0 0 0 4px rgba(0, 69, 142, 0.35);
}

.hero-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-dim);
  pointer-events: none;
}

.hero-search-hint {
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

/* ============== MAIN CONTENT ============== */
main {
  flex: 1;
  padding: 0 2rem 5rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.section {
  margin-bottom: 4rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.section-header .badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
  background: var(--white);
  padding: 0.28rem 0.65rem;
  border-radius: 100px;
  border: 1px solid var(--rule);
  letter-spacing: 0.04em;
}

.section-header .line {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ============== LAW CARDS ============== */
.laws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.2rem;
}

.law-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.7rem 1.6rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.law-card.available {
  cursor: pointer;
}

.law-card.available::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--royal);
}

.law-card.available:hover {
  border-color: var(--royal);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 3, 40, 0.12);
}

.law-card.coming {
  opacity: 0.7;
  background: var(--paper-soft);
  border-style: dashed;
}

.law-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.law-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
}

.law-card.available .law-card-tag {
  background: var(--royal-soft);
  color: var(--royal);
}
.law-card.coming .law-card-tag {
  background: var(--paper-deep);
  color: var(--ink-dim);
}

.law-card-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.law-card.available .law-card-tag::before {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

.law-card-type {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.law-card-abbr {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.law-card.coming .law-card-abbr {
  color: var(--ink-dim);
}

.law-card-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.7rem;
}

.law-card.coming .law-card-name { color: var(--ink-soft); }

.law-card-desc {
  font-family: var(--body);
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1.3rem;
}

.law-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

.law-card-arrow {
  color: var(--royal);
  font-family: var(--display);
  font-weight: 700;
  transition: transform 0.2s ease;
  font-size: 0.78rem;
}

.law-card.available:hover .law-card-arrow {
  transform: translateX(4px);
}

/* ============== HELP CARD ============== */
.help-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.help-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--royal-soft);
  color: var(--royal);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.help-text h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.help-text p {
  font-family: var(--body);
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

.help-kbd {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 0.35rem 0.7rem;
  border-radius: 5px;
  font-weight: 500;
  white-space: nowrap;
}

/* ============== FOOTER ============== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 1.5rem 2rem;
  font-family: var(--body);
  font-size: 0.78rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}

footer a:hover { color: var(--white); }

/* ============== ANIMATIONS ============== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }

.law-card { animation: fadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
.law-card:nth-child(1) { animation-delay: 0.05s; }
.law-card:nth-child(2) { animation-delay: 0.10s; }
.law-card:nth-child(3) { animation-delay: 0.15s; }
.law-card:nth-child(4) { animation-delay: 0.20s; }
.law-card:nth-child(5) { animation-delay: 0.25s; }
.law-card:nth-child(6) { animation-delay: 0.30s; }

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  .hero { padding: 2.5rem 1rem 0; }
  .hero h1 { font-size: 2.2rem; }
  .hero-lede { font-size: 1rem; }
  .hero-inner { padding-bottom: 2.5rem; }

  main { padding: 0 1rem 3rem; }
  .laws-grid { grid-template-columns: 1fr; }
  .help-card { grid-template-columns: 1fr; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
