/* ==========================================================================
   2° CONGRESO INTERNACIONAL DE SALUD MENTAL PERINATAL - MORELOS
   Components CSS: Cards, Tabs, Hero, Countdown, Organizers Carousel & Modals
   ========================================================================== */

/* Hero Banner Component */
.hero-section {
  position: relative;
  padding: calc(var(--header-height) + 3.5rem) 0 5rem 0;
  background: linear-gradient(135deg, rgba(42, 21, 56, 0.96) 0%, rgba(133, 52, 181, 0.92) 100%),
              url('../assets/img/logo-congreso.jpeg') center/cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}

.hero-pattern-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent-magenta),
    var(--accent-magenta) 20px,
    var(--accent-orange) 20px,
    var(--accent-orange) 40px,
    var(--accent-olive) 40px,
    var(--accent-olive) 60px,
    var(--accent-cyan) 60px,
    var(--accent-cyan) 80px
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(248, 28, 128, 0.2);
  border: 1px solid rgba(248, 28, 128, 0.4);
  color: #ff94c7;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  color: #ffffff;
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--accent-orange);
  display: block;
}

.hero-motto {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  font-size: 0.95rem;

  & i {
    font-size: 1.25rem;
    color: var(--accent-cyan);
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
}

.hero-logo-frame {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--accent-magenta);
  box-shadow: var(--shadow-glow);
}

.hero-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Countdown Timer Component */
.countdown-box {
  margin-top: 1.5rem;
}

.countdown-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-yellow);
  margin-bottom: 1rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.countdown-item {
  background: rgba(42, 21, 56, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.5rem;
  text-align: center;
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

/* News & Instagram Updates Component */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border-top: 4px solid var(--accent-magenta);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--primary-purple);
}

.news-badge-wrapper {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
}

.news-badge {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(248, 28, 128, 0.12);
  color: var(--accent-magenta);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.news-badge.urgent {
  background-color: rgba(255, 49, 49, 0.12);
  color: var(--accent-red);
}

.news-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.news-date {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed rgba(248, 28, 128, 0.2);
}

.news-date i {
  color: var(--accent-magenta);
  font-size: 0.95rem;
}

.news-desc {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.news-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-magenta);
  text-decoration: none;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(248, 28, 128, 0.08);
  border: 1px solid rgba(248, 28, 128, 0.2);
  transition: var(--transition-fast);
}

.news-link:hover {
  background: linear-gradient(135deg, #f81c80, #8534b5);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.news-link i {
  font-size: 1.05rem;
}

/* Deadlines & Key Dates Component */
.deadlines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.deadline-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border-left: 5px solid var(--accent-orange);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.deadline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.deadline-card.urgent {
  border-left-color: var(--accent-red);
}

.deadline-card.warning {
  border-left-color: var(--accent-yellow);
}

.deadline-badge-wrapper {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
}

.deadline-badge {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.deadline-badge.urgent {
  background-color: rgba(255, 49, 49, 0.12);
  color: var(--accent-red);
}

.deadline-badge.warning {
  background-color: rgba(250, 191, 6, 0.18);
  color: #b38500;
}

.deadline-badge.normal {
  background-color: rgba(17, 181, 234, 0.12);
  color: var(--accent-cyan);
}

.deadline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.deadline-date {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed rgba(133, 52, 181, 0.2);
}

.deadline-date i {
  color: var(--accent-orange);
  font-size: 1rem;
}

.deadline-desc {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: 0;
  margin-bottom: 0;
  flex-grow: 1;
}



/* Organizers Infinite Logo Banner */
.organizers-wrapper {
  background: #ffffff;
  padding: 3rem 0;
  border-y: 1px solid var(--border-light);
  overflow: hidden;
}

.organizers-track {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  animation: scrollLogos 38s linear infinite;
  width: max-content;
}

.organizers-track:hover {
  animation-play-state: paused;
}

@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.organizer-logo-item {
  height: 95px;
  width: auto;
  min-width: 180px;
  max-width: 320px;
  padding: 0.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: none;
  opacity: 1;
  transition: var(--transition-fast);

  &:hover {
    transform: scale(1.12);
  }
}

.organizer-logo-item img {
  max-height: 95px;
  max-width: 100%;
  object-fit: contain;
}

.organizer-logo-item img[src*="GAMMH"],
.organizer-logo-item img[src*="gammh"] {
  width: 290px !important;
  max-width: 320px !important;
  max-height: 85px !important;
  transform: scale(1.5) !important;
  transform-origin: center;
}

/* Interactive Tabs Component */
.tab-navigation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-medium);
  background-color: #ffffff;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);

  &:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
  }

  &.active {
    background-color: var(--primary-purple);
    color: #ffffff;
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-sm);
  }
}

