/* Tipografías: Cormorant Garamond + Outfit (Google Fonts) */

:root {
  --bg: #0f0c0d;
  --bg-elevated: #1a1416;
  --text: #f4ece8;
  --muted: #b9a9a3;
  --gold: #d4af37;
  --gold-dim: rgba(212, 175, 55, 0.35);
  --wine: #6b2d3c;
  --wine-light: #8f3d50;
  --radius: 1rem;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Outfit", system-ui, sans-serif;
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #f0d875;
}

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

code {
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15em 0.45em;
  border-radius: 0.35rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(15, 12, 13, 0.95), rgba(15, 12, 13, 0.75));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--gold);
}

.nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold), #b8922a);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 24px var(--gold-dim);
}

.btn:hover {
  transform: translateY(-2px);
  color: var(--bg);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--small {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  box-shadow: none;
}

/* Hero */

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 2rem clamp(1rem, 5vw, 3rem) 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(107, 45, 60, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(212, 175, 55, 0.08), transparent 50%);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

.hero__kicker {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
}

.hero__name {
  display: block;
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  letter-spacing: -0.02em;
}

.hero__line {
  display: block;
  width: 4rem;
  height: 3px;
  margin: 1rem 0;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

.hero__role {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: min(100%, 42rem);
}

@media (min-width: 600px) {
  .hero__visual {
    max-width: min(100%, 52rem);
  }
}

@media (min-width: 900px) {
  .hero__visual {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }
}

.hero__frame {
  position: relative;
  border-radius: 50% 40% 45% 55% / 45% 55% 50% 50%;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(212, 175, 55, 0.2),
    inset 0 0 60px rgba(107, 45, 60, 0.15);
  animation: morph 12s ease-in-out infinite alternate;
}

@keyframes morph {
  0% {
    border-radius: 50% 40% 45% 55% / 45% 55% 50% 50%;
  }
  50% {
    border-radius: 42% 58% 52% 48% / 48% 42% 58% 52%;
  }
  100% {
    border-radius: 55% 45% 40% 60% / 52% 48% 45% 55%;
  }
}

.hero__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}

.hero__badge {
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
  background: rgba(26, 20, 22, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 12px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Sections */

.section {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 5vw, 3rem);
}

.section__inner {
  max-width: 56rem;
  margin: 0 auto;
}

.section__head {
  margin-bottom: 2rem;
}

.section__head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
}

.section__subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.section--slant {
  background: linear-gradient(165deg, var(--bg-elevated) 0%, var(--bg) 100%);
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.prose p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

@media (min-width: 768px) {
  .prose--columns {
    column-count: 2;
    column-gap: 2.5rem;
  }

  .prose--columns p {
    break-inside: avoid;
  }
}

/* Timeline */

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid rgba(212, 175, 55, 0.25);
}

.timeline__item {
  position: relative;
  padding: 0 0 1.75rem 1.75rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.timeline__year {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.timeline__item p {
  margin: 0;
  color: var(--muted);
}

/* Cards */

.section--cards {
  background: radial-gradient(ellipse at 50% 0%, rgba(107, 45, 60, 0.25), transparent 55%);
}

.cards-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.5rem;
  background: rgba(26, 20, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateY(-4px);
}

.card h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.card li {
  margin-bottom: 0.35rem;
}

.card--accent {
  background: linear-gradient(145deg, rgba(107, 45, 60, 0.5), rgba(26, 20, 22, 0.9));
  border-color: rgba(212, 175, 55, 0.15);
}

.card--accent p {
  margin: 0;
  color: var(--muted);
}

/* Videos — galería (principal + miniaturas) */

.section--videos {
  padding-bottom: 4rem;
}

.videos__hint {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 44rem;
}

.video-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
  background: var(--bg-elevated);
  border: 1px dashed rgba(212, 175, 55, 0.25);
  border-radius: var(--radius);
}

.video-empty__icon {
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.5;
}

.video-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.video-gallery__main {
  width: 100%;
}

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0809;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.video-stage__poster-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  background: var(--bg-elevated);
}

.video-stage__poster-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 12, 13, 0.1) 0%, rgba(15, 12, 13, 0.55) 100%);
  pointer-events: none;
}

.video-stage__embed {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: transparent;
}

.video-stage__embed:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 0.5rem;
}

.video-stage__poster-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}

.video-stage__play {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(15, 12, 13, 0.65);
  border: 2px solid rgba(212, 175, 55, 0.85);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-stage__play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -0.55rem 0 0 -0.35rem;
  border-style: solid;
  border-width: 0.6rem 0 0.6rem 1rem;
  border-color: transparent transparent transparent var(--gold);
}

.video-stage__embed:hover .video-stage__play {
  transform: scale(1.06);
  background: rgba(107, 45, 60, 0.55);
}

.video-stage__label {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(15, 12, 13, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
}

.video-stage__fallback {
  position: relative;
  z-index: 2;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.video-stage__fallback:hover {
  color: #f0d875;
}

.video-stage__iframe {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.video-gallery__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-top: 1rem;
}

.video-gallery__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.video-gallery__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.video-gallery__thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.video-gallery__thumbs::-webkit-scrollbar {
  height: 6px;
}

.video-gallery__thumbs::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 3px;
}

.video-gallery__thumb {
  flex: 0 0 auto;
  width: min(11rem, 42vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0.35rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.65rem;
  background: rgba(26, 20, 22, 0.9);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.video-gallery__thumb:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

.video-gallery__thumb.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25);
}

.video-gallery__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.4rem;
  display: block;
}

.video-gallery__thumb-cap {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-gallery__thumb.is-active .video-gallery__thumb-cap {
  color: var(--text);
}

/* Contact */

.section--contact {
  padding-bottom: 5rem;
}

.contact {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .contact {
    grid-template-columns: 1fr 1fr;
  }
}

.contact h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.contact__text > p:not(.section__subtitle) {
  color: var(--muted);
  max-width: 28rem;
}

.contact__list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact__list li {
  margin-bottom: 1rem;
}

.contact__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.contact__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: linear-gradient(160deg, rgba(107, 45, 60, 0.35), rgba(26, 20, 22, 0.6));
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.12);
}

.contact__ornament {
  font-size: 6rem;
  line-height: 1;
  color: rgba(212, 175, 55, 0.2);
  font-family: var(--font-display);
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 5vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}
