/*
Theme Name: LMEC Aniversario
Theme URI: https://zuritaphoto.com/aniversario3/
Author: La Madriguera Estudio Creativo
Description: Landing editorial para escoger y registrar una charla del 3er aniversario de LMEC.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: lmec-aniversario
*/

:root {
  --lmec-ink: #111111;
  --lmec-paper: #f6f2ea;
  --lmec-white: #ffffff;
  --lmec-magenta: #a61868;
  --lmec-orange: #ed8b00;
  --lmec-muted: #625f59;
  --lmec-border: 2px solid var(--lmec-ink);
  --lmec-radius: 22px;
  --lmec-page: min(1180px, calc(100% - 40px));
  --lmec-display: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --lmec-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--lmec-paper);
  color: var(--lmec-ink);
  font-family: var(--lmec-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
  top: 32px;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 4px solid var(--lmec-orange);
  outline-offset: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  z-index: 99999;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  background: var(--lmec-white);
  color: var(--lmec-ink);
  font-weight: 800;
}

.site-shell {
  width: var(--lmec-page);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(17, 17, 17, 0.15);
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: min(410px, 48vw);
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: var(--lmec-border);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.header-cta {
  padding: 0 22px;
  background: var(--lmec-ink);
  color: var(--lmec-white);
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--lmec-orange);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 132px) 0 clamp(88px, 10vw, 150px);
  background:
    radial-gradient(circle at 86% 24%, rgba(237, 139, 0, 0.2), transparent 23rem),
    radial-gradient(circle at 76% 82%, rgba(166, 24, 104, 0.17), transparent 26rem),
    var(--lmec-paper);
}

.hero::after {
  content: "";
  position: absolute;
  right: -10vw;
  bottom: -32vw;
  width: min(62vw, 760px);
  aspect-ratio: 1;
  border: clamp(32px, 5vw, 72px) solid var(--lmec-ink);
  border-radius: 50%;
  opacity: 0.035;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: clamp(44px, 7vw, 100px);
}

.hero__content {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--lmec-magenta), var(--lmec-orange));
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--lmec-display);
  font-size: clamp(3.5rem, 8.4vw, 7.8rem);
  font-weight: 950;
  letter-spacing: -0.072em;
  line-height: 0.88;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--lmec-magenta);
}

.hero__intro {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--lmec-muted);
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
}

.hero__intro strong {
  color: var(--lmec-ink);
}

.hero__badge {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: var(--lmec-border);
  border-radius: 50%;
  background: linear-gradient(145deg, #be226f 6%, #eb8502 91%);
  color: var(--lmec-white);
  transform: rotate(6deg);
  box-shadow: 14px 14px 0 var(--lmec-ink);
}

.hero__badge::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: inherit;
}

.hero__badge-inner {
  display: grid;
  justify-items: center;
  line-height: 1;
  transform: rotate(-6deg);
}

.hero__badge-number {
  font-family: var(--lmec-display);
  font-size: clamp(4.4rem, 8vw, 7.2rem);
  letter-spacing: -0.08em;
}