/* Program Activity Type Filters */
.filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(133, 52, 181, 0.08);
  color: var(--primary-purple);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);

  &:hover {
    background: rgba(133, 52, 181, 0.16);
  }

  &.active {
    background: var(--accent-magenta);
    color: #ffffff;
  }
}

/* Academic Program Activity Cards */
.program-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.activity-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 2rem;
  align-items: center;
  transition: var(--transition-fast);

  &:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-cyan);
  }
}

.activity-time-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.activity-time {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-purple);
}

.activity-modality {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-olive);
}

.activity-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.activity-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--accent-cyan-light);
  color: var(--accent-cyan-hover);
}

.activity-title {
  font-size: 1.2rem;
  line-height: 1.3;
}

.activity-speaker {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Registration Options Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);

  &:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-purple);
  }
}

.pricing-card.featured {
  border-color: var(--accent-magenta);
  box-shadow: var(--shadow-md);

  &::before {
    content: 'MÁS POPULAR';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-magenta);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
  }
}

.pricing-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-purple-light);
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem auto;
}

.pricing-card.featured .pricing-icon {
  background: var(--accent-magenta-light);
  color: var(--accent-magenta);
}

.pricing-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-purple);
  margin-bottom: 0.25rem;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;

  & i {
    color: var(--accent-olive);
    margin-top: 3px;
  }
}

/* Committee Member Cards Component */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.member-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);

  &:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-cyan);
  }
}

.member-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  border: 3px solid var(--accent-magenta);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  background-color: var(--primary-purple-light);
}

.member-name {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.member-role {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-purple);
  margin-bottom: 0.5rem;
}

.member-inst {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Sede Morelos Component */
.venue-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.venue-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-normal);
}

