/* ============================================================
   Refugio Serenia · Eventos y Meditaciones
   Agenda de encuentros — hereda el sistema de marca de styles.css
   ============================================================ */

/* ============ Hero · evento destacado ============ */
.ev-hero {
  position: relative;
  padding: 150px 0 70px;
  overflow: hidden;
}
.ev-hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.ev-hero-flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--r-pill);
  background: rgba(166, 104, 65, .1);
  border: 1px solid rgba(166, 104, 65, .22);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracota);
}
.ev-hero-flag .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terracota);
  box-shadow: 0 0 0 0 rgba(166, 104, 65, .5);
  animation: evPulse 2.4s ease-out infinite;
}
@keyframes evPulse {
  0%   { box-shadow: 0 0 0 0 rgba(166, 104, 65, .45); }
  70%  { box-shadow: 0 0 0 10px rgba(166, 104, 65, 0); }
  100% { box-shadow: 0 0 0 0 rgba(166, 104, 65, 0); }
}

.ev-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  margin: 22px 0 0;
}
.ev-hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--terracota);
  margin-top: 6px;
}
.ev-hero-lede {
  color: var(--tinta-60);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 22px 0 0;
}

/* meta del evento (fecha · hora · lugar) */
.ev-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin: 30px 0 32px;
  padding: 22px 0 0;
  border-top: 1px solid var(--linea);
}
.ev-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ev-meta-ico {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--linea);
  color: var(--terracota);
}
.ev-meta-ico svg { width: 18px; height: 18px; }
.ev-meta-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tinta-40);
}
.ev-meta-val {
  display: block;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--tinta);
  line-height: 1.2;
}

.ev-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* media del hero */
.ev-hero-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.ev-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.ev-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(50, 44, 34, .42));
  z-index: 1;
}
.ev-hero-tag {
  position: absolute;
  left: 22px; bottom: 22px;
  z-index: 2;
  color: var(--lino);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.ev-hero-tag::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--lino);
}

/* sello flotante con fecha */
.ev-hero-badge {
  position: absolute;
  top: -22px; right: -16px;
  z-index: 3;
  width: 108px; height: 108px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--lino);
  border: 1px solid var(--linea);
  box-shadow: var(--shadow-sm);
  transform: rotate(6deg);
}
.ev-hero-badge span {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tinta-40);
}
.ev-hero-badge strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--terracota);
}
.ev-hero-badge em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tinta-60);
}

/* ============ Experiencia · meditación + sound healing ============ */
.ev-experience { padding: 64px 0; }
.ev-experience .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}
.ev-exp-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ev-exp-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.ev-exp-media-side {
  position: absolute;
  top: 24px; left: 18px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lino);
  text-shadow: 0 1px 8px rgba(50, 44, 34, .5);
}

.ev-exp-body h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 16px 0 22px; }
.ev-exp-body p {
  color: var(--tinta-60);
  margin-bottom: 18px;
  max-width: 56ch;
}
.ev-exp-schedule {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: rgba(155, 151, 114, .12);
  border: 1px solid rgba(155, 151, 114, .28);
  font-size: 0.92rem;
  color: var(--musgo);
}
.ev-exp-schedule strong { color: var(--tinta); font-weight: 600; }
.ev-exp-schedule svg { width: 17px; height: 17px; color: var(--musgo); }

.ev-exp-included {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px !important;
  font-size: 0.96rem;
  color: var(--tinta-60);
}
.ev-exp-included strong { color: var(--terracota); font-weight: 600; }
.ev-included-mark {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(166, 104, 65, .12);
  color: var(--terracota);
}
.ev-included-mark svg { width: 14px; height: 14px; }

/* "Ideal para" */
.ev-ideal {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--linea);
}
.ev-ideal h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 18px;
}
.ev-ideal-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 26px;
}
.ev-ideal-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.96rem;
  color: var(--tinta);
  line-height: 1.45;
}
.ev-ideal-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--arcilla), var(--terracota));
}

/* ============ Agenda · lista de encuentros ============ */
.ev-agenda { padding: 64px 0 30px; }
.ev-agenda-head {
  max-width: 640px;
  margin-bottom: 46px;
}
.ev-agenda-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 14px; }
.ev-agenda-head p { color: var(--tinta-60); margin-top: 14px; }

.ev-list { display: grid; gap: 22px; }

.ev-card {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: 22px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--linea);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ev-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--arcilla);
}
.ev-card-media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 11;
}
.ev-card-media img { width: 100%; height: 100%; object-fit: cover; }

.ev-card-body { min-width: 0; }
.ev-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ev-tag {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(155, 151, 114, .14);
  color: var(--musgo);
}
.ev-tag.is-special {
  background: rgba(166, 104, 65, .14);
  color: var(--terracota);
}
.ev-tag.is-included {
  background: transparent;
  color: var(--musgo);
  border: 1px solid rgba(155, 151, 114, .45);
}
.ev-when {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--tinta-40);
}
.ev-card-body h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 8px;
}
.ev-card-body p {
  color: var(--tinta-60);
  font-size: 0.96rem;
  max-width: 52ch;
}
.ev-card-action { flex: 0 0 auto; }
.ev-card-action .btn { white-space: nowrap; }

/* nota para futuros eventos */
.ev-empty {
  margin-top: 22px;
  padding: 30px;
  border-radius: var(--r-lg);
  border: 1px dashed var(--linea);
  text-align: center;
  color: var(--tinta-40);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
}

/* ============ Cierre ============ */
.ev-closing {
  text-align: center;
  padding: 80px 0 100px;
}
.ev-closing .wrap { max-width: 720px; }
.ev-closing h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 16px 0 18px;
}
.ev-closing p {
  color: var(--tinta-60);
  max-width: 520px;
  margin: 0 auto 30px;
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .ev-hero .wrap { grid-template-columns: 1fr; }
  .ev-hero-media { order: -1; }
  .ev-experience .wrap { grid-template-columns: 1fr; }
  .ev-exp-media { max-width: 440px; }
  .ev-card { grid-template-columns: 200px 1fr; }
  .ev-card-action { grid-column: 1 / -1; }
  .ev-card-action .btn { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
  .ev-hero { padding-top: 130px; }
  .ev-hero-media img { min-height: 300px; }
  .ev-hero-badge { width: 92px; height: 92px; top: -16px; right: -8px; }
  .ev-hero-badge strong { font-size: 2rem; }
  .ev-ideal-list { grid-template-columns: 1fr; }
  .ev-card { grid-template-columns: 1fr; }
  .ev-card-media { aspect-ratio: 16 / 9; }
}
