:root {
  --deep-navy: #0f1a2f;
  --midnight-blue: #1a263b;
  --slate-blue: #2f3e5a;
  --sky-blue: #7aa9e2;
  --light-blue: #b8d4ff;
  --soft-white: #1e2a3a;
  --cool-grey: #2b384b;
  --steel-grey: #a0b3cc;
  --pure-white: #ffffff;
  --dark-text: #1e2b3a;

  --mw-bg: #0f172a;
  --mw-card: #1e2a3a;
  --mw-card2: #2b384b;
  --mw-line: #3d506e;
  --mw-accent: var(--sky-blue);
  --mw-accent-secondary: var(--light-blue);
  --mw-accent-light: var(--sky-blue);
  --mw-text: #e9f0fa;
  --mw-muted: #b0c6e0;
  --mw-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.6);
  --mw-card-gradient: linear-gradient(135deg, #1f2d41, #1a263b);
  --mw-card-border: 1px solid #3d506e;
  --mw-card-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  --mw-card-hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  /* Fondo unificado - tomado del formulario */
  background: linear-gradient(180deg, #12233c 0%, #0a162d 55%, #060f23 100%);
  position: relative;
  color: var(--mw-text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Efecto de estrellas sutil en todo el fondo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(200, 220, 250, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.mw-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 40px;
  position: relative;
  z-index: 1;
}

/* ===== SLIDER PROFESIONAL ===== */
.mw-slider-full {
  width: 100%;
  padding: 0;
  position: relative;
  margin-bottom: 0;
}

.mw-slider-section {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1424 0%, #1e2f44 50%, #0b1424 100%);
  box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.7);
}

.mw-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.mw-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mw-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.mw-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 8s cubic-bezier(0.4, 0, 0.2, 1);
  image-rendering: auto;
}

.mw-slide.active::before {
  transform: scale(1.02);
}

.mw-slide:nth-child(1)::before {
  background-image: linear-gradient(135deg, rgba(11, 26, 51, 0.4), rgba(30, 58, 111, 0.5)), url('https://i.postimg.cc/QxGCsfNV/dsfdsfs.webp');
}

.mw-slide:nth-child(2)::before {
  background-image: linear-gradient(135deg, rgba(11, 26, 51, 0.4), rgba(30, 58, 111, 0.5)), url('https://i.postimg.cc/J4kr2Zbt/slider5.webp');
}

.mw-slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.mw-slider-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 10%, rgba(0, 0, 0, 0.2) 100%);
  mix-blend-mode: normal;
}

.mw-slider-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}

.mw-slide-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 90%;
  padding: 40px;
  text-align: center;
  color: #fff;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
  margin: 0 auto;
  background: rgba(10, 20, 30, 0.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.mw-slide.active .mw-slide-content {
  transform: translateY(0);
  opacity: 1;
}

.mw-slide-content::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #7AA9E2, #B8D4FF, #7AA9E2, transparent);
  border-radius: 3px;
}

.mw-slide-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 2px;
  color: #fff !important;
  line-height: 1.2;
  position: relative;
  z-index: 20;
  opacity: 1 !important;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}

.mw-slide-description {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #fff !important;
  font-weight: 400;
  position: relative;
  z-index: 20;
  opacity: 1 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  padding: 0 20px;
}

.mw-slide-button {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #7AA9E2, #1E3A6F);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  z-index: 20;
}

.mw-slide-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.mw-slide-button:hover::before {
  width: 300px;
  height: 300px;
}

.mw-slide-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, #8ab4f0, #2a4a8f);
}

.mw-slide-button:active {
  transform: translateY(-1px);
}

.mw-slider-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #7AA9E2, #B8D4FF, #7AA9E2, transparent);
  z-index: 5;
  animation: slideBorder 3s linear infinite;
  background-size: 200% 100%;
}

@keyframes slideBorder {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.mw-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.mw-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
}

.mw-dot.active {
  width: 30px;
  border-radius: 15px;
  background: #7AA9E2;
  border-color: #7AA9E2;
  box-shadow: 0 0 15px rgba(122, 169, 226, 0.5);
}

.mw-dot:hover {
  border-color: #ffffff;
  transform: scale(1.2);
}

/* ===== RESPONSIVE SLIDER ===== */
@media (max-width: 1024px) {
  .mw-slider-section {
    height: 550px;
  }
}