.venue-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.venue-card.primary {
  border: 2px solid var(--primary-purple);
  background: linear-gradient(180deg, #ffffff 0%, #faf6fe 100%);
}

.venue-card.secondary {
  border: 2px solid var(--accent-cyan);
  background: linear-gradient(180deg, #ffffff 0%, #f4fbfe 100%);
}

.venue-card.placeholder {
  border: 2px dashed rgba(133, 52, 181, 0.35);
  background: rgba(255, 255, 255, 0.6);
}

.venue-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  margin-bottom: 1rem;
}

.venue-card-badge.primary {
  background: var(--primary-purple);
  color: #ffffff;
}

.venue-card-badge.secondary {
  background: var(--accent-cyan-light);
  color: #0b7da3;
}

.venue-card-badge.pending {
  background: #fff3d6;
  color: #9a6500;
}

.venue-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.venue-card.primary .venue-card-icon {
  background: var(--primary-purple-light);
  color: var(--primary-purple);
}

.venue-card.secondary .venue-card-icon {
  background: var(--accent-cyan-light);
  color: var(--accent-cyan);
}

.venue-card.placeholder .venue-card-icon {
  background: #f1ecf7;
  color: var(--text-muted);
}

.venue-card-title {
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.venue-card-inst {
  font-size: 0.9rem;
  color: var(--primary-purple);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.venue-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.venue-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-body);
}

.venue-card-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.venue-card-meta-item i {
  color: var(--accent-orange);
  margin-top: 3px;
}

.venue-card-btn {
  margin-top: 1.25rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.venue-info-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.venue-feature {
  display: flex;
  gap: 1rem;

  & i {
    font-size: 1.5rem;
    color: var(--accent-orange);
    margin-top: 4px;
  }
}

.morelos-promo-banner {
  background: linear-gradient(135deg, var(--primary-purple) 0%, #4f1d6d 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #ffffff;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.morelos-promo-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(248, 28, 128, 0.3) 0%, rgba(248, 28, 128, 0) 70%);
  pointer-events: none;
}

.morelos-promo-content h3 {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.morelos-promo-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  max-width: 650px;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid #ffffff;
  height: 380px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Conoce Morelos Dedicated Page Components */
.morelos-page-hero {
  background: linear-gradient(135deg, rgba(42, 21, 56, 0.90) 0%, rgba(61, 27, 84, 0.85) 100%), 
              url('../assets/img/morelos/hero-morelos.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 6.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.morelos-page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(248, 28, 128, 0.25) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(17, 181, 234, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.morelos-page-hero .section-tag {
  background: rgba(255, 255, 255, 0.18);
  color: var(--accent-orange);
  backdrop-filter: blur(4px);
}

.morelos-page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 1rem 0;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.morelos-page-hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 820px;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.morelos-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  background: rgba(42, 21, 56, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.morelos-stat-item {
  text-align: center;
}

.morelos-stat-item .stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-yellow);
  display: block;
}

.morelos-stat-item .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.tourism-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tourism-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tourism-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.tourism-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

.tourism-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #2a1538;
}

.tourism-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.6s ease-in-out;
}

.tourism-card:hover .tourism-card-img-wrapper img {
  transform: scale(1.06);
}

/* Dynamic Card Slider */
.tourism-card-img-wrapper.has-slider {
  position: relative;
}

.tourism-card-img-wrapper .slider-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.tourism-card-img-wrapper .slider-slides img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s ease;
}

.tourism-card-img-wrapper .slider-slides img.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.tourism-card:hover .tourism-card-img-wrapper .slider-slides img.active {
  transform: scale(1.06);
}

/* Slider Controls */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(42, 21, 56, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}

.tourism-card:hover .slider-nav-btn {
  opacity: 0.9;
}

.slider-nav-btn:hover {
  background: var(--primary-purple);
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn.prev {
  left: 8px;
}

.slider-nav-btn.next {
  right: 8px;
}

.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 7px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  width: 16px;
  border-radius: 4px;
  background: #ffffff;
}

.tourism-card-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(42, 21, 56, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 4;
}

.tourism-card-badge-overlay.magic {
  background: rgba(253, 134, 6, 0.9);
}

.tourism-card-badge-overlay.gastro {
  background: rgba(248, 28, 128, 0.9);
}

.tourism-card-badge-overlay.logistics {
  background: rgba(17, 181, 234, 0.9);
}

.tourism-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.tourism-card-body h3 {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.tourism-card-body p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.tourism-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tourism-highlights-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tourism-highlights-list li i {
  color: var(--accent-olive);
  font-size: 0.75rem;
}

.travel-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.travel-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.travel-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.travel-card-title i {
  color: var(--accent-orange);
  font-size: 1.4rem;
}

.travel-step-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.travel-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-purple-light);
  color: var(--primary-purple);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.travel-step-item h4 {
  font-size: 0.98rem;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.travel-step-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Contact Form Component */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info-card {
  background: var(--primary-purple);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-card h3 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.5rem;

  & i {
    font-size: 1.5rem;
    color: var(--accent-orange);
    margin-top: 4px;
  }
}

.contact-form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-medium);
  background-color: var(--bg-main);
  transition: var(--transition-fast);
  outline: none;

  &:focus {
    border-color: var(--accent-cyan);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(17, 181, 234, 0.15);
  }
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Modal Windows */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 21, 56, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition-bounce);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);

  &:hover {
    background-color: var(--bg-main);
    color: var(--accent-red);
  }
}

/* Responsive Component Overrides */
@media (max-width: 1200px) {
  .tourism-grid-4, .tourism-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .hero-grid, .venue-grid, .contact-grid, .travel-guide-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .venue-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .morelos-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .morelos-promo-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .activity-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .tourism-grid-4, .tourism-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .tourism-grid-4, .tourism-grid-3 {
    grid-template-columns: 1fr;
  }

  .morelos-stats-bar {
    grid-template-columns: 1fr;
  }

  .morelos-page-hero h1 {
    font-size: 2.1rem;
  }
}
