/**
 * Mundo Nomada for Elementor — Front-end Widget Styles
 * Version: 1.0.0
 */

/* ─── Reset & Base ──────────────────────────────────────────────────────────── */
.mn-hero,
.mn-card,
.mn-testimonial {
  box-sizing: border-box;
}

.mn-hero *,
.mn-card *,
.mn-testimonial * {
  box-sizing: inherit;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MN HERO
═══════════════════════════════════════════════════════════════════════════════ */

.mn-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  width: 100%;
}

/* Overlay */
.mn-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Content */
.mn-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Pre-heading */
.mn-hero__pre-heading {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
}

/* Heading */
.mn-hero__heading {
  margin: 0 0 20px;
  color: #ffffff;
  line-height: 1.15;
}

/* Subheading */
.mn-hero__subheading {
  margin: 0 0 36px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* Buttons row */
.mn-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.mn-hero__content[style*="text-align: center"] .mn-hero__buttons,
.mn-hero__content[style*="text-align:center"] .mn-hero__buttons {
  justify-content: center;
}

.mn-hero__content[style*="text-align: right"] .mn-hero__buttons,
.mn-hero__content[style*="text-align:right"] .mn-hero__buttons {
  justify-content: flex-end;
}

/* Shared button styles */
.mn-hero__btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease,
              transform 0.15s ease;
}

.mn-hero__btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

/* Primary button defaults */
.mn-hero__btn--primary {
  background-color: #e74c3c;
  color: #ffffff;
  border: 2px solid transparent;
}

.mn-hero__btn--primary:hover {
  background-color: #c0392b;
  color: #ffffff;
}

/* Secondary button defaults */
.mn-hero__btn--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.mn-hero__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   MN CARD
═══════════════════════════════════════════════════════════════════════════════ */

.mn-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 40px 32px;
  height: 100%;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.mn-card--linked:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.mn-card[style*="text-align: left"] {
  align-items: flex-start;
}

.mn-card[style*="text-align: right"] {
  align-items: flex-end;
}

/* Icon wrap */
.mn-card__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(231, 76, 60, 0.1);
  margin-bottom: 24px;
  flex-shrink: 0;
}

.mn-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #e74c3c;
  line-height: 1;
}

.mn-card__icon svg {
  width: 32px;
  height: 32px;
  fill: #e74c3c;
}

/* Title */
.mn-card__title {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}

/* Description */
.mn-card__description {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #666666;
  flex: 1;
}

/* Link */
.mn-card__link {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e74c3c;
  text-decoration: none;
  margin-top: auto;
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.mn-card__link:hover {
  color: #c0392b;
  letter-spacing: 0.02em;
  text-decoration: none;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   MN TESTIMONIAL
═══════════════════════════════════════════════════════════════════════════════ */

.mn-testimonial {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 40px;
  overflow: hidden;
}

/* Quote icon (decorative) */
.mn-testimonial__quote-icon {
  display: block;
  font-size: 60px;
  line-height: 1;
  color: rgba(231, 76, 60, 0.15);
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: 8px;
  pointer-events: none;
}

/* Stars */
.mn-testimonial__stars {
  display: flex;
  gap: 2px;
  font-size: 20px;
  margin-bottom: 16px;
  line-height: 1;
}

.mn-testimonial[style*="text-align: center"] .mn-testimonial__stars {
  justify-content: center;
}

.mn-testimonial[style*="text-align: right"] .mn-testimonial__stars {
  justify-content: flex-end;
}

.mn-testimonial__star--filled {
  color: #f39c12;
}

.mn-testimonial__star--empty {
  color: #dddddd;
}

/* Quote text */
.mn-testimonial__quote {
  font-size: 1rem;
  line-height: 1.75;
  color: #444444;
  margin: 0 0 28px;
  font-style: italic;
}

/* Author row */
.mn-testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.mn-testimonial[style*="text-align: center"] .mn-testimonial__author {
  justify-content: center;
}

.mn-testimonial[style*="text-align: right"] .mn-testimonial__author {
  justify-content: flex-end;
}

/* Avatar */
.mn-testimonial__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Author info */
.mn-testimonial__author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mn-testimonial__author-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}

.mn-testimonial__author-role {
  font-size: 0.8125rem;
  color: #888888;
  line-height: 1.3;
}


/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .mn-hero__content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .mn-hero__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .mn-hero__btn {
    text-align: center;
  }

  .mn-card {
    padding: 32px 24px;
  }

  .mn-testimonial {
    padding: 28px 24px;
  }
}
