/* =========================================================
   elmejordetusdias.com — CSS (negro/rojo estilo Barricada)
   Mobile-first, elegante y cañero
   ========================================================= */

:root{
  --bg0:#050507;
  --bg1:#0a0a0f;

  --card:#0f0f16;
  --card2:#0b0b10;

  --border: rgba(255,255,255,.08);

  --text:#f5f5ff;
  --muted: rgba(245,245,255,.72);
  --muted2: rgba(245,245,255,.55);

  --accent:#ef4444;
  --accent2:#fb7185;

  --shadow: 0 18px 60px rgba(0,0,0,.60);
  --shadow2: 0 10px 40px rgba(0,0,0,.35);

  --radius: 18px;
  --radius2: 24px;

  --focus: rgba(239,68,68,.45);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  color:var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.5;
  font-weight:450;

  background:
    radial-gradient(1100px 520px at 18% 0%, rgba(239,68,68,.18), transparent 60%),
    radial-gradient(900px 650px at 88% 10%, rgba(251,113,133,.12), transparent 62%),
    radial-gradient(900px 520px at 30% 85%, rgba(239,68,68,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  background-attachment: fixed;
}

/* Grano suave */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 320px 320px;
  mix-blend-mode: overlay;
}

.bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 520px at 10% 18%, rgba(239,68,68,.10), transparent 60%),
    radial-gradient(900px 520px at 90% 25%, rgba(251,113,133,.08), transparent 60%);
  filter:saturate(1.06);
  background-repeat:no-repeat;
  background-size:cover;
  background-attachment: fixed;
  opacity:.9;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap{
  width:min(1100px, calc(100% - 32px));
  margin:0 auto;
}
.muted{ color: var(--muted); margin:0; }

/* =========================================================
   Header
   ========================================================= */
.header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(5,5,7,.62);
  border-bottom: 1px solid var(--border);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.2px;
}
.brand__dot{
  width:12px; height:12px; border-radius:999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 6px rgba(239,68,68,.14);
}
.brand__text{ font-size:15px; }

.nav{
  display:flex;
  gap:14px;
  font-weight:700;
  color: var(--muted);
}
.nav a{
  padding:8px 10px;
  border-radius:999px;
}
.nav a:hover{
  background: rgba(255,255,255,.06);
  text-decoration:none;
  color: var(--text);
}

.burger{
  display:none;
  width:44px; height:40px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  cursor:pointer;
}
.burger span{
  display:block;
  width:18px; height:2px;
  background: var(--text);
  margin:4px auto;
  border-radius:999px;
  opacity:.9;
}

.navpanel{
  border-top: 1px solid var(--border);
  background: rgba(5,5,7,.80);
}
.navpanel__inner{
  padding: 14px 0 18px;
  display:grid;
  gap:10px;
}
.navpanel__link{
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background: rgba(255,255,255,.03);
  font-weight:800;
}
.navpanel__cta{ margin-top: 6px; }

/* =========================================================
   Hero
   ========================================================= */
.hero{ padding: 26px 0 10px; }

.hero__inner{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items:stretch;
}

.heroTitle{ margin: 0 0 12px; }
.heroTitle img{
  display:block;
  width:min(600px, 100%);
  height:auto;
  filter: drop-shadow(0 14px 45px rgba(0,0,0,.55));
  opacity:.98;
}

.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border:0 !important;
}

.lead{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
}

/* Botones */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid var(--border);
  font-weight: 800;
  cursor:pointer;
  background: rgba(255,255,255,.04);
  text-decoration:none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  color: var(--text);
}
.btn:hover{
  text-decoration:none;
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
}
.btn:active{ transform: translateY(0); }

.btn--primary{
  border-color: rgba(239,68,68,.40);
  background: linear-gradient(135deg, rgba(239,68,68,.22), rgba(251,113,133,.12));
}
.btn--primary:hover{
  border-color: rgba(239,68,68,.55);
  background: linear-gradient(135deg, rgba(239,68,68,.30), rgba(251,113,133,.16));
}
.btn--ghost{ background: rgba(255,255,255,.03); }

.btn--small{
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.hero__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 14px;
}

.ico{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: .9;
  transform: translateY(1px);
}

/* Poster */
.hero__card{ display:flex; flex-direction:column; gap:10px; }

.poster{
  position:relative;
  border-radius: var(--radius2);
  border:1px solid var(--border);
  overflow:hidden;
  box-shadow: var(--shadow);
  background:
    radial-gradient(1000px 360px at 20% 0%, rgba(239,68,68,.24), transparent 66%),
    radial-gradient(900px 420px at 85% 12%, rgba(251,113,133,.16), transparent 64%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  min-height: 260px;
}

.poster__shine{
  position:absolute; inset:-40%;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.10), transparent 65%);
  transform: rotate(10deg);
  opacity:.55;
  animation: shine 7s linear infinite;
}
@keyframes shine{
  0%{ transform:translateX(-20%) rotate(10deg); }
  100%{ transform:translateX(20%) rotate(10deg); }
}

