/* =========================
   ACTIVIDADES - Versión Remodelada
   ========================= */

/* Hero Compacto */
.activities-hero-compact {
  background: linear-gradient(180deg, #ece5db 0%, #f7f3ed 100%);
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
}

/* Animación de checkmark de éxito para modal */
.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.success-checkmark__circle {
  stroke: #5a8a6a;
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-linecap: round;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
  stroke: #5a8a6a;
  stroke-width: 2;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-linecap: round;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.activities-hero-compact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(184,146,74,0.09), transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(122,92,62,0.06), transparent);
  pointer-events: none;
}

.hero-compact__content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: #8a715c;
}

.hero-compact__content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  margin-bottom: 20px;
  color: #5a4638;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

.hero-compact__content .lead {
  font-size: 18px;
  color: #6b5a4d;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 20px 22px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(106,79,59,0.12);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

.stat__number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 600;
  color: #6a4f3b;
  line-height: 1;
}

.stat__label {
  font-size: 13px;
  color: #8a7a6c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* Tabs de Actividades */
.activities-nav-section {
  background: linear-gradient(180deg, #f7f3ed 0%, #f3ede4 100%);
  padding: 0 0 60px;
  position: relative;
  z-index: 10;
}

.activities-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: -24px;
}

.activity-tab {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(106,79,59,0.12);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
  text-align: left;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.activity-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(201,169,98,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.activity-tab:hover {
  transform: translateY(-4px);
  border-color: rgba(201,169,98,0.35);
  background: rgba(255,255,255,0.95);
}

.activity-tab:hover::before {
  opacity: 1;
}

.activity-tab.is-active {
  background: #ffffff;
  border-color: rgba(106,79,59,0.35);
  box-shadow: 0 20px 50px rgba(106,79,59,0.08);
}

.tab__icon {
  width: 50px;
  height: 50px;
  background: rgba(201,169,98,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e714b;
  flex-shrink: 0;
}

.activity-tab.is-active .tab__icon {
  background: #c9a962;
  color: #fff;
}

.tab__content h3 {
  font-size: 20px;
  margin-bottom: 4px;
  color: #4d3a2f;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

.tab__content p {
  font-size: 13px;
  color: #7d6b5d;
}

/* Panel de Detalle */
.activity-detail-section {
  background: linear-gradient(180deg, #f3ede4 0%, var(--surface-cream) 100%);
  padding: 80px 0;
  min-height: 600px;
}

.activity-detail-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.activity-detail-panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-panel__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

.detail-panel__main {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-xl);
  padding: 50px;
}

.detail-header {
  margin-bottom: 40px;
}

.detail-badge {
  display: inline-flex;
  padding: 8px 16px;
  background: rgba(201,169,98,0.15);
  border: 1px solid rgba(201,169,98,0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8e714b;
  margin-bottom: 20px;
}

.detail-badge--online {
  background: rgba(100,149,237,0.08);
  border-color: rgba(100,149,237,0.22);
  color: #5276b8;
}

.detail-badge--virtual {
  background: rgba(147,112,219,0.1);
  border-color: rgba(147,112,219,0.25);
  color: #7b5cc5;
}

.detail-header h2 {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 16px;
  color: #4d3a2f;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

.detail-intro {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(0,0,0,0.7);
}

/* Features horizontales */
.detail-features-horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.feature-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-mini__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #d6b676, #ead8af);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #4d3a2f;
  flex-shrink: 0;
}

.feature-mini h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.5);
  margin-bottom: 2px;
}

.feature-mini p {
  font-size: 15px;
  font-weight: 600;
  color: #4d3a2f;
}

/* Descripción */
.detail-description h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #4d3a2f;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

.detail-description p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(0,0,0,0.7);
  margin-bottom: 20px;
}

.detail-description ul {
  list-style: none;
  padding: 0;
}

.detail-description li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 15px;
  color: rgba(0,0,0,0.7);
}

.detail-description li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: #c9a962;
}

/* CTA */
.detail-cta {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Sidebar */
.detail-panel__sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.sidebar-card h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.5);
  margin-bottom: 20px;
}

.next-date {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.date__day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 600;
  color: #c9a962;
  line-height: 1;
}

.date__info {
  display: flex;
  flex-direction: column;
}

.date__month {
  font-size: 16px;
  font-weight: 600;
  color: #4d3a2f;
}

.date__time {
  font-size: 14px;
  color: rgba(0,0,0,0.6);
}

.modality-option {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.modality-option:last-child {
  border-bottom: none;
}

.modality__name {
  font-weight: 600;
  color: #4d3a2f;
}

.modality__loc {
  font-size: 13px;
  color: rgba(0,0,0,0.6);
}

.price-hint {
  text-align: center;
  padding: 16px;
  background: rgba(0,0,0,0.03);
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 13px;
  color: rgba(0,0,0,0.6);
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.requirements-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 14px;
  color: rgba(0,0,0,0.7);
}

.requirements-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #c9a962;
  font-weight: 600;
}

.sidebar-info {
  background: rgba(201,169,98,0.08);
  border: 1px solid rgba(201,169,98,0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sidebar-info h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #4d3a2f;
  font-family: 'Cormorant Garamond', serif;
}

.sidebar-info p {
  font-size: 14px;
  color: rgba(0,0,0,0.7);
  margin-bottom: 12px;
  line-height: 1.6;
}

.text-link {
  color: #8e714b;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.text-link:hover {
  color: #4d3a2f;
}

/* Botón pequeño */
.btn--small {
  padding: 12px 20px;
  font-size: 14px;
  width: 100%;
  justify-content: center;
}

/* Calendario */
.section--calendar {
  background: #efeae2;
  padding: 100px 0;
}

.calendar-wrapper {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 30px;
  margin-top: 40px;
}

.calendar-main {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 36px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(73, 55, 42, 0.08);
}

.calendar-legend {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
}

.calendar-legend h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.5);
  margin-bottom: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(0,0,0,0.7);
}

