/* Shalom Haverim Tehilim ES */

:root {
  --navy: #071b33;
  --navy2: #0d2d52;
  --gold: #caa24a;
  --gold-soft: #e7d8ad;
  --cream: #f7efe0;
  --white: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: linear-gradient(180deg, #071b33 0%, #f7efe0 38%);
  min-height: 100vh;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: rgba(7,27,51,.96);
  border-bottom: 3px solid var(--gold);
  color: var(--cream);
}

.logo {
  width: 72px;
  max-width: 72px;
  height: auto;
  flex-shrink: 0;
}

.app-header h1 {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 4px;
}

.app-header p {
  color: var(--gold-soft);
  font-size: 1rem;
}

.hero {
  min-height: 260px;
  padding: 70px 24px 50px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(90deg, rgba(7,27,51,.92), rgba(7,27,51,.55)), url("/assets/backgrounds/tehilim-hero.webp") center / cover;
  color: #fff;
}

.hero-content {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 20px;
  text-decoration: none;
}

.hero h1,
.hero h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero p {
  max-width: 720px;
  font-size: 1.25rem;
  line-height: 1.6;
}

.ad-box {
  width: min(970px, 94%);
  min-height: 90px;
  margin: 24px auto;
  border: 1px dashed rgba(202,162,74,.7);
  border-radius: 18px;
  background: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a6a41;
  font-size: .95rem;
}

.grid {
  width: min(1100px, 94%);
  margin: 38px auto 55px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  display: block;
  min-height: 150px;
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  border-radius: 22px;
  border: 1px solid rgba(202,162,74,.35);
  background: linear-gradient(180deg, #ffffff, #fff8ea);
  box-shadow: 0 12px 35px rgba(7,27,51,.12);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(7,27,51,.20);
}

.card:focus-visible,
.badge:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.card span {
  display: block;
  font-size: 2rem;
  margin-bottom: 14px;
}

.card h2 {
  color: var(--navy);
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.featured {
  grid-column: 1 / -1;
  min-height: 140px;
  border: 1px solid rgba(202,162,74,.5);
  background: radial-gradient(circle at top left, rgba(202,162,74,.35), transparent 35%), linear-gradient(135deg, #071b33, #0d2d52);
}

.featured h2,
.featured p {
  color: #fff;
}

#sidurTexto,
#salmoDelDiaTexto {
  color: #48607f;
  font-size: 1rem;
}

#sidurTexto strong,
#salmoDelDiaTexto strong {
  color: #0b1f3a;
  font-weight: 700;
}

#sidurCard:hover,
#salmoDelDiaCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11,31,58,.12);
}

.intro-card,
.respect-card,
.search-card,
.mission {
  width: min(1100px, 94%);
  margin: 24px auto;
  padding: 24px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(202,162,74,.35);
  box-shadow: 0 10px 28px rgba(7,27,51,.12);
}

.intro-card h2,
.respect-card h2,
.search-card h2,
.mission h3 {
  color: var(--navy);
  margin-bottom: 12px;
}

.intro-card p,
.respect-card p,
.search-card p,
.mission p {
  line-height: 1.6;
}

.search-card input:not(.gsc-input) {
  width: 100%;
  margin: 14px 0;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid rgba(202,162,74,.55);
  font-size: 1rem;
}

.search-card button:not(.gsc-search-button) {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s ease;
}

.search-card button:not(.gsc-search-button):hover {
  background: var(--navy2);
}

.guide-grid {
  width: min(1100px, 94%);
  margin: 30px auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  background: #fff;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(202,162,74,.35);
  box-shadow: 0 10px 28px rgba(7,27,51,.12);
}

.guide-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.guide-card h3 {
  color: var(--navy);
  margin-bottom: 10px;
}

.guide-card p {
  color: var(--muted);
  line-height: 1.5;
}

.salmo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.salmo-list a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: .9rem;
  transition: all .2s ease;
}

.salmo-list a:hover {
  background: var(--gold);
  color: var(--navy);
}

.back-link {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  margin-right: 20px;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 16px;
}

footer {
  margin-top: 40px;
  padding: 28px;
  text-align: center;
  background: var(--navy);
  color: var(--cream);
  border-top: 3px solid var(--gold);
}

footer p {
  max-width: 1050px;
  margin: 0 auto;
  line-height: 1.6;
}

footer p + p {
  margin-top: 12px;
}

.salmo-wrap {
  width: min(1120px, 94%);
  margin: 30px auto 50px;
}

.salmo-hero {
  background: radial-gradient(circle at top left, rgba(202,162,74,.35), transparent 35%), linear-gradient(135deg, #071b33, #0d2d52);
  color: #fff;
  border-radius: 26px;
  padding: 34px;
  margin-bottom: 22px;
  border: 1px solid rgba(202,162,74,.45);
  box-shadow: 0 14px 38px rgba(7,27,51,.22);
}

.salmo-hero h2 {
  font-size: 2.6rem;
  margin: 12px 0;
}

.salmo-hero p {
  font-size: 1.1rem;
  color: var(--cream);
}

.salmo-tools {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}

.salmo-tools button {
  flex: 1;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.salmo-tools button:hover {
  background: var(--navy2);
}

.vcell4-box {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(202,162,74,.4);
  box-shadow: 0 12px 35px rgba(7,27,51,.14);
}

.vcell4-head,
.vcell4-row {
  display: grid;
  grid-template-columns: 70px 1.4fr 1.2fr 1.5fr;
}

.vcell4-head {
  background: var(--navy);
  color: var(--cream);
  font-weight: bold;
}

.vcell4-head div,
.vcell4-row div {
  padding: 14px;
  border-bottom: 1px solid rgba(202,162,74,.25);
}

.vcell4-row:nth-child(even) {
  background: #fff8ea;
}

.vnum {
  font-weight: bold;
  color: var(--gold);
  text-align: center;
}

.he {
  font-family: "Noto Sans Hebrew", "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.8;
  color: var(--navy);
}

.tr {
  font-style: italic;
  color: #334155;
  line-height: 1.6;
}

.es {
  line-height: 1.65;
  color: var(--text);
}

@media (max-width: 860px) {
  .app-header {
    padding: 16px;
  }

  .app-header h1 {
    font-size: 1.6rem;
  }

  .hero {
    min-height: 240px;
    padding: 40px 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1,
  .hero h2 {
    font-size: 2.1rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .header-center {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-link {
    display: block;
    margin-bottom: 12px;
  }

  .card {
    min-height: auto;
  }

  .salmo-tools {
    flex-direction: column;
  }

  .vcell4-head {
    display: none;
  }

  .vcell4-row {
    display: block;
    padding: 14px;
    border-bottom: 1px solid rgba(202,162,74,.35);
  }

  .vcell4-row div {
    border-bottom: 0;
    padding: 8px 0;
  }

  .vnum::before {
    content: "Verso ";
  }

  .he {
    font-size: 1.55rem;
    text-align: right;
  }

  .tr::before {
    content: "Transliteración: ";
    font-weight: bold;
    font-style: normal;
    color: var(--navy);
  }

  .es::before {
    content: "Español: ";
    font-weight: bold;
    color: var(--navy);
  }
}