.poster__content{
  position:relative;
  padding: 18px 18px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.poster__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  color: var(--muted);
  font-weight:800;
  letter-spacing:.10em;
  font-size:12px;
}
.poster__label{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
}
.poster__title{
  font-weight: 850;
  letter-spacing: -0.01em;
  font-size: 28px;
  line-height:1.05;
  text-transform: uppercase;
}
.poster__sub{
  color: var(--muted);
  font-weight: 800;
}
.poster__line{
  height:1px;
  background: linear-gradient(90deg, rgba(239,68,68,.65), rgba(251,113,133,.55), transparent);
  opacity:.65;
}
.poster__mini{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-weight:800;
}

.poster__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}

/* =========================================================
   Secciones
   ========================================================= */
.section{ padding: 30px 0 18px; }

.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom: 14px;
}
.section__head h2{
  margin:0;
  font-size: 24px;
  font-weight:800;
  letter-spacing: -0.01em;
}

.card{
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 16px;
}

/* =========================================================
   Form / filtros
   ========================================================= */
.filters{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:flex-end;
  margin: 14px 0 14px;
}

.field{
  display:grid;
  gap:6px;
  min-width: 210px;
  flex: 1 1 220px;
}
.field__label{
  color: var(--muted2);
  font-weight: 800;
  font-size: 12px;
}

input, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.28);
  color: var(--text);
  outline: none;
}

input::placeholder{ color: rgba(245,245,255,.38); }