@media (max-width: 768px) {
  .mw-slider-section {
    height: 400px;
  }
  
  .mw-slide-content {
    width: 92%;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  
  .mw-slide-title {
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  }
  
  .mw-slide-description {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
    padding: 0 10px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  }
  
  .mw-slide-button {
    padding: 12px 30px;
    font-size: 14px;
  }
  
  .mw-slider-dots {
    bottom: 20px;
    padding: 6px 15px;
    gap: 12px;
    background: rgba(0, 0, 0, 0.5);
  }
  
  .mw-dot {
    width: 10px;
    height: 10px;
    border-width: 2px;
  }
  
  .mw-dot.active {
    width: 25px;
  }
  
  .mw-slide-content::before {
    width: 50px;
    top: 12px;
  }
}

@media (max-width: 480px) {
  .mw-slider-section {
    height: 350px;
  }
  
  .mw-slide-content {
    width: 95%;
    padding: 25px 15px;
  }
  
  .mw-slide-title {
    font-size: 26px;
    margin-bottom: 12px;
    letter-spacing: 1px;
  }
  
  .mw-slide-description {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  
  .mw-slide-button {
    padding: 10px 25px;
    font-size: 13px;
  }
  
  .mw-slider-dots {
    bottom: 15px;
    padding: 5px 12px;
    gap: 10px;
  }
  
  .mw-dot {
    width: 8px;
    height: 8px;
    border-width: 1.5px;
  }
  
  .mw-dot.active {
    width: 20px;
  }
}

@media (max-width: 360px) {
  .mw-slider-section {
    height: 300px;
  }
  
  .mw-slide-content {
    padding: 20px 12px;
  }
  
  .mw-slide-title {
    font-size: 22px;
    margin-bottom: 10px;
  }
  
  .mw-slide-description {
    font-size: 13px;
    margin-bottom: 18px;
  }
  
  .mw-slide-button {
    padding: 8px 20px;
    font-size: 12px;
  }
  
  .mw-slider-dots {
    bottom: 12px;
    padding: 4px 10px;
  }
  
  .mw-dot {
    width: 7px;
    height: 7px;
  }
  
  .mw-dot.active {
    width: 18px;
  }
}

/* ===== FORMULARIO DE FECHA ===== */
.mw-date-form-section {
  width: 100%;
  background: transparent; /* Ahora es transparente porque el fondo ya está en body */
  position: relative;
  overflow: hidden;
  padding: 24px 10px 28px;
  border-top: 2px solid rgba(255, 196, 77, 0.4);
}

.mw-date-form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(200, 220, 250, 0.1) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.25;
  pointer-events: none;
}

.mw-date-form-wrap {
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.mw-date-form-title {
  margin: 0 0 14px;
  font-family: 'Inter', sans-serif;
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.mw-date-field label,
.mw-date-submit label {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.mw-date-field select,
.mw-date-field input {
  width: 100%;
  border: 3px solid #1e3f66;
  border-radius: 14px;
  background: #1a2a3f;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  padding: 0 12px;
  outline: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.mw-date-field input[type="number"] {
  -moz-appearance: textfield;
}

.mw-date-field input[type="number"]::-webkit-outer-spin-button,
.mw-date-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mw-date-field select:focus,
.mw-date-field input:focus {
  border-color: #7aa9e2;
  box-shadow: 0 0 0 4px rgba(122, 169, 226, 0.15);
}

.mw-date-submit button {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #1e4f7a 0%, #123a5e 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mw-date-submit button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.4);
}

.mw-date-submit button:active {
  transform: translateY(0);
}

@media (min-width: 769px) {
  .mw-date-form-title {
    white-space: nowrap;
  }
  
  .mw-date-form {
    display: grid;
    grid-template-columns: 104px 138px 112px 160px;
    gap: 8px;
    align-items: end;
    justify-content: center;
    width: max-content;
    margin: 0 auto;
  }
  
  .mw-date-field,
  .mw-date-submit {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  
  .mw-date-fields-row {
    display: contents;
  }
  
  .mw-date-field select,
  .mw-date-field input {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .mw-date-form-section {
    padding: 20px 16px 24px;
  }
  
  .mw-date-form-title {
    font-size: 20px;
    margin-bottom: 18px;
    white-space: normal;
    line-height: 1.3;
  }
  
  .mw-date-form {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .mw-date-fields-row {
    display: flex;
    gap: 10px;
    width: 100%;
  }
  
  .mw-date-field {
    flex: 1;
    min-width: 0;
  }
  
  .mw-date-submit {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  
  .mw-date-field label {
    font-size: 12px;
    margin-bottom: 5px;
  }
  
  .mw-date-field select,
  .mw-date-field input {
    height: 48px;
    font-size: 15px;
    padding: 0 4px;
  }
  
  .mw-date-submit button {
    height: 48px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .mw-date-fields-row {
    gap: 6px;
  }
  
  .mw-date-field select,
  .mw-date-field input {
    height: 44px;
    font-size: 15px;
  }
  
  .mw-date-submit button {
    height: 44px;
    font-size: 16px;
  }
  
  .mw-date-field label {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .mw-date-fields-row {
    gap: 4px;
  }
  
  .mw-date-field select,
  .mw-date-field input {
    height: 42px;
    font-size: 15px;
  }
}

/* ===== HERO ===== */
.mw-hero {
  background: #1b283b;
  border: 1px solid #3d5470;
  border-radius: 32px;
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.6);
  padding: 40px 32px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}

.mw-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #7AA9E2, #B8D4FF, #7AA9E2);
}

.mw-hero::after {
  content: "☾";
  position: absolute;
  bottom: -30px;
  right: -30px;
  font-size: 180px;
  opacity: 0.03;
  color: #7AA9E2;
  transform: rotate(15deg);
  font-family: serif;
  pointer-events: none;
}

.mw-title {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  letter-spacing: 2px;
  color: #e9f0fa;
  font-size: clamp(32px, 4vw, 56px);
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.mw-title span {
  color: #7AA9E2;
  font-weight: 600;
  display: block;
  font-size: 0.5em;
  letter-spacing: 4px;
  margin-top: 4px;
}

.mw-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 30px 0 15px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.mw-num {
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
}

/* FILTRO PARA VOLVER BLANCAS LAS IMÁGENES DE NÚMEROS */
.mw-num img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.mw-glyph {
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
}

.mw-glyph img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  display: block;
  filter: brightness(0.95) contrast(1.1);
}

.mw-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(32px, 3.8vw, 48px);
  margin: 20px 0 12px;
  font-weight: 800;
  color: #e9f0fa;
  line-height: 1.2;
  letter-spacing: 1px;
}

.mw-name small {
  font-size: 0.5em;
  color: #7AA9E2;
  font-weight: 600;
  display: block;
}

.mw-date {
  margin: 16px auto 0;
  color: #b0c6e0;
  font-size: 15px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(122, 169, 226, 0.15);
  padding: 8px 22px;
  border-radius: 50px;
  border: 1px solid rgba(122, 169, 226, 0.3);
  backdrop-filter: blur(4px);
  font-weight: 500;
}

.mw-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #7AA9E2, #B8D4FF, #7AA9E2, transparent);
  margin: 28px 0 20px;
  border-radius: 2px;
}

/* ===== TABS ===== */
.mw-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mw-tab {
  flex: 1 1 auto;
  min-width: 100px;
  padding: 14px 8px;
  text-align: center;
  font-weight: 700;
  color: #b0c6e0;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: transparent;
  border: 1px solid #3d5470;
}

.mw-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: #7AA9E2;
}

.mw-tab.active {
  background: #7AA9E2;
  color: #0f1a2f;
  border-color: #7AA9E2;
  box-shadow: 0 4px 12px rgba(122, 169, 226, 0.3);
}

/* ===== PANEL ===== */
.mw-panel {
  margin-top: 28px;
  background: transparent;
  border: none;
  border-radius: 28px;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mw-card-section {
  background: #1e2a3a;
  border: 1px solid #3d506e;
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.mw-card-section:hover {
  border-color: #7AA9E2;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

/* ===== TÍTULOS H3 ===== */
.mw-h3 {
  margin: 0 0 16px 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid #7AA9E2;
  font-family: 'Cinzel', serif;
}

/* ===== AJUSTES DE TEXTO PARA .mw-textp ===== */
.mw-textp {
  margin: 0;
  line-height: 1.3;
  color: #e9f0fa;
  font-size: 18px;
  font-weight: 400;
}

.mw-empty {
  color: #b0c6e0;
  font-size: 15px;
  font-style: italic;
  padding: 20px;
  text-align: center;
  background: #2b384b;
  border-radius: 12px;
}

/* ===== CRUZ MAYA ===== */
.mw-grid {
  position: relative;
  width: 100%;
  max-width: min(650px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, minmax(170px, auto));
  align-items: center;
  justify-items: center;
  gap: clamp(10px, 2vw, 25px);
  padding: 20px 20px 34px;
}

.mw-grid::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7AA9E2, #B8D4FF, #7AA9E2, transparent);
  transform: translateY(-50%);
  z-index: 0;
}

.mw-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, #7AA9E2, #B8D4FF, #7AA9E2, transparent);
  transform: translateX(-50%);
  z-index: 0;
}

.mw-cruz-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  background: #1f2d41;
  border: 2px solid #3d506e;
  border-radius: 16px;
  padding: clamp(8px, 1.5vw, 15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 6px;
  box-shadow: 0 8px 0 #1e2f44, 0 10px 20px rgba(0, 0, 0, 0.4);
}

.mw-cruz-card:hover {
  transform: translateY(-6px);
  border-color: #7AA9E2;
  box-shadow: 0 12px 0 #1a344d, 0 15px 25px rgba(0, 0, 0, 0.6);
}

.mw-cruz-card:nth-child(1) {
  grid-column: 2;
  grid-row: 2;
  z-index: 5;
  background: linear-gradient(145deg, #25364f, #1a273b);
}

.mw-cruz-card:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.mw-cruz-card:nth-child(3) {
  grid-column: 3;
  grid-row: 2;
}

.mw-cruz-card:nth-child(4) {
  grid-column: 2;
  grid-row: 1;
}

.mw-cruz-card:nth-child(5) {
  grid-column: 2;
  grid-row: 3;
}

.mw-cruz-pos {
  width: 100%;
  line-height: 1.3;
  white-space: normal;
  padding: 6px 8px;
  margin: 4px 0 2px !important;
  font-size: 0.75rem;
  font-weight: 700 !important;
  color: #ffffff;
  display: inline-block;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  background: #2f4a6a;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  word-break: keep-all;
}

.mw-cruz-card:nth-child(1) .mw-cruz-pos {
  background: #1e3a6f;
  font-size: 0.85rem;
  padding: 8px 12px;
}

.mw-cruz-card:nth-child(1) .mw-cruz-img {
  width: clamp(120px, 22vw, 200px) !important;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

.mw-cruz-card:nth-child(1) .mw-cruz-name {
  font-size: clamp(1.2rem, 2.4vw, 2.2rem) !important;
  color: #ffffff;
  font-weight: 800 !important;
}

.mw-cruz-card:nth-child(2) .mw-cruz-pos {
  background: #1a2b42;
}

.mw-cruz-card:nth-child(3) .mw-cruz-pos {
  background: #1e3a6f;
}

.mw-cruz-card:nth-child(4) .mw-cruz-pos {
  background: #2b3e5a;
}

.mw-cruz-card:nth-child(5) .mw-cruz-pos {
  background: #1f3b5c;
}

.mw-cruz-img {
  width: clamp(70px, 12vw, 110px) !important;
  max-width: 100%;
  height: auto;
  margin: 6px 0;
  z-index: 3;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: all 0.3s ease;
  object-fit: contain;
}

.mw-cruz-name {
  font-family: 'Cinzel', serif;
  font-weight: 800 !important;
  color: #ffffff;
  letter-spacing: 0.5px;
  font-size: clamp(0.9rem, 1.4vw, 1.3rem);
  line-height: 1.2;
  margin: 2px 0;
}

/* ===== FUERZA ===== */
.mw-fuerza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
  margin-top: 10px;
  margin-bottom: 24px;
}

.mw-fuerza-card {
  background: #1f2d41;
  border: 1px solid #3d506e;
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.mw-fuerza-card:hover {
  transform: translateY(-4px);
  border-color: #7AA9E2;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.mw-fuerza-card.active {
  border: 2px solid #7AA9E2;
  background: linear-gradient(145deg, #253a52, #1d2e44);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.mw-fuerza-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
  filter: brightness(0.95) contrast(1.1);
}

.mw-fuerza-num {
  font-size: 21px;
  font-weight: 700;
  color: #7AA9E2;
  margin-bottom: 4px;
}

.mw-fuerza-name {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

/* ===== ADSENSE ===== */
.adsense-box {
  margin: 28px auto;
  max-width: 1000px;
  text-align: center;
  min-height: 90px;
}

/* ===== SEO CONTENT ===== */
.mw-seo-content {
  margin-top: 36px;
  background: #1e2a3a;
  border: 1px solid #3d506e;
  border-radius: 24px;
  padding: 28px 28px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.mw-seo-content h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
}

.mw-seo-content p {
  margin: 0 0 16px;
  color: #e9f0fa;
  font-size: 15px;
  line-height: 1.85;
}

.mw-seo-content ul {
  margin: 0 0 18px 18px;
  padding-left: 18px;
}

.mw-seo-content li {
  margin-bottom: 8px;
  color: #e9f0fa;
  font-size: 15px;
  line-height: 1.75;
}

/* ===== YEAR SUMMARY PROFESIONAL (CORREGIDO) ===== */
.mw-year-summary {
  display: grid;
  gap: 20px;
  margin: 32px 0 24px;
}

/* ESCRITORIO: 3 cajas en fila */
.mw-year-summary.mw-year-summary--4 {
  grid-template-columns: repeat(3, 1fr);
}

/* La cuarta caja se coloca automáticamente en la siguiente fila */
.mw-year-summary.mw-year-summary--4 .mw-year-box:nth-child(4) {
  grid-column: 1 / -1;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.mw-year-box {
  background: #1e2a3a;
  border: 1px solid #3d506e;
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.5);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mw-year-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7AA9E2, #B8D4FF, #7AA9E2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mw-year-box:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.7);
}

.mw-year-box:hover::before {
  opacity: 1;
}

.mw-year-box-title {
  margin: 0 0 14px;
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

.mw-year-box-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7AA9E2, transparent);
  transition: width 0.3s ease;
}

.mw-year-box:hover .mw-year-box-title::after {
  width: 70px;
}

.mw-year-box-value {
  font-size: 28px;
  font-weight: 800;
  color: #7AA9E2;
  line-height: 1.3;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  word-break: break-word;
}

.mw-year-box:hover .mw-year-box-value {
  color: #B8D4FF;
  transform: scale(1.02);
}

.mw-year-box:first-child {
  background: linear-gradient(145deg, #25364f, #1a273b);
  border-color: #7AA9E2;
}

.mw-year-box:first-child .mw-year-box-value {
  font-size: 32px;
  color: #B8D4FF;
}

/* ===== RESPONSIVE GENERAL ===== */
@media (max-width: 992px) {
  .mw-slider-section {
    height: 450px;
  }
}

@media (max-width: 768px) {
  .mw-wrap {
    padding: 20px 12px 30px;
  }

  .mw-date-form-section + .mw-wrap {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .mw-slider-full {
    padding: 0;
  }

  .mw-slide-content {
    padding: 0 20px;
  }

  .mw-hero {
    margin-left: -12px;
    margin-right: -12px;
    border-radius: 0;
    border: none;
    width: calc(100% + 24px);
    max-width: none;
  }

  .mw-hero::before {
    display: none;
  }

  .mw-panel {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-top: 20px;
    gap: 20px;
  }

  .mw-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px;
  }

  .mw-tab {
    font-size: 12px;
    padding: 12px 4px;
    border: 1px solid #3d506e;
    min-width: 0;
  }

  .mw-card-section {
    padding: 18px 20px;
  }

  .mw-center {
    gap: 10px;
  }

  .mw-num {
    width: 100px;
    height: 100px;
  }

  .mw-num img {
    width: 100px;
    height: 100px;
  }

  .mw-glyph {
    width: 120px;
    height: 120px;
  }

  .mw-glyph img {
    width: 120px;
    height: 120px;
  }

  .mw-name {
    font-size: 28px;
    margin: 15px 0 10px;
  }

  .mw-grid {
    max-width: 100%;
    width: 100%;
    aspect-ratio: auto;
    padding: 8px;
    gap: 8px;
    grid-template-columns: 1fr 1.2fr 1fr;
    grid-template-rows: auto auto auto;
    margin: 1rem auto;
  }

  .mw-grid::before {
    left: 5%;
    right: 5%;
  }

  .mw-grid::after {
    top: 5%;
    bottom: 5%;
  }

  .mw-cruz-card {
    height: auto;
    min-height: 100px;
    padding: 8px 4px;
    box-shadow: 0 4px 0 #1e2f44, 0 6px 12px rgba(0, 0, 0, 0.4);
  }

  .mw-cruz-card:nth-child(1) {
    min-height: 120px;
  }

  .mw-cruz-img {
    width: 45px !important;
    margin: 4px 0;
  }

  .mw-cruz-card:nth-child(1) .mw-cruz-img {
    width: 75px !important;
  }

  .mw-cruz-pos {
    font-size: 0.6rem;
    padding: 4px 6px;
    margin: 2px 0 !important;
  }

  .mw-cruz-card:nth-child(1) .mw-cruz-pos {
    font-size: 0.7rem;
    padding: 6px 8px;
  }

  .mw-cruz-name {
    font-size: 0.85rem;
  }

  .mw-cruz-card:nth-child(1) .mw-cruz-name {
    font-size: 1.1rem !important;
  }

  .mw-fuerza-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .mw-fuerza-card {
    padding: 14px 10px;
  }

  .mw-fuerza-img {
    width: 72px;
    height: 72px;
  }

  .mw-fuerza-name {
    font-size: 18px;
  }

  .mw-h3 {
    text-align: center;
    width: 100%;
  }

  .adsense-box {
    margin: 20px auto;
    min-height: 70px;
  }

  .mw-seo-content {
    padding: 22px 18px 20px;
    border-radius: 18px;
  }

  .mw-seo-content h2 {
    font-size: 22px;
  }

  .mw-seo-content p,
  .mw-seo-content li {
    font-size: 14px;
  }

  .mw-textp {
    font-size: 16px;
  }

  /* ===== YEAR SUMMARY EN MÓVIL ===== */
  .mw-year-summary {
    gap: 12px;
    margin: 24px 0 20px;
  }

  /* MÓVIL: 2 columnas para todas las cajas */
  .mw-year-summary.mw-year-summary--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* La cuarta caja ya no ocupa todo el ancho, sigue las 2 columnas */
  .mw-year-summary.mw-year-summary--4 .mw-year-box:nth-child(4) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }

  .mw-year-box {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .mw-year-box-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .mw-year-box-value {
    font-size: 24px;
  }

  .mw-year-box:first-child .mw-year-box-value {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .mw-name {
    font-size: 24px;
  }
  
  .mw-num {
    width: 80px;
    height: 80px;
  }
  
  .mw-num img {
    width: 80px;
    height: 80px;
  }
  
  .mw-glyph {
    width: 100px;
    height: 100px;
  }
  
  .mw-glyph img {
    width: 100px;
    height: 100px;
  }
  
  .mw-year-box {
    padding: 18px 16px;
    border-radius: 18px;
  }
  
  .mw-year-box-title {
    font-size: 16px;
  }
  
  .mw-year-box-value {
    font-size: 22px;
  }
  
  .mw-year-box:first-child .mw-year-box-value {
    font-size: 26px;
  }
}

@media (min-width: 1024px) {
  .mw-slider-full {
    padding: 0;
  }

  .mw-slider-section {
    height: 520px;
  }

  .mw-card-section {
    padding: 28px 32px;
  }

  .mw-h3 {
    font-size: 20px;
  }

  .mw-date-form {
    grid-template-columns: 110px 150px 120px 170px;
    gap: 10px;
  }

  .mw-date-field select,
  .mw-date-field input {
    height: 46px;
    font-size: 16px;
  }

  .mw-date-submit button {
    height: 46px;
    font-size: 16px;
  }

  .mw-date-field label,
  .mw-date-submit label {
    font-size: 13px;
  }
}

/* ===== OCULTAR SLIDER SOLO EN MÓVIL ===== */
@media (max-width: 768px) {
  .mw-slider-full {
    display: none !important;
  }
}

/* ===== NUEVOS ESTILOS - BOTONES INFERIORES ===== */
.mw-actions-bottom{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin:28px auto 10px;
}

/* --- ESTILOS UNIFICADOS PARA .mw-share Y .mw-download-btn (INICIO) --- */
.mw-share,
.mw-download-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:190px;
  min-height:50px;
  padding:0 26px;
  border:none;
  border-radius:50px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:all .3s ease;
  letter-spacing:.3px;
  color:#ffffff;
  background:linear-gradient(135deg, #1e4f7a, #0f2b48);
  box-shadow:0 8px 18px rgba(0, 0, 0, 0.4);
}

.mw-share:hover,
.mw-download-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 15px 25px rgba(0, 0, 0, 0.5);
  filter:brightness(1.1);
}

.mw-share:active,
.mw-download-btn:active{
  transform:translateY(0);
}
/* --- ESTILOS UNIFICADOS (FIN) --- */

/* ===== MODAL POPUP ESTILO REFERENCIA ===== */
.mw-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 10050;
}

.mw-modal{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 10060;
}

.mw-modal.active,
.mw-modal-overlay.active{
  opacity: 1;
  visibility: visible;
}

.mw-modal-dialog{
  width: min(1080px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: linear-gradient(180deg, #162236 0%, #0e1a2b 100%);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 184, 60, 0.22);
  position: relative;
  padding: 26px 22px 22px;
  border: 1px solid rgba(255, 184, 60, 0.18);
}

/* Scroll interno elegante */
.mw-modal-dialog::-webkit-scrollbar{
  width: 10px;
}

.mw-modal-dialog::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
}

.mw-modal-dialog::-webkit-scrollbar-thumb{
  background: rgba(255, 184, 60, 0.45);
  border-radius: 10px;
}

.mw-modal-dialog::-webkit-scrollbar-thumb:hover{
  background: rgba(255, 184, 60, 0.62);
}

/* Botón cerrar */
.mw-modal-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 184, 60, 0.16);
  border-radius: 50%;
  background: rgba(255, 184, 60, 0.10);
  color: #ffbf3f;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
  z-index: 20;
}

.mw-modal-close:hover{
  transform: scale(1.06);
  background: rgba(255, 184, 60, 0.18);
  color: #ffd36e;
  box-shadow: 0 12px 24px rgba(0,0,0,0.34);
}

/* ESTILOS UNIFICADOS PARA .mw-modal-actions-top */
.mw-modal-actions-top{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin:0 56px 18px 0;
}

/* Contenido principal del popup */
.mw-modal-content{
  padding-top: 0;
}



.mw-download-head{
  text-align: center;
  margin-bottom: 22px;
}

.mw-download-title{
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: #ffbf3f;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.30);
}

/* ===== MW-DOWNLOAD-DATE MEJORADO ===== */
.mw-download-date{
  display: inline-block;
  background: rgba(10, 20, 40, 0.7);
  color: #ffd78c;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 40px;
  border: 1px solid rgba(255, 184, 60, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  letter-spacing: 0.3px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.mw-download-main{
  display:none !important;
}

.mw-download-num,
.mw-download-glifo{
  display:grid;
  place-items:center;
}

/* FILTRO PARA VOLVER BLANCAS LAS IMÁGENES DE NÚMEROS EN EL POPUP */
.mw-download-num img{
  width:120px;
  height:120px;
  object-fit:contain;
  display:block;
  filter: brightness(0) invert(1);
}

.mw-download-glifo img{
  width:150px;
  height:150px;
  object-fit:contain;
  display:block;
  filter: brightness(0.95) drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

/* Imagen principal */
.mw-download-day-image{
  display: block;
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
}

.mw-download-day-image img{
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 184, 60, 0.16);
  box-shadow: 0 14px 28px rgba(0,0,0,0.28);
}

/* ===== INICIO DE LOS CAMBIOS SOLICITADOS ===== */
.mw-download-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:20px;
  margin-top:8px;
  margin-bottom:22px;
  align-items:start;
}

.mw-download-col{
  display:flex;
  flex-direction:column;
  gap:20px;
  min-width:0;
}

.mw-download-section{
  margin:0;
}

.mw-download-section-cruz{
  margin-top:8px;
}
/* ===== FIN DE LOS CAMBIOS SOLICITADOS ===== */

/* Tarjetas */
.mw-download-section{
  background: linear-gradient(180deg, #1f2f45 0%, #162436 100%);
  border: 1px solid rgba(255, 184, 60, 0.14);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.20);
}

.mw-download-section h3{
  margin: 0 0 12px;
  color: #ffbf3f;
  font-family: 'Cinzel', serif;
  font-size: 17px;
  line-height: 1.3;
  border-bottom: 1px solid rgba(255, 184, 60, 0.22);
  padding-bottom: 8px;
  letter-spacing: .5px;
}

.mw-download-section p{
  margin: 0;
  line-height: 1.75;
  font-size: 15px;
  color: #f5ead2;
  word-break: break-word;
}

/* ===== CRUZ MAYA DEL POPUP ===== */
.mw-download-cruz{
  position: relative;
  width: 100%;
  max-width: min(760px, 100%);
  margin: 18px auto 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, minmax(170px, auto));
  align-items: center;
  justify-items: center;
  gap: 18px;
  padding: 18px 18px 28px;
}

.mw-download-cruz::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,184,60,.18),
    rgba(255,184,60,.55),
    rgba(255,184,60,.18),
    transparent
  );
  transform: translateY(-50%);
  z-index: 0;
}

.mw-download-cruz::after{
  content: "";
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: 50%;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255,184,60,.18),
    rgba(255,184,60,.55),
    rgba(255,184,60,.18),
    transparent
  );
  transform: translateX(-50%);
  z-index: 0;
}

.mw-download-cruz-item{
  width: 100%;
  max-width: 180px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #1f3045 0%, #142133 100%);
  border: 1px solid rgba(255, 184, 60, 0.14);
  border-radius: 16px;
  padding: 16px 12px 14px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.24);
}

.mw-download-cruz-item img{
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.22));
}

.mw-download-cruz-pos{
  min-width: 122px;
  max-width: 100%;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff4d9;
  background: linear-gradient(180deg, #2f4e84 0%, #1b3157 100%);
  border: 1px solid rgba(255, 184, 60, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
  display: inline-block;
  margin: 2px 0 10px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.mw-download-cruz-name{
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: #ffbf3f;
  font-weight: 800;
  line-height: 1.2;
}

/* POSICIONES DE LA CRUZ */
.mw-download-cruz-item:nth-child(1){
  grid-column: 2;
  grid-row: 2;
  max-width: 190px;
  min-height: 220px;
}

.mw-download-cruz-item:nth-child(2){
  grid-column: 1;
  grid-row: 2;
}

.mw-download-cruz-item:nth-child(3){
  grid-column: 3;
  grid-row: 2;
}

.mw-download-cruz-item:nth-child(4){
  grid-column: 2;
  grid-row: 1;
}

.mw-download-cruz-item:nth-child(5){
  grid-column: 2;
  grid-row: 3;
}

/* CENTRO MÁS GRANDE */
.mw-download-cruz-item:nth-child(1) img{
  width: 112px;
  height: 112px;
}

.mw-download-cruz-item:nth-child(1) .mw-download-cruz-pos{
  min-width: 140px;
  background: linear-gradient(180deg, #355c9f 0%, #1e3766 100%);
}

.mw-download-cruz-item:nth-child(1) .mw-download-cruz-name{
  font-size: 22px;
}

/* ===== BOTÓN PNG - DORADO PROFESIONAL ===== */
.mw-export-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border:none;
  border-radius:12px;
  color:#1c1404;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:all .25s ease;
  letter-spacing:.2px;
  margin:0 auto;
  text-transform: uppercase;
}

.mw-export-btn-png{
  background: linear-gradient(180deg, #ffb21f 0%, #e38b00 100%);
  box-shadow: 0 10px 20px rgba(0,0,0,0.28);
}

.mw-export-btn-png:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 24px rgba(0,0,0,0.34);
}

/* ===== AJUSTES PARA EXPORTACIÓN ===== */
#mwDownloadSheet{
  width:100%;
  max-width: 100%;
}

#mwDownloadSheet .mw-download-day-image img{
  width: 100%;
  height: auto;
  object-fit: contain;
}

#mwDownloadSheet .mw-download-section,
#mwDownloadSheet .mw-download-cruz-item{
  overflow: visible;
}

#mwDownloadSheet img{
  image-rendering:auto;
}