.legend__color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend__color--clinica {
  background: #966f33;
}

.legend__color--taller-online {
  background: #3e664b;
}

.legend__color--taller-presencial {
  background: #5c432b;
}

.calendar-note {
  text-align: center;
  margin-top: 30px;
  color: rgba(0,0,0,0.6);
  font-size: 15px;
}

.calendar-note span {
  font-size: 20px;
  margin-right: 8px;
}

.fc {
  --fc-border-color: rgba(77,58,47,0.12);
  --fc-today-bg-color: rgba(201,169,98,0.08);
  color: #4d3a2f;
}

.fc .fc-toolbar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 600;
  color: #4d3a2f;
}

.fc .fc-button {
  background: linear-gradient(135deg, #b8924a, #8f6e32);
  border-color: #8f6e32;
  box-shadow: 0 4px 12px rgba(143,110,50,0.22);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fc .fc-button:hover,
.fc .fc-button:focus,
.fc .fc-button:active {
  background: linear-gradient(135deg, #a07c3a, #7a5c28) !important;
  border-color: #7a5c28 !important;
  box-shadow: 0 6px 16px rgba(143,110,50,0.30) !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
  background: linear-gradient(135deg, #8f6e32, #6b4f20) !important;
  border-color: #6b4f20 !important;
}

.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number,
.fc .fc-list-day-text,
.fc .fc-list-day-side-text {
  color: #4d3a2f;
  text-decoration: none;
}

.fc .fc-event {
  border: 0 !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* Forzar que CUALQUIER texto dentro de un evento (salvo dot-events) sea blanco y grueso */
.fc .fc-daygrid-block-event,
.fc .fc-daygrid-block-event .fc-event-main,
.fc .fc-daygrid-block-event .fc-event-title,
.fc .fc-daygrid-block-event .fc-event-time {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important; /* Sombra sutil para despegar el texto del fondo */
}

.fc .fc-event--clinica {
  background: #966f33 !important;
}

.fc .fc-event--taller-online {
  background: #3e664b !important;
}

.fc .fc-event--taller-presencial {
  background: #5c432b !important;
}

.fc .fc-list-event:hover td,
.fc .fc-daygrid-event:hover {
  cursor: pointer;
}

/* ── Eliminar color azul de links en eventos ─────── */
.fc .fc-event,
.fc .fc-event a,
.fc .fc-event-main,
.fc .fc-event-title,
.fc .fc-event-title-container,
.fc .fc-list-event-title a,
.fc .fc-list-event-dot {
  color: inherit !important;
  text-decoration: none !important;
}

/* Eventos con solo punto visible — forzar color marrón oscuro */
.fc-daygrid-dot-event .fc-event-title {
  color: var(--marron, #4c3220) !important;
  font-weight: 600;
}

/* Vista lista */
.fc .fc-list-event td {
  color: #4d3a2f;
}
.fc .fc-list-event-title a {
  color: #4d3a2f !important;
}


/* Modal */
body.modal-open {
  overflow: hidden;
}

.event-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.event-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.event-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 18, 13, 0.5);
  backdrop-filter: blur(6px);
}

.event-modal__dialog {
  position: relative;
  width: min(92vw, 760px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 24px auto;
  background: #fbf8f3;
  border: 1px solid rgba(77,58,47,0.12);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 24px 60px rgba(24, 18, 13, 0.18);
}

.event-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(77,58,47,0.08);
  color: #4d3a2f;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.event-modal__header {
  margin-bottom: 24px;
  padding-right: 56px;
}

.event-modal__eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: #8a715c;
}

.event-modal__header h3 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: #4d3a2f;
}

.event-modal__summary {
  margin: 0;
  color: #6b5a4d;
  line-height: 1.6;
}

.event-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-field span {
  font-size: 13px;
  font-weight: 600;
  color: #5a4638;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(77,58,47,0.16);
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
  font: inherit;
  color: #4d3a2f;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(201,169,98,0.8);
  box-shadow: 0 0 0 4px rgba(201,169,98,0.14);
}

.form-field--full {
  margin-bottom: 0;
}

.event-form__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.event-form__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #7d6b5d;
}

/* Panel compacto */
.soft-panel--compact {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
  .activities-tabs {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .activity-tab {
    padding: 20px;
  }

  .detail-panel__grid {
    grid-template-columns: 1fr;
  }

  .detail-panel__sidebar {
    order: -1;
  }

  .calendar-wrapper {
    grid-template-columns: 1fr;
  }

  .calendar-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }

  .calendar-legend h4 {
    width: 100%;
    margin-bottom: 0;
  }

  .event-form__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .activities-hero-compact {
    padding: 122px 0 58px;
  }

  .hero-stats {
    gap: 14px;
  }

  .stat {
    min-width: calc(50% - 7px);
    flex: 1 1 calc(50% - 7px);
  }

  .detail-features-horizontal {
    grid-template-columns: 1fr;
  }

  .detail-panel__main {
    padding: 30px;
  }

  .detail-cta {
    flex-direction: column;
  }

  .event-modal__dialog {
    padding: 24px;
    width: min(94vw, 760px);
  }

  .event-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .stat {
    min-width: 100%;
    flex-basis: 100%;
  }

  .calendar-main {
    padding: 18px;
    border-radius: 24px;
  }

  .fc .fc-toolbar {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .fc .fc-toolbar-title {
    text-align: center;
  }
}
