/* ==========================================================================
   THE HOLY COACH — Recursos Gratuitos
   Identidad tomada directamente de los PDFs de la marca:
   negro cálido, dorado elegante, blanco roto, serif editorial + sans limpio.
   ========================================================================== */

:root {
  --black: #0a0a09;
  --black-soft: #121110;
  --black-card: #141311;
  --hairline: rgba(201, 162, 75, 0.22);
  --hairline-soft: rgba(245, 241, 232, 0.08);

  --gold: #c9a24b;
  --gold-light: #ddc07f;
  --gold-dim: rgba(201, 162, 75, 0.45);

  --white: #f5f1e8;
  --gray: #9a958a;
  --gray-dim: #6b675f;

  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1080px;
  --radius: 3px;
}

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

html {
  background: var(--black);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Textura sutil de grano para evitar el "negro plano" tipo SaaS */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle at 20% 10%, rgba(201, 162, 75, 0.05), transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(201, 162, 75, 0.04), transparent 45%);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  z-index: 1;
  padding: 44px 24px 32px;
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.hero__brand {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 11vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--white);
  text-transform: uppercase;
}

.hero__title em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
}

.hero__subtitle {
  margin-top: 18px;
  font-size: 15px;
  color: var(--gray);
  font-weight: 300;
  max-width: 32ch;
}

.hero__divider {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__divider::before,
.hero__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--hairline), transparent);
  max-width: 64px;
}

.hero__divider::after {
  background: linear-gradient(270deg, var(--hairline), transparent);
}

.cross {
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
}

/* ==========================================================================
   RESOURCES
   ========================================================================== */

.resources {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.card {
  background: var(--black-card);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease;
}

.card:hover {
  border-color: var(--hairline);
}

.card__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--black-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

.card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 9, 0) 55%, rgba(10, 10, 9, 0.85) 100%);
}

.card__number {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.card__body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__category {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.card__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 4.5vw, 1.6rem);
  line-height: 1.18;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.card__subtitle {
  color: var(--gray);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 26px;
}

.card__subtitle-line {
  display: block;
}

.card__button {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 20px;
  background: var(--gold);
  color: #0a0a09;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.15s ease;
}

.card__button-icon {
  flex-shrink: 0;
}

.card__button:hover {
  background: var(--gold-light);
}

.card__button:active {
  transform: scale(0.98);
  background: var(--gold-light);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--hairline-soft);
  text-align: center;
}

.footer__brand {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 13px;
  color: var(--gray);
  font-weight: 300;
  max-width: 40ch;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.footer__copy {
  font-size: 11px;
  color: var(--gray-dim);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   TABLET
   ========================================================================== */

@media (min-width: 640px) {
  .hero {
    padding: 60px 40px 40px;
  }

  .resources {
    padding: 16px 40px 72px;
  }

  .footer {
    padding: 40px 40px 56px;
  }
}

/* ==========================================================================
   DESKTOP
   ========================================================================== */

@media (min-width: 900px) {
  .hero {
    padding: 88px 48px 56px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .resources {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 24px 48px 96px;
  }

  .card__body {
    padding: 30px 30px 32px;
  }

  .card__button {
    padding: 18px 20px;
  }

  .footer {
    padding: 48px 48px 64px;
  }
}

@media (min-width: 1200px) {
  .hero__title {
    font-size: 5rem;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .card,
  .card__button {
    transition: none;
  }
}
