@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --margus-burgundy: #401220;
  --margus-gold: #9C7D3F;
  --margus-navy: #1F2232;
  --margus-light: #EDEBE8;
  --margus-white: #ffffff;
  --primary: var(--margus-gold);
  --secondary: var(--margus-burgundy);
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--margus-light);
  margin: 0;
}

.margus-public-page {
  min-height: 100vh;
  background-color: var(--margus-light);
  padding-bottom: 76px;
}

.margus-header-banner {
  background-color: #9C7D3F;
  background-image: url('img/baner-pc-marketing-01.png');
  background-size: cover;
  background-position: center;
  border-radius: 0 0 30px 30px;
  min-height: 168px;
  padding: 1.5rem 0 2.5rem;
}

.margus-header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
}

.margus-header-brand img {
  max-height: 80px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.margus-header-brand h1 {
  margin: 0;
  color: var(--margus-white);
  font-size: 1.1rem;
  font-weight: 600;
}

.margus-content {
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  padding-bottom: 2rem;
}

.margus-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 34, 50, 0.1);
  overflow: hidden;
}

.margus-card .card-header {
  background: var(--margus-white);
  border-bottom: 1px solid rgba(64, 18, 32, 0.08);
  padding: 1.25rem 1.5rem;
}

.margus-card .card-body {
  padding: 1.5rem;
}

.margus-page-title {
  font-size: 15px;
  font-weight: 600;
  color: #6c757d;
  margin: 0;
}

.margus-page-title span {
  color: var(--margus-burgundy);
}

.btn-margus-gold,
.btn-send {
  background-color: var(--margus-gold) !important;
  border: none !important;
  border-color: var(--margus-gold) !important;
  color: var(--margus-white) !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: 10px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-margus-gold:hover:not(:disabled),
.btn-send:hover:not(:disabled) {
  background-color: #8a6935 !important;
  box-shadow: 0 6px 18px rgba(156, 125, 63, 0.35);
  transform: translateY(-1px);
}

.btn-margus-burgundy {
  background-color: var(--margus-burgundy) !important;
  border-color: var(--margus-burgundy) !important;
  color: var(--margus-white) !important;
}

.margus-form-control,
.form-control {
  border-radius: 10px;
  border: 1px solid rgba(64, 18, 32, 0.12);
  background: #f8f7f5;
  font-family: 'Poppins', sans-serif;
}

.margus-form-control:focus,
.form-control:focus {
  border-color: var(--margus-gold) !important;
  box-shadow: 0 0 0 3px rgba(156, 125, 63, 0.18) !important;
  background: var(--margus-white);
}

.margus-stats-box {
  background: #f8f7f5;
  border: 1px solid rgba(64, 18, 32, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
}

.margus-stats-box h5 {
  color: var(--margus-burgundy);
  font-weight: 700;
}

.margus-footer {
  background: linear-gradient(135deg, var(--margus-navy) 0%, var(--margus-burgundy) 100%);
  color: var(--margus-white);
}

.margus-footer a {
  color: var(--margus-white);
  text-decoration: none;
}

.margus-footer hr {
  border-color: rgba(255, 255, 255, 0.2);
}

.croissant-loader {
  width: 160px;
  height: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.croissant-loader img,
.croissant-loader svg {
  width: 160px;
  height: auto;
  display: block;
}

@media (max-width: 767px) {
  .margus-header-banner {
    min-height: 130px;
    padding-bottom: 2rem;
    background-image: url('img/baner-movil-margus-01.png');
  }

  .margus-header-banner:has(.margus-header-brand) {
    min-height: 200px;
    padding: 1rem 0 1.25rem;
  }

  .margus-header-banner:has(.margus-header-brand) .margus-header-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0 0.75rem;
  }

  .margus-header-banner:has(.margus-header-brand) .margus-header-brand img {
    max-height: 52px;
  }

  .margus-header-banner:has(.margus-header-brand) .margus-header-brand h1 {
    font-size: 0.85rem;
    line-height: 1.25;
  }

  .margus-content {
    margin-top: -1.25rem;
  }

  .margus-header-banner:has(.margus-header-brand) + .margus-content {
    margin-top: 0.75rem;
  }

  .margus-card .card-body {
    padding: 1.25rem;
  }
}

/* SweetAlert2 — Estación Margus */
.swal2-container {
  font-family: 'Poppins', sans-serif !important;
}

.swal2-popup {
  position: relative;
  border: none !important;
  border-radius: 20px !important;
  padding: 1.65rem 1.4rem 1.35rem !important;
  background: #fff !important;
  box-shadow: 0 16px 40px rgba(31, 34, 50, 0.2) !important;
  font-family: 'Poppins', sans-serif !important;
  overflow: hidden;
}

.swal2-popup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--margus-navy), var(--margus-gold), var(--margus-burgundy));
}

.swal2-title {
  color: var(--margus-burgundy) !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
}

.swal2-html-container,
.swal2-content {
  color: var(--margus-navy) !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.95rem !important;
}

.swal2-actions {
  gap: 0.5rem;
}

.swal2-styled.swal2-confirm {
  background: linear-gradient(135deg, var(--margus-burgundy) 0%, #5a1a2e 100%) !important;
  background-color: var(--margus-burgundy) !important;
  color: var(--margus-white) !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(64, 18, 32, 0.25) !important;
  padding: 0.55rem 1.25rem !important;
}

.swal2-styled.swal2-confirm:hover {
  background: #2e0d17 !important;
}

.swal2-styled.swal2-cancel,
.swal2-styled.swal2-deny {
  background: var(--margus-gold) !important;
  color: var(--margus-white) !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  padding: 0.55rem 1.25rem !important;
}

.swal2-styled.swal2-cancel:hover,
.swal2-styled.swal2-deny:hover {
  background: #856935 !important;
}

.swal2-icon.swal2-success {
  border-color: var(--margus-gold) !important;
  color: var(--margus-gold) !important;
}

.swal2-icon.swal2-success [class^=swal2-success-line] {
  background-color: var(--margus-gold) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(156, 125, 63, 0.35) !important;
}

.swal2-icon.swal2-error {
  border-color: var(--margus-burgundy) !important;
  color: var(--margus-burgundy) !important;
}

.swal2-icon.swal2-error [class^=swal2-x-mark-line] {
  background-color: var(--margus-burgundy) !important;
}

.swal2-icon.swal2-warning,
.swal2-icon.swal2-info,
.swal2-icon.swal2-question {
  border-color: var(--margus-gold) !important;
  color: var(--margus-gold) !important;
}

.swal2-timer-progress-bar {
  background: var(--margus-gold) !important;
}

.swal2-popup:has(.croissant-loader) {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.swal2-popup:has(.croissant-loader)::before {
  display: none !important;
}