.hero__badge-label {
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.talks {
  position: relative;
  padding: clamp(88px, 10vw, 150px) 0;
  border-top: var(--lmec-border);
  background: var(--lmec-white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 78px);
}

.section-heading__kicker {
  margin: 0 0 14px;
  color: var(--lmec-magenta);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--lmec-display);
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.section-heading__copy {
  margin: 0 0 4px;
  color: var(--lmec-muted);
  font-size: 1.05rem;
}

.talk-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.talk-card {
  display: flex;
  grid-column: span 2;
  min-height: 480px;
  overflow: hidden;
  border: var(--lmec-border);
  border-radius: var(--lmec-radius);
  background: var(--lmec-paper);
  color: var(--lmec-ink);
  text-decoration: none;
  transition: transform 190ms ease, box-shadow 190ms ease;
}

.talk-card:nth-child(n + 4) {
  grid-column: span 3;
  min-height: 420px;
}

.talk-card:hover,
.talk-card:focus-visible {
  transform: translate(-7px, -7px);
  box-shadow: 10px 10px 0 var(--lmec-ink);
}

.talk-card:focus-visible {
  outline-color: var(--lmec-magenta);
}

.talk-card__inner {
  display: flex;
  width: 100%;
  flex-direction: column;
  padding: clamp(25px, 3vw, 38px);
}

.talk-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.talk-card__date {
  font-family: var(--lmec-display);
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 1;
}

.talk-card__number {
  display: inline-grid;
  width: 38px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.74rem;
  font-weight: 900;
}

.talk-card h3 {
  margin: clamp(42px, 5vw, 68px) 0 16px;
  font-family: var(--lmec-display);
  font-size: clamp(1.85rem, 2.8vw, 3rem);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.talk-card__speaker {
  margin: 0 0 18px;
  color: var(--lmec-magenta);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.talk-card__description {
  margin: 0;
  color: var(--lmec-muted);
  font-size: 0.98rem;
}

.talk-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 34px;
  border-top: 1px solid rgba(17, 17, 17, 0.2);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.talk-card__arrow {
  display: inline-grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--lmec-ink);
  color: var(--lmec-white);
  font-size: 1.25rem;
  transition: transform 190ms ease;
}

.talk-card:hover .talk-card__arrow,
.talk-card:focus-visible .talk-card__arrow {
  transform: translate(2px, -2px);
}

.talk-card:nth-child(1) {
  background: linear-gradient(150deg, #f8e9f0, #f6f2ea 65%);
}

.talk-card:nth-child(2) {
  background: linear-gradient(150deg, #fff0db, #f6f2ea 65%);
}

.talk-card:nth-child(3) {
  background: linear-gradient(150deg, #f5e8ef, #f8eee1 70%);
}

.talk-card:nth-child(4) {
  background: linear-gradient(125deg, #fff0db, #f6f2ea 58%);
}

.talk-card:nth-child(5) {
  background: linear-gradient(125deg, #f5e3ec, #f6f2ea 58%);
}

.site-footer {
  padding: 50px 0 44px;
  border-top: var(--lmec-border);
  background: var(--lmec-paper);
}

.site-footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.site-footer__brand {
  margin: 0 0 4px;
  font-weight: 900;
}

.site-footer__meta {
  margin: 0;
  color: var(--lmec-muted);
  font-size: 0.88rem;
}

.site-footer__back {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal--ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal--ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.content-page {
  min-height: 65vh;
  padding: clamp(70px, 9vw, 130px) 0;
}

.content-page__inner {
  max-width: 780px;
}

.content-page h1 {
  font-family: var(--lmec-display);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.content-page a:not(.button) {
  color: var(--lmec-magenta);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 45px;
  }

  .talk-card,
  .talk-card:nth-child(n + 4) {
    grid-column: span 3;
    min-height: 430px;
  }

  .talk-card:last-child {
    grid-column: 2 / span 4;
  }
}

@media (max-width: 760px) {
  :root {
    --lmec-page: min(100% - 28px, 620px);
  }

  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header__inner {
    min-height: 72px;
    gap: 14px;
  }

  .brand img {
    width: min(285px, 62vw);
    max-height: 46px;
  }

  .header-cta {
    min-height: 42px;
    padding-inline: 14px;
  }

  .header-cta__long {
    display: none;
  }

  .hero {
    padding-top: 64px;
  }

  .hero__grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    align-items: start;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 5.8rem);
  }

  .hero__badge {
    width: min(220px, 58vw);
    margin: 10px 10px 0 auto;
  }

  .section-heading {
    gap: 24px;
  }

  .talk-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .talk-card,
  .talk-card:nth-child(n + 4),
  .talk-card:last-child {
    grid-column: auto;
    min-height: 410px;
  }

  .talk-card h3 {
    margin-top: 42px;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .header-cta {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .header-cta::after {
    content: "↓";
    font-size: 1.1rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal--ready .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer {
    display: none;
  }

  .talk-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
