/* =============================================
   SINGLE EVENTO — PÁGINA DE DETALLE (PRODUCCIÓN)
   Tema oscuro.
   ============================================= */

/* Forzar fondo oscuro de test en WordPress para el CPT de eventos */
body.single-eventos,
body.single-eventos #wrapper,
body.single-eventos #inner-wrap,
body.single-eventos .site-content,
body.single-eventos .content-container {
  background-color: #070f1c !important;
  color: #eaf2ff !important;
}

.ev-single {
  --ev-bg: #070f1c;
  --ev-card-bg: #0d1b2a;
  --ev-surface: #13243a;
  --ev-border: rgba(120, 170, 230, 0.12);
  --ev-accent: #2f80ed;
  --ev-accent-2: #38bdf8;
  --ev-green: #008d48;
  --ev-text: #eaf2ff;
  --ev-text-soft: #9fb3cc;
  --ev-text-muted: #64748b;
  --ev-radius: 16px;
}

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

.ev-single {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 80px;
}

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

.ev-single .ev-hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: var(--ev-radius);
}

.ev-single .ev-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Degradado inferior: imagen se funde con el fondo */
.ev-single .ev-hero .ev-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 50%,
    rgba(7, 15, 28, 0.7) 80%,
    rgba(7, 15, 28, 1) 100%
  );
  z-index: 1;
}

/* Blur en bordes laterales */
.ev-single .ev-hero .ev-hero-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  mask-image: linear-gradient(
    to right,
    black 0%,
    transparent 8%,
    transparent 92%,
    black 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    black 0%,
    transparent 8%,
    transparent 92%,
    black 100%
  );
  z-index: 1;
}

/* Botón Volver */
.ev-single .ev-hero .ev-back {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  transition: color 0.25s;
}

.ev-single .ev-hero .ev-back:hover {
  color: #fff;
}

/* Contenido del hero */
.ev-single .ev-hero .ev-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 40px 40px;
  z-index: 2;
}

.ev-single .ev-hero .ev-hero-content .ev-hero-title {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.ev-single .ev-hero .ev-hero-content .ev-hero-subtitle {
  margin: 6px 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ev-accent-2);
  font-style: italic;
}

.ev-single .ev-hero .ev-hero-content .ev-hero-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
}

.ev-single .ev-hero .ev-hero-content .ev-hero-location i {
  color: var(--ev-accent-2);
}

/* =============================================
   MAIN LAYOUT (contenido + sidebar)
   ============================================= */

.ev-single .ev-main {
  display: flex;
  gap: 36px;
  padding: 0 20px;
  margin-top: 36px;
}

.ev-single .ev-main .ev-content {
  flex: 1 1 0%;
  min-width: 0;
}

.ev-single .ev-main .ev-sidebar {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =============================================
   CONTENIDO PRINCIPAL
   ============================================= */

.ev-single .ev-main .ev-content h2 {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ev-border);
}

.ev-single .ev-main .ev-content h2:first-child {
  margin-top: 0;
}

.ev-single .ev-main .ev-content h3 {
  margin: 32px 0 16px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.ev-single .ev-main .ev-content p {
  margin: 0 0 1em;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ev-text-soft);
}

.ev-single .ev-main .ev-content strong {
  color: var(--ev-text);
  font-weight: 600;
}

.ev-single .ev-main .ev-content ul {
  margin: 0 0 1.2em;
  padding-left: 0;
  list-style: none;
}

.ev-single .ev-main .ev-content ul li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--ev-text-soft);
}

.ev-single .ev-main .ev-content blockquote {
  margin: 24px 0;
  padding: 20px 28px;
  background: var(--ev-surface);
  border-left: 4px solid var(--ev-accent-2);
  border-radius: 0 12px 12px 0;
}

.ev-single .ev-main .ev-content blockquote p {
  margin: 0;
  font-style: italic;
  font-size: 1rem;
  color: var(--ev-text);
}

.ev-single .ev-main .ev-content blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--ev-text-muted);
}

/* =============================================
   FEATURE GRID
   ============================================= */

.ev-single .ev-main .ev-content .ev-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 24px;
}

.ev-single .ev-main .ev-content .ev-feature-grid .ev-feature-card {
  background: var(--ev-surface);
  border: 1px solid var(--ev-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.3s;
}

.ev-single .ev-main .ev-content .ev-feature-grid .ev-feature-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.ev-single .ev-main .ev-content .ev-feature-grid .ev-feature-card .ev-feature-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
}

.ev-single .ev-main .ev-content .ev-feature-grid .ev-feature-card h4 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.ev-single .ev-main .ev-content .ev-feature-grid .ev-feature-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ev-text-soft);
  line-height: 1.5;
}

/* =============================================
   TAGS
   ============================================= */

.ev-single .ev-main .ev-content .ev-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--ev-border);
}

.ev-single .ev-main .ev-content .ev-tags .ev-tag {
  padding: 5px 14px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ev-accent-2);
}

/* =============================================
   SIDEBAR CARDS
   ============================================= */

.ev-single .ev-main .ev-sidebar .ev-sidebar-card {
  background: var(--ev-card-bg);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  padding: 22px;
}

.ev-single .ev-main .ev-sidebar .ev-sidebar-card h4 {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ev-single .ev-main .ev-sidebar .ev-sidebar-card h4 i {
  color: var(--ev-accent-2);
  font-size: 0.9rem;
}

.ev-single .ev-main .ev-sidebar .ev-sidebar-card .ev-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ev-single .ev-main .ev-sidebar .ev-sidebar-card .ev-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ev-border);
  font-size: 0.85rem;
  color: var(--ev-text-soft);
}

.ev-single .ev-main .ev-sidebar .ev-sidebar-card .ev-info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ev-single .ev-main .ev-sidebar .ev-sidebar-card .ev-info-list li i {
  color: var(--ev-accent-2);
  font-size: 0.85rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.ev-single .ev-main .ev-sidebar .ev-sidebar-card .ev-info-list li strong {
  color: var(--ev-text);
}

.ev-single .ev-main .ev-sidebar .ev-sidebar-card .ev-info-list li a {
  color: var(--ev-accent-2);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.ev-single .ev-main .ev-sidebar .ev-sidebar-card .ev-info-list li a:hover {
  color: #fff;
  text-decoration: underline;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 850px) {
  .ev-single .ev-main {
    flex-direction: column;
  }

  .ev-single .ev-main .ev-sidebar {
    flex: auto;
    width: 100%;
  }

  .ev-single .ev-main .ev-content .ev-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ev-single .ev-hero {
    height: 280px;
    border-radius: 0;
  }

  .ev-single .ev-hero .ev-hero-content {
    padding: 32px 20px 24px;
  }

  .ev-single .ev-hero .ev-hero-content .ev-hero-title {
    font-size: 1.5rem;
  }

  .ev-single .ev-hero .ev-hero-content .ev-hero-subtitle {
    font-size: 0.82rem;
  }

  .ev-single .ev-main .ev-content .ev-feature-grid {
    grid-template-columns: 1fr;
  }
}
