:root {
  --bg:        #f7f5f1;
  --bg-card:   #ffffff;
  --ink:       #2c2a26;
  --ink-soft:  #6f6a61;
  --line:      #e6e2da;
  --accent:    #a98b5d;       /* dorado suave */
  --accent-dk: #8a6f45;
  --shadow:    0 8px 30px rgba(44, 42, 38, .08);
  --radius:    14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: clamp(3rem, 10vw, 7rem) 1.5rem clamp(2rem, 6vw, 4rem);
}
.hero__eyebrow {
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin-bottom: 1rem;
}
.hero__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: .01em;
}
.hero__subtitle {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

/* ===== Grid de secciones ===== */
.menu { padding: 0 clamp(1rem, 5vw, 3rem) 4rem; }
.grid {
  list-style: none;
  display: grid;
  gap: clamp(1rem, 3vw, 1.8rem);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  max-width: 1180px;
  margin: 0 auto;
}

.card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  padding: 0;
  border: none;
  font: inherit;
  color: inherit;
  background: #ddd6cb;
  box-shadow: 0 4px 18px rgba(44, 42, 38, .10);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.card:hover, .card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  outline: none;
}

.card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #ddd6cb center/cover no-repeat;
  overflow: hidden;
}
.card__thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  z-index: 0;
}
.card:hover .card__thumb::before { transform: scale(1.06); }

/* Capa oscura + contenido centrado de verdad */
.card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;          /* el título queda perfectamente centrado */
  padding: 1rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45));
  transition: background .35s;
}
.card:hover .card__overlay, .card:focus-visible .card__overlay {
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.6));
}

.card__title {
  grid-area: 1 / 1;             /* título y play se solapan en la misma celda */
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
  letter-spacing: .01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card__title, .card:focus-visible .card__title {
  transform: translateY(-22px); /* sube para dejar sitio al play */
}

.card__play {
  grid-area: 1 / 1;             /* misma celda → centrado real, sin reservar hueco */
  align-self: center;
  justify-self: center;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.94);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(44px);  /* arranca abajo... */
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .4s;
}
.card:hover .card__play, .card:focus-visible .card__play {
  opacity: 1;
  transform: translateY(32px);  /* ...y emerge subiendo, justo bajo el título */
}
.card__play svg { width: 20px; height: 20px; fill: var(--accent-dk); margin-left: 3px; }

.card__duration {
  position: absolute;
  bottom: .7rem; right: .7rem;
  z-index: 2;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  padding: .15rem .5rem;
  border-radius: 6px;
  backdrop-filter: blur(2px);
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 2.5rem 1rem 3.5rem;
  color: var(--ink-soft);
  font-size: .85rem;
  border-top: 1px solid var(--line);
}

/* ===== Reproductor ===== */
.player {
  position: fixed; inset: 0;
  z-index: 50;
  background: rgba(20, 18, 16, .96);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  animation: fade .3s ease;
}
.player[hidden] { display: none; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.player__stage { width: min(1100px, 100%); }
.player__title {
  color: #f3efe7;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  margin-bottom: .8rem;
  text-align: center;
}
.player__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.player__close {
  position: absolute;
  top: clamp(.8rem, 3vw, 1.6rem);
  right: clamp(.8rem, 3vw, 1.6rem);
  width: 46px; height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background .25s;
}
.player__close:hover { background: rgba(255,255,255,.25); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