/* ===== NUEVO: ESTILOS PARA BOTONES INFERIORES DEL MODAL ===== */
.mw-modal-actions-bottom{
  display:flex;
  justify-content:center;
  align-items:center;
  margin-top:24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 184, 60, 0.12);
}

/* ===== NUEVAS REGLAS GLOBALES PARA EL MODAL (SOLUCIÓN) ===== */
.mw-modal{
  overscroll-behavior: contain;
}

.mw-modal-dialog{
  box-sizing: border-box;
}

/* ===== RESPONSIVE PARA MODAL Y BOTONES ===== */
@media (max-width: 768px){
  .mw-actions-bottom{
    gap:10px;
    margin:22px auto 8px;
  }

  .mw-share,
  .mw-download-btn{
    width:100%;
    max-width:320px;
  }

  /* --- INICIO CAMBIOS SOLICITUD (768px) --- */
  .mw-modal{
    padding:
      max(14px, env(safe-area-inset-top))
      12px
      max(14px, env(safe-area-inset-bottom));
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mw-modal-dialog{
    width: 100%;
    max-height: none;
    margin: 0 auto;
    padding: 20px 14px 18px;
    border-radius: 18px;
  }
  /* --- FIN CAMBIOS SOLICITUD (768px) --- */

  .mw-modal-actions-top{
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 0 14px 0;
    gap:10px;
    width:100%;
  }

  .mw-export-btn{
    width:auto;
    min-width:160px;
    min-height:42px;
    margin:0 auto;
  }

  .mw-download-sheet{
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
  }

  .mw-download-grid{
    grid-template-columns:1fr;
  }

  /* ===== INICIO DE LOS CAMBIOS SOLICITUD EN MEDIA QUERY ===== */
  .mw-download-col{
    gap:16px;
  }
  /* ===== FIN DE LOS CAMBIOS SOLICITUD EN MEDIA QUERY ===== */

  .mw-download-main{
    gap:12px;
    padding:14px 10px;
  }

  .mw-download-num img{
    width:90px;
    height:90px;
  }

  .mw-download-glifo img{
    width:110px;
    height:110px;
  }

  .mw-download-section{
    padding:16px 16px;
  }

  .mw-download-section h3{
    font-size:16px;
  }

  .mw-download-section p{
    font-size:14px;
  }

  .mw-download-day-image{
    margin:0 0 20px;
  }
  
  .mw-download-day-image img{
    width:100%;
    max-width:100%;
    border-radius:16px;
  }

  /* CRUZ EN TABLET */
  .mw-download-cruz{
    max-width:100%;
    gap:12px;
    padding:10px 8px 18px;
    grid-template-rows:repeat(3, minmax(120px, auto));
  }

  .mw-download-cruz::before{
    left:8%;
    right:8%;
  }

  .mw-download-cruz::after{
    top:8%;
    bottom:8%;
  }

  .mw-download-cruz-item{
    max-width:140px;
    min-height:150px;
    padding:12px 8px 10px;
    border-radius:14px;
  }

  .mw-download-cruz-item img{
    width:64px;
    height:64px;
    margin-bottom:8px;
  }

  .mw-download-cruz-pos{
    min-width:95px;
    font-size:10px;
    padding:5px 10px;
    margin-bottom:8px;
  }

  .mw-download-cruz-name{
    font-size:15px;
  }

  .mw-download-cruz-item:nth-child(1){
    max-width:150px;
    min-height:170px;
  }

  .mw-download-cruz-item:nth-child(1) img{
    width:82px;
    height:82px;
  }

  .mw-download-cruz-item:nth-child(1) .mw-download-cruz-pos{
    min-width:108px;
  }

  .mw-download-cruz-item:nth-child(1) .mw-download-cruz-name{
    font-size:18px;
  }
}

@media (max-width: 480px){
  .mw-name {
    font-size: 24px;
  }
  
  .mw-num {
    width: 80px;
    height: 80px;
  }
  
  .mw-num img {
    width: 80px;
    height: 80px;
  }
  
  .mw-glyph {
    width: 100px;
    height: 100px;
  }
  
  .mw-glyph img {
    width: 100px;
    height: 100px;
  }

  /* --- INICIO CAMBIOS SOLICITUD (480px) --- */
  .mw-modal{
    padding:
      max(16px, env(safe-area-inset-top))
      10px
      max(16px, env(safe-area-inset-bottom));
  }

  .mw-modal-dialog{
    width: 100%;
    max-height: none;
    margin: 0 auto;
    padding: 18px 12px 16px;
  }
  /* --- FIN CAMBIOS SOLICITUD (480px) --- */

  .mw-modal-close{
    top:12px;
    right:12px;
    width:38px;
    height:38px;
    font-size:22px;
  }

  .mw-export-btn{
    min-width:140px;
    min-height:38px;
    font-size:13px;
    padding:0 14px;
  }

  /* CRUZ EN MÓVIL */
  .mw-download-cruz{
    width:100%;
    max-width:100%;
    margin:12px auto 0;
    padding:8px 0 12px;
    gap:6px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 1fr);
    grid-template-rows:repeat(3, auto);
    overflow:hidden;
  }

  .mw-download-cruz::before{
    left:10%;
    right:10%;
  }

  .mw-download-cruz::after{
    top:10%;
    bottom:10%;
  }

  .mw-download-cruz-item{
    width:100%;
    max-width:none;
    min-width:0;
    min-height:118px;
    padding:8px 4px 7px;
    border-radius:12px;
  }

  .mw-download-cruz-item img{
    width:48px;
    height:48px;
    margin-bottom:6px;
  }

  .mw-download-cruz-pos{
    min-width:0;
    width:auto;
    max-width:100%;
    font-size:8px;
    padding:4px 7px;
    margin:2px 0 6px;
  }

  .mw-download-cruz-name{
    font-size:12px;
    line-height:1.15;
    word-break:break-word;
  }

  .mw-download-cruz-item:nth-child(1){
    max-width:none;
    min-height:132px;
  }

  .mw-download-cruz-item:nth-child(1) img{
    width:62px;
    height:62px;
  }

  .mw-download-cruz-item:nth-child(1) .mw-download-cruz-pos{
    min-width:0;
    max-width:100%;
  }

  .mw-download-cruz-item:nth-child(1) .mw-download-cruz-name{
    font-size:15px;
  }

  .mw-download-section{
    padding:14px 10px;
    overflow:hidden;
  }
}

/* ===== ASEGURAR CLIC EN BOTONES INFERIORES ===== */
.mw-actions-bottom{
  position: relative;
  z-index: 50;
}

.mw-share,
.mw-download-btn{
  position: relative;
  z-index: 60;
  pointer-events: auto;
}

/* ===== EVITAR QUE EL MODAL CERRADO BLOQUEE CLICS ===== */
.mw-modal,
.mw-modal-overlay{
  pointer-events: none;
}

.mw-modal.active,
.mw-modal-overlay.active{
  pointer-events: auto;
}

/* ===== CAPAS NORMALES POR DEBAJO DE LOS BOTONES ===== */
.adsense-box,
.mw-seo-content,
.mw-year-summary,
.mw-panel,
.mw-hero{
  position: relative;
  z-index: 1;
}


.mw-export-btn svg{
  width:20px;
  height:20px;
  margin-right:8px;
  flex-shrink:0;
}


.mw-share svg,
.mw-download-btn svg{
  width:18px;
  height:18px;
  flex-shrink:0;
  display:block;
}

.mw-share,
.mw-download-btn{
  gap:10px;
}