input:focus, select:focus{
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

/* =========================================================
   Agenda — tabla / móvil compacto
   ========================================================= */
.agendaTable{
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  overflow: hidden;
  background: rgba(0,0,0,.22);
  box-shadow: var(--shadow2);
}

.agendaHead{
  display:none;
  grid-template-columns: 130px 160px 1fr 150px 90px;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  color: rgba(245,245,255,.80);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.agendaRow{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.agendaRow:last-child{ border-bottom:0; }

.agendaMain{ display:grid; gap: 6px; min-width: 0; }

.agendaDate{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 900;
  color: rgba(245,245,255,.92);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.agendaCity{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 900;
  font-size: 15px;
  min-width:0;
}

.agendaCity .cityText{ display:inline; min-width:0; }
.agendaCity .placeInline{
  display:inline;
  color: rgba(245,245,255,.62);
  font-weight: 650;
  font-size: 13px;
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width:0;
  flex: 1 1 auto;
}

.agendaPlace{ display:none; }

.agendaTable .ico{
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  opacity: .9;
}

.agendaActions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}

/* Botones mini */
.btnMini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(245,245,255,.92);
  font-weight: 900;
  font-size: 13px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
  width:100%;
  text-decoration:none;
}
.btnMini:hover{
  text-decoration:none;
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}
.btnMini:active{ transform: translateY(0); }

.btnMini--primary{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
}
.btnMini--primary:hover{
  border-color: rgba(239,68,68,.55);
  background: rgba(239,68,68,.16);
}
.btnMini--ghost{ background: rgba(255,255,255,.03); }

.btnMini--disabled{
  opacity:.45;
  pointer-events:none;
}

/* Desktop tabla real */
@media (min-width: 900px){
  .agendaHead{ display:grid; }

  .agendaRow{
    grid-template-columns: 130px 160px 1fr 150px 90px;
    align-items:center;
    gap: 12px;
  }

  .agendaMain{ display: contents; }
  .agendaActions{ display: contents; }

  .agendaDate{ grid-column: 1; }
  .agendaCity{ grid-column: 2; }
  .agendaPlace{
    display:flex;
    align-items:center;
    gap: 8px;
    color: rgba(245,245,255,.62);
    font-size: 13px;
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    grid-column: 3;
  }

  .agendaCity .placeInline{ display:none; }

  .agendaActions > :nth-child(1){ grid-column: 4; }
  .agendaActions > :nth-child(2){ grid-column: 5; }

  .btnMini{ width:auto; }
}

/* Loading Agenda */
.agendaLoading{
  padding: 16px;
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(245,245,255,.80);
}
.spinner{
  width:18px; height:18px;
  border-radius:999px;
  border: 2px solid rgba(255,255,255,.18);
  border-top-color: rgba(239,68,68,.85);
  animation: spin 0.9s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* =========================================================
   About
   ========================================================= */
.about{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 14px;
  align-items:stretch;
}

.photo{
  height: 320px;
  border-radius: var(--radius2);
  border:1px solid var(--border);
  background:
    radial-gradient(600px 220px at 30% 0%, rgba(239,68,68,.18), transparent 60%),
    radial-gradient(620px 280px at 70% 20%, rgba(251,113,133,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}

.bullets{ display:grid; gap: 12px; margin-top: 14px; }

.bullet{
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.bullet__dot{
  width:10px; height:10px;
  border-radius:999px;
  margin-top:6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 6px rgba(239,68,68,.12);
}

.about__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
}

/* =========================================================
   Actualidad (Publicaciones) — Mixta + Lazy embeds
   ========================================================= */
.posts{ display:grid; gap:14px; }

.postFeatured{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  overflow:hidden;
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow2);
}

.postFeatured__head{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.postFeatured__title{
  margin:0 0 6px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.postFeatured__meta{
  color: var(--muted);
  font-weight:700;
  font-size: 13px;
  margin:0;
}

.postFeatured__media{
  aspect-ratio: 16 / 9;
  width:100%;
  background: rgba(0,0,0,.25);
  display:grid;
  place-items:center;
  position:relative;
}
.postFeatured__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:.95;
}
.postFeatured__play{
  position:absolute;
  right:14px;
  bottom:14px;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.55);
  font-weight: 900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:10px;
  color: var(--text);
}
.postFeatured__play:hover{ background: rgba(0,0,0,.65); }

.postTopGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
@media (max-width: 920px){
  .postTopGrid{ grid-template-columns: 1fr; }
}

.postCard{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow2);
  display:grid;
  min-width:0;
}
.postCard__thumb{
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,.22);
  position:relative;
}
.postCard__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.postCard__body{
  padding: 12px 12px 14px;
  display:grid;
  gap:6px;
}
.postCard__title{
  margin:0;
  font-weight: 900;
  font-size: 15px;
}
.postCard__meta{
  margin:0;
  color: var(--muted);
  font-weight:700;
  font-size: 12px;
}

.postList{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  overflow:hidden;
  background: rgba(0,0,0,.22);
}
.postRow{
  display:grid;
  grid-template-columns: 78px 1fr auto;
  gap: 12px;
  padding: 12px 12px;
  align-items:center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.postRow:last-child{ border-bottom:0; }

.postRow__thumb{
  width:78px;
  height:44px;
  border-radius: 10px;
  overflow:hidden;
  background: rgba(255,255,255,.04);
}
.postRow__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.postRow__title{
  font-weight:900;
  margin:0;
  font-size: 14px;
}
.postRow__meta{
  color: var(--muted);
  margin: 2px 0 0;
  font-size: 12px;
  font-weight:700;
}

iframe{
  display:block;
  width:100%;
  border:0;
}

/* =========================================================
   Contacto
   ========================================================= */
.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact__lines{ display:grid; gap:10px; }

.contact__lines a{
  color: rgba(245,245,255,.92);
  text-decoration: underline;
  text-decoration-color: rgba(239,68,68,.45);
}

.contact__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* =========================================================
   Footer
   ========================================================= */
.footer{
  padding: 26px 0 40px;
  border-top: 1px solid var(--border);
  background: rgba(5,5,7,.40);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.footer__links{
  display:flex;
  gap:14px;
  color: var(--muted);
}

/* =========================================================
   Modal (compacta + bonita)
   ========================================================= */
.modal{
  position:fixed;
  inset:0;
  z-index:200;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding: 14px;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(8px);
}
.modal[aria-hidden="true"]{ display:none; }

.modal__sheet{
  width:min(720px, 100%);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  background:
    radial-gradient(900px 340px at 18% 0%, rgba(239,68,68,.18), transparent 66%),
    radial-gradient(900px 340px at 88% 10%, rgba(251,113,133,.10), transparent 64%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
  overflow:hidden;
  max-height: calc(100vh - 40px);
}

.modal__header{
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.modal__titleWrap{ min-width: 0; }

.modal__city{
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.01em;
  margin:0 0 6px;
}

.modal__sub{
  margin:0;
  color: rgba(245,245,255,.72);
  font-weight: 650;
  line-height: 1.35;
}

.modal__close{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(245,245,255,.9);
  border-radius: 12px;
  width: 42px;
  height: 38px;
  cursor:pointer;
  display:grid;
  place-items:center;
}

.modal__body{
  padding: 14px 16px 16px;
  display:grid;
  gap: 10px;
}

.kvline{
  display:flex;
  align-items:baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.kvline__k{
  color: rgba(245,245,255,.55);
  font-weight: 900;
  font-size: 12px;
  letter-spacing:.02em;
  text-transform: uppercase;
}
.kvline__v{
  color: rgba(245,245,255,.90);
  font-weight: 750;
}

.modal__note{
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(239,68,68,.16);
  background: rgba(239,68,68,.05);
  color: rgba(245,245,255,.80);
}

.modal__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 4px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 920px){
  .hero__inner{ grid-template-columns: 1fr; }
  .about{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .nav{ display:none; }
  .burger{ display:block; }
  .section__head{ flex-direction:column; align-items:flex-start; }

  .hero__actions{
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn{
    width: 100%;
    justify-content: flex-start;
    padding: 14px 16px;
  }

  .heroTitle img{ max-width: 520px; }

  /* Mobile: bottom sheet */
  .modal{ align-items:flex-end; }
  .modal__sheet{ border-radius: 18px 18px 0 0; }
}
@media (min-width: 721px){
  .modal{ align-items:center; justify-content:center; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .poster__shine{ animation: none; }
  .btn, .btnMini{ transition: none; }
}
.photo{
  height: 320px;
  border-radius: var(--radius2);
  border:1px solid var(--border);

  background-image: url("grupo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  box-shadow: var(--shadow);
}
.photo::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  background:
    linear-gradient(
      180deg,
      rgba(239,68,68,.18),
      rgba(0,0,0,.45)
    );
  pointer-events:none;
}
