:root {
  /* Misma paleta que stkpalermo.pe/styles.css */
  --primary-gold: #c9a961;
  --primary-deep: #1a3a52;
  --primary-light: #e8dcc4;
  --accent-blue: #4a7ba7;
  --text-dark: #2d2d2d;
  --text-light: #f5f5f5;
  --bg-cream: #faf8f3;
  --bg-gray: #efefef;
  --shadow-soft: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.as-body {
  background: var(--bg-cream);
  color: var(--text-dark);
  font-family: "Crimson Text", serif;
  line-height: 1.8;
}

h1,
h2,
h3 {
  font-family: "Cinzel", serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

a {
  color: inherit;
}

.as-topbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary-deep) 0%, #2d5470 100%);
  color: var(--text-light);
  box-shadow: 0 4px 20px var(--shadow-medium);
}

.as-topbar img {
  height: 30px;
}

.as-topbar-titulo {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.as-topbar-volver {
  margin-left: auto;
  font-family: "Roboto", sans-serif;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--primary-gold);
}
.as-topbar-volver:hover {
  text-decoration: underline;
}

/* Hero */

.as-hero {
  padding: 54px 20px 46px;
  text-align: center;
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(201, 169, 97, 0.15),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 85%,
      rgba(74, 123, 167, 0.13),
      transparent 32%
    ),
    var(--bg-cream);
}

.as-hero h1 {
  margin: 0 0 10px;
  color: var(--primary-deep);
  font-size: clamp(1.9rem, 6vw, 3rem);
}

.as-hero p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Contenedor y grilla de eventos */

.as-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 20px 70px;
}

.as-eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.as-evento-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  display: block;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.as-evento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

.as-evento-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: var(--primary-deep);
}

.as-evento-card-body {
  padding: 14px 16px 18px;
}

.as-evento-card-fecha {
  font-family: "Roboto", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-gold);
  font-weight: 700;
}

.as-evento-card h2 {
  margin: 6px 0 0;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.as-empty {
  text-align: center;
  color: var(--text-dark);
  padding: 40px 0;
  font-family: "Roboto", sans-serif;
}

/* Detalle de evento */

.as-detalle-hero {
  position: relative;
  height: min(52vw, 340px);
  min-height: 180px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.as-detalle-hero-overlay {
  width: 100%;
  padding: 30px 20px;
  background: linear-gradient(
    to top,
    rgba(26, 58, 82, 0.9),
    rgba(26, 58, 82, 0.05)
  );
  color: var(--text-light);
}

.as-detalle-hero-fecha {
  font-family: "Roboto", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-gold);
  font-weight: 700;
}

.as-detalle-hero h1 {
  margin: 6px 0 0;
  color: var(--text-light);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.as-detalle-hero-lugar {
  margin-top: 6px;
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  opacity: 0.9;
}

.as-detalle-descripcion {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 0 20px;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-dark);
  white-space: pre-line;
}

.as-section-title {
  max-width: 1000px;
  margin: 46px auto 4px;
  padding: 0 20px;
  font-size: 1.5rem;
  color: var(--primary-deep);
}

.as-section-line {
  max-width: 1000px;
  margin: 0 auto 20px;
  padding: 0 20px;
}
.as-section-line::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-gold),
    transparent
  );
}

/* Galería de fotos */

.as-galeria {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.as-galeria img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
  display: block;
  box-shadow: 0 4px 14px var(--shadow-soft);
  transition: transform 0.3s ease;
}
.as-galeria img:hover {
  transform: scale(1.03);
}

/* Lightbox simple */
.as-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26, 58, 82, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 999;
}
.as-lightbox.activo {
  display: flex;
}
.as-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
}
.as-lightbox-cerrar {
  position: absolute;
  top: 18px;
  right: 24px;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

.as-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.as-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.as-lightbox-nav svg {
  width: 24px;
  height: 24px;
}
.as-lightbox-prev {
  left: 16px;
}
.as-lightbox-next {
  right: 16px;
}

/* Videos */

.as-videos {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.as-video-item {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow-medium);
}
.as-video-item iframe,
.as-video-item video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}
.as-video-titulo {
  background: #fff;
  padding: 8px 12px;
  font-family: "Roboto", sans-serif;
  font-size: 0.85rem;
  color: var(--primary-deep);
}

/* Entrevistas */

.as-entrevistas {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.as-entrevista-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-soft);
}

.as-entrevista-card iframe,
.as-entrevista-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  background: #000;
}

.as-entrevista-card-body {
  padding: 14px 16px 18px;
}

.as-entrevista-nombre {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.as-entrevista-resumen {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
}

.as-footer {
  text-align: center;
  padding: 22px 20px 34px;
  font-family: "Roboto", sans-serif;
  font-size: 0.78rem;
  color: var(--accent-blue);
}
.as-footer a {
  color: var(--accent-blue);
}
