@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&family=Cinzel:wght@700;800;900&family=Poppins:wght@400;500;600;700;800;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  --font-maya-display: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --font-menu: boucherie-flared, sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-body-size: 17px;
  --font-body-line-height: 1.35;
  --color-fondo: #121210;
  --color-oro: #E5B94E;
  --color-oro-oscuro: #B88A36;
  --color-texto: #F5F5F5;
  --color-gris: #AAAAAA;
  --color-rojo: #D33636;
  --color-naranja: #F57C00;

  --wheel-bg: #EAE0C8;
  --wheel-left: #6f4b1f;
  --wheel-right: #8a6732;

  --line-gray: #7c7c7c;
  --gold: #E5B94E;
  --lens-color: #E5B94E;

  --solar-card-bg: #233754;
  --solar-card-bg-2: #1d2f49;
  --solar-card-border: #6ca9e8;
  --solar-card-shadow: 0 10px 30px rgba(0, 0, 0, .30);
  --solar-text-soft: #dce8f7;
  --solar-text-strong: #9fc6ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--color-texto);
  font-family: var(--font-body);
  font-size: var(--font-body-size);
  line-height: var(--font-body-line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: #0a0a08;
  background: 
    radial-gradient(ellipse at center bottom, #000000 0%, #000000 25%, rgba(0, 0, 0, 0.9) 40%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.05) 85%, transparent 100%),
    url('../img/ruedas/fondonawal.avif');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
}

.maya-app {
  min-height: 100vh;
  padding: 58px 20px 26px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Segoe UI', 'Inter', 'Roboto', Tahoma, sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  width: 100%;
  min-height: 64px;
  padding: 6px clamp(22px, 5vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(229, 185, 78, 0.46);
  background:
    linear-gradient(180deg, rgba(8, 27, 48, 0.98), rgba(3, 12, 24, 0.98));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.38),
    inset 0 -1px 0 rgba(255, 232, 154, 0.08);
}

@media (min-width: 861px) {
  .site-header {
    border-bottom: none;
    background: #1b2945;
  }

  .desktop-menu a::after {
    display: none;
  }
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-logo img {
  width: clamp(58px, 5.4vw, 76px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.42));
}

.today-nawal {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-right: 1px solid rgba(229, 185, 78, 0.48);
  font-family: var(--font-menu);
}

.today-nawal-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 185, 78, 0.72);
  border-radius: 999px;
  background: #f8f2db;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.28),
    inset 0 0 0 2px rgba(8, 21, 34, 0.08);
}

.today-nawal-icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
}

.today-nawal-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  color: #ffffff;
  line-height: 1;
}

.today-nawal-text span {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 3px 8px 2px;
  border-radius: 999px;
  color: #081522;
  background: linear-gradient(180deg, #ffe89a, var(--color-oro));
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-shadow: none;
}

.today-nawal-text strong {
  max-width: 150px;
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 16px);
  font-family: var(--font-menu);
}

.desktop-menu a {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #f8f2db;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-menu a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-oro);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.desktop-menu a.active,
.desktop-menu a:hover,
.desktop-menu a:focus-visible {
  color: var(--color-oro);
  border-color: rgba(229, 185, 78, 0.62);
  background: rgba(8, 17, 28, 0.72);
  transform: translateY(-1px);
}

.desktop-menu a.active::after,
.desktop-menu a:hover::after,
.desktop-menu a:focus-visible::after {
  transform: scaleX(1);
}

.desktop-menu a.donate-link,
.mobile-menu-links a.donate-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #081522;
  border-color: rgba(214, 163, 58, 0.95);
  font-weight: 800;
  background:
    linear-gradient(180deg, #edc85a 0%, #d6a33a 58%, #9f6518 100%);
  text-shadow: none;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.desktop-menu a.donate-link::before,
.mobile-menu-links a.donate-link::before,
.desktop-menu a.account-link::before,
.mobile-menu-links a.account-link::before {
  content: '';
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.desktop-menu a.donate-link::before,
.mobile-menu-links a.donate-link::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M3.5 1.5h9a1 1 0 0 1 1 1v2.2c0 .4-.2.8-.5 1l-4.5 3.4a.8.8 0 0 1-1 0L3 5.7a1.3 1.3 0 0 1-.5-1V2.5a1 1 0 0 1 1-1m1 1v2.1l3.5 2.7 3.5-2.7V2.5zM2 10.2h12v1.3H2zm1 2h10v1.3H3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M3.5 1.5h9a1 1 0 0 1 1 1v2.2c0 .4-.2.8-.5 1l-4.5 3.4a.8.8 0 0 1-1 0L3 5.7a1.3 1.3 0 0 1-.5-1V2.5a1 1 0 0 1 1-1m1 1v2.1l3.5 2.7 3.5-2.7V2.5zM2 10.2h12v1.3H2zm1 2h10v1.3H3z'/%3E%3C/svg%3E");
}

.desktop-menu a.donate-link:hover,
.desktop-menu a.donate-link:focus-visible,
.mobile-menu-links a.donate-link:hover,
.mobile-menu-links a.donate-link:focus-visible {
  color: #081522;
  background:
    linear-gradient(180deg, #f4d36b 0%, #ddb044 58%, #ad741f 100%);
}

.desktop-menu a.account-link,
.mobile-menu-links a.account-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #061923;
  border-color: rgba(123, 220, 244, 0.95);
  font-weight: 800;
  background: linear-gradient(180deg, #b9f0ff 0%, #70cfe9 58%, #2b8eae 100%);
  text-shadow: none;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.desktop-menu a.account-link::before,
.mobile-menu-links a.account-link::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6m0-5a2 2 0 1 1 0 4 2 2 0 0 1 0-4M2.5 14.5c.2-2.5 2.3-4 5.5-4s5.3 1.5 5.5 4h-1c-.2-1.8-1.7-3-4.5-3s-4.3 1.2-4.5 3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6m0-5a2 2 0 1 1 0 4 2 2 0 0 1 0-4M2.5 14.5c.2-2.5 2.3-4 5.5-4s5.3 1.5 5.5 4h-1c-.2-1.8-1.7-3-4.5-3s-4.3 1.2-4.5 3z'/%3E%3C/svg%3E");
}

.desktop-menu a.account-link:hover,
.desktop-menu a.account-link:focus-visible,
.mobile-menu-links a.account-link:hover,
.mobile-menu-links a.account-link:focus-visible {
  color: #061923;
  border-color: #d9f8ff;
  background: linear-gradient(180deg, #d9f8ff 0%, #91e0f2 58%, #3ba4c3 100%);
}

.menu-toggle {
  width: 50px;
  height: 50px;
  display: none;
  place-items: center;
  gap: 5px;
  padding: 12px;
  border: 1.5px solid rgba(245, 215, 138, 0.92);
  border-radius: 999px;
  color: var(--color-oro);
  background:
    linear-gradient(180deg, rgba(18, 47, 74, 0.98), rgba(4, 18, 34, 0.98));
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 22px rgba(0, 0, 0, 0.34);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: #ffe89a;
  color: #ffe89a;
  transform: translateY(-1px);
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.mobile-menu-panel {
  position: relative;
  width: min(420px, 100%);
  min-height: 100%;
  padding: 18px 22px 30px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(229, 185, 78, 0.72);
  background:
    linear-gradient(180deg, rgba(5, 20, 37, 0.86), rgba(2, 9, 18, 0.96)),
    linear-gradient(180deg, rgba(9, 31, 55, 0.92), rgba(1, 8, 17, 0.98));
  box-shadow: -18px 0 42px rgba(0, 0, 0, 0.48);
  overflow-y: auto;
}

.mobile-menu-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(229, 185, 78, 0.16), transparent 132px),
    radial-gradient(circle at 96% 16%, rgba(229, 185, 78, 0.18), transparent 180px);
}

.mobile-menu-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('../img/ruedas/fondonawal.avif') center / cover no-repeat;
  opacity: 0.22;
  mix-blend-mode: screen;
}

.mobile-menu-head {
  position: relative;
  z-index: 1;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(229, 185, 78, 0.28);
}

.mobile-menu-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-close {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  position: relative;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(245, 215, 138, 0.9);
  border-radius: 999px;
  color: var(--color-oro);
  background:
    linear-gradient(180deg, rgba(18, 47, 74, 0.98), rgba(4, 18, 34, 0.98));
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.mobile-menu-close span {
  grid-area: 1 / 1;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu-close span:first-child {
  transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu-logo {
  display: inline-flex;
  align-items: center;
}

.mobile-menu-logo img {
  width: 82px;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

.today-nawal-mobile {
  padding-right: 10px;
}

.mobile-menu-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
  font-family: var(--font-menu);
}

.mobile-menu-links a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 15px 20px;
  border: 1px solid rgba(229, 185, 78, 0.18);
  border-radius: 8px;
  color: #f8f2db;
  background:
    linear-gradient(180deg, rgba(10, 35, 58, 0.84), rgba(4, 17, 32, 0.86));
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.75);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 18px rgba(0, 0, 0, 0.22);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mobile-menu-links a.active,
.mobile-menu-links a:hover,
.mobile-menu-links a:focus-visible {
  color: #081522;
  border-color: rgba(255, 232, 154, 0.95);
  background: linear-gradient(180deg, #ffe89a, var(--color-oro));
  text-shadow: none;
  transform: translateX(-3px);
}

.mobile-menu-copy {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 32px;
  color: #ffffff;
  font-family: var(--font-menu);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.2px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 74px;
    padding: 10px 22px;
  }

  .desktop-menu {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .today-nawal {
    gap: 7px;
    padding-right: 10px;
  }

  .today-nawal-text strong {
    max-width: 132px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .site-header {
    min-height: 70px;
    padding-inline: 18px;
  }

  .site-logo img {
    width: 72px;
  }

  .site-brand {
    gap: 10px;
  }

  .menu-toggle {
    width: 48px;
    height: 48px;
  }

  .mobile-menu-panel {
    width: min(405px, calc(100% - 36px));
    padding: 16px 18px 26px;
  }

  .mobile-menu-head {
    min-height: 60px;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .mobile-menu-logo img {
    width: 76px;
  }

  .today-nawal-mobile {
    display: flex;
  }

  .today-nawal-icon {
    width: 34px;
    height: 34px;
  }

  .today-nawal-icon img {
    width: 24px;
    height: 24px;
  }

  .today-nawal-text span {
    min-height: 16px;
    font-size: 9px;
  }

  .today-nawal-text strong {
    max-width: 118px;
    font-size: 13px;
  }

  .mobile-menu-close {
    width: 44px;
    height: 44px;
  }

  .mobile-menu-links {
    gap: 11px;
  }

  .mobile-menu-links a {
    min-height: 54px;
    padding: 14px 17px;
    font-size: 17px;
  }
}

/* =======================================
   PANEL PRINCIPAL - NUEVO
   ======================================= */
.maya-panel {
  position: relative;
  width: 100%;
  max-width: 980px;
  min-width: 0;
  margin: 0 auto;
  padding: 44px 48px 38px;
  overflow: hidden;
  border: 1px solid rgba(229, 185, 78, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(3, 14, 28, 0.94), rgba(3, 11, 22, 0.90)),
    rgba(2, 7, 16, 0.92);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(255, 222, 143, 0.14),
    inset 0 0 56px rgba(2, 18, 36, 0.78);
}

.maya-panel::before,
.maya-panel::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(229, 185, 78, 0.62);
  border-radius: 8px;
  pointer-events: none;
}

.maya-panel::after {
  inset: 13px;
  border-color: rgba(229, 185, 78, 0.28);
}

/* =======================================
   FORMULARIO
   ======================================= */
.controls-bar {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 26px;
  border-bottom: none;
  z-index: 1;
}

/* Línea elegante más extensa */
.controls-bar::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(760px, 94%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(229, 185, 78, 0.10) 8%,
    rgba(245, 215, 138, 0.95) 50%,
    rgba(229, 185, 78, 0.10) 92%,
    transparent 100%
  );
  border-radius: 999px;
  box-shadow:
    0 0 12px rgba(229, 185, 78, 0.30),
    0 0 24px rgba(229, 185, 78, 0.12);
}

.controls-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  border: 1px solid var(--color-oro);
  background: #061326;
  box-shadow: 0 0 12px rgba(229, 185, 78, 0.32);
}

.form-title {
  text-align: center;
  color: var(--color-oro);
  font-size: clamp(34px, 5.2vw, 52px);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 18px;
  text-transform: uppercase;
  font-family: var(--font-maya-display);
  line-height: 1.05;
  text-shadow:
    0 1px 0 #fff3bd,
    0 2px 0 #9f6f19,
    0 12px 22px rgba(0, 0, 0, 0.55);
}

.controls-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.form-row {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: nowrap;
}

.form-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.form-field label {
  color: var(--color-oro);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: uppercase;
  background: transparent;
  padding: 0;
  border-radius: 0;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.55);
}

.form-field select,
.form-field input {
  background:
    linear-gradient(180deg, rgba(3, 15, 31, 0.98), rgba(2, 8, 18, 0.98));
  border: 1px solid rgba(229, 185, 78, 0.76);
  color: var(--color-texto);
  padding: 14px 42px 14px 18px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  min-width: 142px;
  min-height: 54px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 20px rgba(0, 0, 0, 0.22);
}

.form-field select {
  min-width: 190px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23E5B94E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px;
}

.form-field input {
  width: 150px;
}

#selYear {
  padding-left: 18px;
  padding-right: 18px;
  line-height: 1;
}

.btn-calcular {
  background:
    linear-gradient(180deg, #ffdf76 0%, #d89d2e 55%, #a86c14 100%);
  color: #05101f;
  padding: 15px 28px;
  font-size: 17px;
  font-weight: 800;
  border-radius: 8px;
  border: 1px solid rgba(255, 232, 154, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  min-height: 54px;
  height: 54px;
}

.btn-calcular:hover {
  background: linear-gradient(135deg, #f5cd6e, #d49f2e);
  transform: scale(1.02);
}

.nav-buttons-group {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2px;
}

.nav-buttons-group .btn {
  padding: 13px 34px;
  border: 1px solid rgba(229, 185, 78, 0.78);
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
  min-width: 210px;
  min-height: 50px;
  background:
    linear-gradient(180deg, rgba(4, 17, 34, 0.98), rgba(2, 8, 18, 0.98));
  backdrop-filter: blur(4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 20px rgba(0, 0, 0, 0.24);
}

.btn-anterior {
  background: linear-gradient(180deg, rgba(4, 17, 34, 0.98), rgba(2, 8, 18, 0.98));
}

.btn-anterior:hover {
  background: linear-gradient(180deg, rgba(12, 30, 54, 0.98), rgba(4, 15, 30, 0.98));
  transform: translateY(-2px);
}

.btn-hoy {
  background: linear-gradient(180deg, rgba(4, 17, 34, 0.98), rgba(2, 8, 18, 0.98));
}

.btn-hoy:hover {
  background: linear-gradient(180deg, rgba(12, 30, 54, 0.98), rgba(4, 15, 30, 0.98));
  transform: translateY(-2px);
}

.btn-siguiente {
  background: linear-gradient(180deg, rgba(4, 17, 34, 0.98), rgba(2, 8, 18, 0.98));
}

.btn-siguiente:hover {
  background: linear-gradient(180deg, rgba(12, 30, 54, 0.98), rgba(4, 15, 30, 0.98));
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.96);
}

/* =======================================
   FECHAS MAYAS - DISEÑO PREMIUM
   ======================================= */

.fecha-maya-display {
  position: relative;
  display: block;
  width: min(820px, 100%);
  max-width: 100%;
  margin: 10px auto 0;
  padding: 30px 26px 56px;
  text-align: center;
  font-size: clamp(38px, 5.6vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 2px;
  text-transform: uppercase;
  background-image: linear-gradient(
    180deg,
    #fff6c7 0%,
    #f6d56f 34%,
    #c98e28 70%,
    #7b4e10 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #e5b94e;
  text-shadow:
    0 2px 0 rgba(74, 45, 5, 0.52),
    0 10px 24px rgba(0,0,0,0.72);
  filter: none;
  z-index: 1;
  overflow: visible;
}

.fecha-maya-display::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 8px;
  background:
    linear-gradient(
      180deg,
      rgba(5, 18, 35, 0.90),
      rgba(1, 7, 16, 0.95)
    ),
    rgba(0,0,0,0.42);
  border: 1px solid rgba(229, 185, 78, 0.86);
  box-shadow:
    0 14px 34px rgba(0,0,0,0.35),
    inset 0 0 0 5px rgba(1, 8, 18, 0.70),
    inset 0 0 0 6px rgba(229, 185, 78, 0.42),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
}

.fecha-maya-display::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: min(270px, 52%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(245, 215, 138, 0.95), transparent);
  box-shadow: none;
}

.fecha-larga-display {
  display: block;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: -42px auto 26px;
  padding: 0 22px;
  text-align: center;
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 2px;
  color: #f8fafc;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
}

#mensajeError {
  display: none;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 14px auto 0;
  padding: 11px 20px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffe4e4;
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      rgba(127,29,29,0.82),
      rgba(69,10,10,0.78)
    );
  border: 1px solid rgba(248,113,113,0.25);
  box-shadow: 0 8px 20px rgba(127,29,29,0.20);
  backdrop-filter: blur(6px);
}

#mensajeError:not([hidden]) {
  display: block;
}

/* MÓVIL */
@media (max-width: 480px) {
  .fecha-maya-display {
    padding: 22px 18px 48px;
    letter-spacing: 1.2px;
  }
  .fecha-larga-display,
  #mensajeError {
    border-radius: 24px;
  }

  /* Formulario de inicio: acabado visual de la referencia */
  .controls-bar {
    width: min(900px, 100%);
    margin: 0 auto 24px;
    padding: 0;
    border: 0;
  }

  .controls-bar::before,
  .controls-bar::after {
    display: none;
  }

  .controls-wrapper {
    gap: 22px;
  }

  .form-title {
    margin: 0 auto 8px;
    color: #f7f8fb;
    font-size: clamp(32px, 4.2vw, 54px);
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  }

  .form-title span {
    color: #f7f8fb;
  }

  .form-title strong {
    color: #f5b83f;
    font-weight: 900;
  }

  .form-subtitle {
    margin: 0 0 14px;
    color: #a9c5e1;
    font-size: clamp(14px, 1.55vw, 20px);
    font-weight: 500;
    text-align: center;
  }

  .form-input-panel {
    width: 100%;
    padding: 28px 34px 26px;
    border: 1px solid rgba(48, 102, 155, 0.78);
    border-radius: 14px;
    background: rgba(3, 18, 35, 0.58);
    box-shadow:
      inset 0 1px 0 rgba(127, 185, 238, 0.06),
      0 14px 30px rgba(0, 0, 0, 0.22);
  }

  .controls-bar .form-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: end;
  }

  .controls-bar .form-field {
    align-items: stretch;
    gap: 8px;
  }

  .controls-bar .form-field label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #f6f8fb;
    font-size: 16px;
    font-weight: 800;
    text-align: left;
  }

  .form-label-icon {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .controls-bar .form-field select,
  .controls-bar .form-field input {
    min-height: 56px;
    height: 56px;
    border: 1px solid rgba(80, 132, 184, 0.52);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(35, 68, 101, 0.94), rgba(23, 49, 78, 0.98));
    color: #f8fafc;
    font-size: 20px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 16px rgba(0, 0, 0, 0.18);
  }

  .controls-bar .form-field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23f4f7fb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>"), linear-gradient(180deg, rgba(35, 68, 101, 0.94), rgba(23, 49, 78, 0.98));
    background-repeat: no-repeat;
    background-position: right 18px center, 0 0;
    background-size: 18px, auto;
  }

  .controls-bar #selYear {
    padding-left: 18px;
    padding-right: 18px;
  }

  .controls-bar .btn-calcular {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 56px;
    height: 56px;
    margin-top: 12px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(180deg, #ffc653, #eeb33f);
    color: #061a31;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .controls-bar .btn-calcular:hover {
    background: linear-gradient(180deg, #ffd36d, #f2b943);
  }

  .controls-bar .btn-calcular-icon,
  .controls-bar .btn-calcular-arrow {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .controls-bar .btn-calcular-arrow {
    margin-left: 14px;
  }

  .controls-bar .nav-buttons-group {
    width: min(650px, 100%);
    min-height: 58px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 0 auto;
    padding: 0 12px;
    border: 1px solid rgba(44, 101, 157, 0.7);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(20, 48, 78, 0.86), rgba(8, 27, 50, 0.94));
    box-shadow: inset 0 1px 0 rgba(133, 190, 242, 0.08), 0 10px 22px rgba(0, 0, 0, 0.2);
  }

  .controls-bar .nav-buttons-group .btn {
    min-width: 0;
    min-height: 56px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #b9cce0;
    font-size: 16px;
  }

  .controls-bar .nav-buttons-group .btn + .btn {
    border-left: 1px solid rgba(92, 145, 194, 0.25);
  }

  .controls-bar .nav-buttons-group .btn:hover {
    background: rgba(75, 132, 186, 0.18);
    transform: none;
  }

  @media (max-width: 768px) {
    .form-input-panel {
      padding: 22px 18px 20px;
    }

    .controls-bar .form-row {
      grid-template-columns: 1fr 1fr;
    }

    .controls-bar .btn-calcular {
      grid-column: 1 / -1;
    }
  }

  @media (max-width: 480px) {
    .form-input-panel {
      padding: 18px 12px;
    }

    .controls-bar .form-row {
      grid-template-columns: 1fr;
    }

    .controls-bar .nav-buttons-group {
      border-radius: 16px;
    }

    .controls-bar .nav-buttons-group .btn {
      min-height: 48px;
      font-size: 12px;
    }
  }
}

/* =======================================
   RUEDA SVG
   ======================================= */
.calendar-wheel-layout {
  position: relative;
  width: 100%;
  margin: 15px auto 35px;
  overflow: visible;
}

.svg-wheel-layout {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wheels-wrapper {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  overflow: hidden;
}

.svg-container {
  width: 100%;
  overflow: visible;
  display: flex;
  justify-content: center;
}

#maya-calendar {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1060px;
  margin: 0 auto;
  overflow: visible;
  touch-action: none;
  -ms-touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#maya-calendar:active {
  cursor: grabbing;
}

#maya-calendar,
#maya-calendar image,
#maya-calendar text,
#maya-calendar line,
#maya-calendar rect,
#maya-calendar circle {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#maya-calendar image {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  shape-rendering: geometricPrecision;
  image-rendering: auto;
}

#maya-calendar text {
  font-family: var(--font-body);
  paint-order: stroke fill;
  pointer-events: none;
  user-select: none;
}

.ring {
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.wheel-titles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(34px, 8vw, 120px);
  width: min(760px, 92%);
  margin: 12px auto 0;
  padding: 12px 0 4px;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
}

.wheel-titles span {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 28px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 900;
  color: var(--color-oro);
  letter-spacing: 0.9px;
  text-transform: uppercase;
  text-shadow: none;
}

.wheel-titles span::before,
.wheel-titles span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: min(82px, 28%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-oro));
  opacity: 0.75;
}

.wheel-titles span::before {
  right: calc(50% + 86px);
}

.wheel-titles span::after {
  left: calc(50% + 86px);
  transform: rotate(180deg);
}

/* =======================================
   INFO BOXES
   ======================================= */
.info-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 30px;
}

.info-card {
  background: linear-gradient(180deg, rgb(0 21 35 / 99%), rgb(0 0 0));
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  border: 0.5px solid rgb(135 188 243 / 82%);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.27),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: rgb(135 188 243 / 82%);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.info-title {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: 'Segoe UI', sans-serif;
  color: var(--color-oro);
}

.info-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 10px auto 12px;
  background: linear-gradient(90deg, transparent, var(--color-oro), transparent);
  border-radius: 999px;
}

.info-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  margin-bottom: 12px;
}

.info-footer {
  text-align: center;
  font-size: 11px;
  color: var(--solar-text-soft);
  font-weight: 500;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(108, 169, 232, 0.3);
}

.glyph-img-tzol {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.glyph-img-hab {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.glyph-svg-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
}

.glyph-svg-wrap svg {
  width: 52px;
  height: 52px;
}

.media-info-img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.media-info-card strong {
  max-width: 100%;
  font-size: 1.05rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.long-count-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
}

.long-count-icon svg {
  width: 52px;
  height: 52px;
}

/* Ícono de Cuenta Larga en blanco - FORZADO */
.long-count-icon svg,
.long-count-icon svg g,
.long-count-icon svg g g,
.long-count-icon svg path,
.long-count-icon svg * {
  fill: #ffffff !important;
  stroke: #ffffff !important;
  color: #ffffff !important;
}

#cuentaLargaTxt {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 1px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 40px;
}

/* =======================================
   AÑO SOLAR
   ======================================= */
.solar-year-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.solar-year-card {
  background: linear-gradient(145deg, var(--solar-card-bg), var(--solar-card-bg-2));
  border: 1px solid var(--solar-card-border);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: var(--solar-card-shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.solar-year-card:hover {
  transform: translateY(-3px);
  border-color: #8fcbff;
}

.solar-year-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(108, 169, 232, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.solar-year-title {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: 'Segoe UI', sans-serif;
  color: #f3eee7;
}

.solar-year-divider {
  width: 50px;
  height: 2px;
  margin: 0 auto 12px;
  background: linear-gradient(90deg, transparent, var(--solar-card-border), var(--color-oro), var(--solar-card-border), transparent);
  border-radius: 999px;
}

.solar-year-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 90px;
  text-align: center;
}

.solar-year-main-bearer {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  gap: 0;
  padding-top: 28px;
  padding-bottom: 42px;
}

.solar-year-main-count {
  flex-direction: column;
  gap: 8px;
}

.year-bearer-glyph-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 82px;
  height: 96px;
  flex: 0 0 auto;
  overflow: visible;
  margin: 0 auto;
}

.year-bearer-number-row {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 94px;
  height: 36px;
  z-index: 5;
  pointer-events: none;
}

.year-bearer-number-svg {
  width: 74px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.year-bearer-number-svg svg,
.year-bearer-number-svg-inner {
  width: 74px;
  height: 36px;
  display: block;
  overflow: visible;
}

.year-bearer-number-text {
  min-width: 1.2em;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 800;
  text-align: left;
}

.solar-year-glyph {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
  margin-top: 14px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  position: relative;
  z-index: 1;
}

.solar-year-main-text {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  pointer-events: none;
}

.solar-year-main-text span {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 100%;
  font-size: 0.8rem;
  color: var(--solar-text-soft);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.solar-year-main-text strong {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: block;
  width: 100%;
  font-size: 1.5rem;
  line-height: 1.05;
  color: var(--solar-text-strong);
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

#yearBearerSolarCountBigTxt {
  display: block;
  font-size: 2.8rem;
  line-height: 1;
  font-weight: 800;
  color: var(--solar-text-strong);
}

.solar-year-main-count span {
  font-size: 0.8rem;
  color: var(--solar-text-soft);
  font-weight: 600;
}

.year-bearer-message {
  margin: 15px 0 0;
  padding: 10px 16px;
  border-radius: 40px;
  background: rgba(229, 185, 78, 0.08);
  border: 1px solid rgba(229, 185, 78, 0.2);
  color: #f0e2b4;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
  backdrop-filter: blur(4px);
}

.solar-year-icon {
  display: block;
  margin: 0 auto 10px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.2s ease;
}

.solar-year-card-count:hover .solar-year-icon {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(229, 185, 78, 0.3));
}

/* =======================================
   TEXTOS INFERIORES DE LAS 4 CAJAS
   ======================================= */
#numeroTxt,
#tzolkinTxt,
#haabTxt,
#cuentaLargaTxt {
  font-size: 1.55rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  color: var(--color-texto) !important;
  letter-spacing: 1px;
}

#cuentaLargaTxt {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  font-family: monospace;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
}

/* =======================================
   CONVERSOR CUENTA LARGA
   ======================================= */
.long-count-page {
  padding-top: 28px;
  padding-bottom: 28px;
}

.long-count-shell {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(19, 26, 43, 0.94), rgba(12, 16, 25, 0.98));
  border: 1px solid rgba(139, 177, 235, 0.22);
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(6, 9, 16, 0.22);
  overflow: hidden;
}

.long-count-hero {
  padding: 42px 30px 18px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(161, 128, 60, 0.18), transparent 50%);
}

.long-count-kicker {
  margin: 0 0 10px;
  color: #d7b266;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
}

.long-count-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: #f3ecd9;
  font-family: 'Segoe UI', sans-serif;
}

.long-count-subtitle {
  margin: 0 auto;
  max-width: 760px;
  color: rgba(239, 234, 224, 0.82);
  font-size: 1rem;
  line-height: 1.7;
}

.long-count-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  padding: 20px 30px 8px;
}

.long-count-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.long-count-field label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d5d0c6;
  font-weight: 800;
}

.long-count-field select,
.long-count-field input {
  width: 100%;
  border: 1px solid rgba(151, 188, 229, 0.28);
  background: rgba(14, 22, 36, 0.9);
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  outline: none;
}

.long-count-field select:focus,
.long-count-field input:focus {
  border-color: rgba(214, 175, 92, 0.7);
  box-shadow: 0 0 0 3px rgba(214, 175, 92, 0.14);
}

.field-year {
  min-width: 0;
}

.long-count-button {
  min-height: 54px;
  border-radius: 14px;
  font-weight: 800;
}

.long-count-results {
  padding: 16px 30px 30px;
}

.long-count-result-card {
  background: rgba(9, 14, 22, 0.8);
  border: 1px solid rgba(138, 178, 231, 0.2);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.result-primary {
  margin-bottom: 20px;
  background: linear-gradient(180deg, rgba(30, 28, 16, 0.7), rgba(18, 16, 10, 0.8));
  border-color: rgba(214, 175, 92, 0.28);
}

.long-count-breakdown {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.long-count-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.long-count-breakdown-row:last-child {
  border-bottom: 0;
}

.long-count-breakdown-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.long-count-breakdown-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  color: #f2e7cf;
  opacity: 0.95;
}

.long-count-breakdown-glyph svg {
  display: block;
  width: 42px;
  height: 42px;
  color: #f2e7cf;
}

.long-count-breakdown-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  color: #f1efe9;
  font-weight: 700;
  white-space: nowrap;
}

.long-count-breakdown-value {
  display: inline-block;
  min-width: 1.2em;
  color: #f9f2dd;
  font-weight: 800;
}

.long-count-breakdown-unit {
  display: inline-block;
}

.long-count-breakdown-days {
  color: rgba(234, 229, 220, 0.72);
  font-size: 0.95rem;
  white-space: nowrap;
}

.long-count-result-label {
  display: block;
  color: rgba(226, 223, 214, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 800;
}

.long-count-segments {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 900;
  color: #f5ecdb;
  font-size: clamp(1.3rem, 2.8vw, 2.5rem);
  letter-spacing: 0.04em;
}

.long-count-segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.segment-separator {
  color: #d8b46c;
  opacity: 0.9;
}

.long-count-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.long-count-inline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.long-count-glyph {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
}

.haab-glyph {
  filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0,0,0,0.35));
}

.long-count-inline strong {
  font-size: 1.2rem;
  line-height: 1.3;
  color: #f4f1ea;
}

.calendar-long-count-cta {
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 0 24px;
}

.calendar-long-count-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(110, 154, 214, 0.25);
  background: linear-gradient(135deg, rgba(19, 29, 46, 0.92), rgba(29, 20, 16, 0.82));
  box-shadow: 0 16px 30px rgba(8, 12, 18, 0.18);
}

.calendar-long-count-cta-eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #d7b266;
  font-weight: 800;
}

.calendar-long-count-cta-inner h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  color: #f3ecd9;
}

.calendar-long-count-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d7b266, #a87b20);
  color: #17120a;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 900;
  transition: transform 0.15s ease;
}

.calendar-long-count-cta-button:hover {
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .long-count-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .long-count-grid {
    grid-template-columns: 1fr;
  }

  .calendar-long-count-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .long-count-hero {
    padding: 30px 18px 12px;
  }

  .long-count-form,
  .long-count-results {
    padding-left: 18px;
    padding-right: 18px;
  }

  .long-count-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
  }

  .long-count-field {
    min-width: 0;
  }

  .long-count-field label {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .long-count-field select,
  .long-count-field input {
    padding: 12px 10px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .long-count-button {
    min-height: 46px;
    border-radius: 12px;
    grid-column: 1 / -1;
  }

  .long-count-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .long-count-result-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 14px 10px;
  }

  /* El desglose se extiende dentro de su propia tarjeta y se lee de izquierda a derecha.
     No afecta las tarjetas independientes de fecha, Tzolk'in ni Haab'. */
  .result-primary .long-count-breakdown {
    align-self: stretch;
    width: 100%;
    direction: ltr;
    text-align: left;
  }

  .long-count-result-label {
    margin-bottom: 8px;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
  }

  .long-count-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 8px;
    text-align: center;
  }

  .long-count-glyph {
    width: 28px;
    height: 28px;
  }

  .long-count-inline strong {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .long-count-segment {
    min-width: 42px;
    padding: 8px 10px;
  }

  .site-bottom-ad {
    width: min(100% - 18px, 1180px);
  }

  .site-bottom-ad .site-ad {
    min-height: 0;
    margin: 10px 0;
    padding: 0;
  }

  .site-bottom-ad .site-ad ins {
    min-height: 0;
  }
}

/* =======================================
   RESPONSIVE (SIN BARRAS HORIZONTALES)
   ======================================= */
@media (max-width: 1200px) {
  .info-boxes {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .info-card {
    padding: 18px 14px;
  }
  .info-title {
    font-size: 12px;
  }
  .glyph-img-tzol,
  .glyph-img-hab,
  .media-info-img,
  .glyph-svg-wrap,
  .long-count-icon {
    width: 66px;
    height: 66px;
  }
}

@media (max-width: 992px) {
  .info-boxes {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  #maya-calendar {
    max-width: 100%;
    transform: scale(1);
  }
  .wheel-titles {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .maya-app {
    padding: 15px;
  }
  
  /* PANEL PRINCIPAL MÓVIL */
  .maya-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  
  /* CONTROLES Y FORMULARIO - FORZAR 100% */
  .controls-bar,
  .controls-wrapper,
  .form-row,
  .calendar-wheel-layout,
  .svg-wheel-layout,
  .wheels-wrapper,
  .svg-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  
  .form-row {
    gap: 10px;
    flex-wrap: wrap !important;
    justify-content: center;
  }
  
  .btn-calcular {
    max-width: 100%;
  }
  
  .form-field select,
  .form-field input {
    padding: 10px 14px;
    font-size: 15px;
    min-width: 80px;
  }
  .form-field input {
    width: 80px;
  }
  .btn-calcular {
    padding: 10px 24px;
    font-size: 14px;
  }
  .nav-buttons-group .btn {
    padding: 10px 20px;
    font-size: 13px;
    min-width: 90px;
  }
  
  .fecha-maya-display {
    font-size: 24px;
    padding: 22px 18px 48px;
  }
  .fecha-larga-display {
    font-size: 13px;
    margin-top: -36px;
    padding: 0 18px;
  }
  
  .info-boxes {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
  }
  .info-card {
    padding: 18px 14px;
    min-height: 160px;
  }
  .info-title {
    font-size: 12px;
  }
  .info-title::after {
    width: 35px;
    margin: 8px auto 10px;
  }
  .info-content {
    gap: 12px;
    margin-bottom: 10px;
  }
  .glyph-img-tzol,
  .glyph-img-hab,
  .media-info-img,
  .glyph-svg-wrap,
  .long-count-icon {
    width: 62px;
    height: 62px;
  }
  .info-footer {
    font-size: 11px;
    margin-top: 8px;
    padding-top: 8px;
  }
  
  /* RUEDAS EN MÓVIL: SIN CORTE DENTRO DEL IFRAME */
  .calendar-wheel-layout,
  .svg-wheel-layout,
  .wheels-wrapper,
  .svg-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .svg-container {
    display: flex;
    justify-content: center;
  }
  
  #maya-calendar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    transform: none !important;
    transform-origin: center center;
    display: block !important;
  }
  
  .wheel-titles {
    max-width: 100%;
    gap: 15px;
    padding: 10px 15px;
  }
  .wheel-titles span {
    font-size: 0.75rem;
  }
  
  .solar-year-container {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
  }
  .solar-year-card {
    padding: 18px 20px;
  }
  .solar-year-title {
    font-size: 12px;
  }
  .solar-year-divider {
    width: 45px;
    margin-bottom: 10px;
  }
  
  /* === CORRECCIÓN PARA CAJAS SOLARES EN MÓVIL === */
  .solar-year-main-bearer {
    min-height: auto !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .year-bearer-number-row {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin-bottom: 6px;
  }
  
  .solar-year-main-text {
    position: relative !important;
    inset: auto !important;
    margin-top: 8px;
    width: 100%;
  }
  
  .solar-year-main-text span {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: block;
    width: 100%;
    font-size: 0.7rem;
    white-space: normal;
    text-align: center;
    margin-bottom: 4px;
  }
  
  .solar-year-main-text strong {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    display: block;
    width: 100%;
    font-size: 1.3rem;
    white-space: nowrap;
    text-align: center;
  }
  
  .solar-year-main-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  #yearBearerSolarCountBigTxt {
    font-size: 2rem !important;
  }
  
  .solar-year-main-count span {
    font-size: 0.7rem;
  }
  
  .year-bearer-message {
    font-size: 0.7rem;
    padding: 8px 12px;
  }
  /* === FIN CORRECCIÓN SOLAR === */
  
  #numeroTxt,
  #tzolkinTxt,
  #haabTxt,
  #cuentaLargaTxt {
    font-size: 1.35rem !important;
  }
  #cuentaLargaTxt {
    font-size: 1.15rem !important;
  }
}

@media (max-width: 480px) {
  .maya-app {
    padding: 10px;
  }
  
  .maya-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  
  .form-field select,
  .form-field input {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 70px;
  }
  .form-field input {
    width: 70px;
  }
  .btn-calcular {
    padding: 8px 20px;
    font-size: 13px;
  }
  .nav-buttons-group .btn {
    padding: 8px 16px;
    font-size: 12px;
    min-width: 80px;
  }
  
  .fecha-maya-display {
    font-size: 20px;
    padding: 20px 14px 46px;
  }
  .fecha-larga-display {
    font-size: 14px;
    margin-top: -34px;
    padding: 0 14px;
  }
  
  .info-card {
    padding: 14px 10px;
    min-height: 150px;
  }
  .info-title {
    font-size: 11px;
  }
  .info-title::after {
    width: 30px;
    margin: 6px auto 8px;
  }
  .glyph-img-tzol,
  .glyph-img-hab,
  .media-info-img,
  .glyph-svg-wrap,
  .long-count-icon {
    width: 56px;
    height: 56px;
  }
  .info-footer {
    font-size: 10px;
  }
  
  /* RUEDA EN CELULARES PEQUEÑOS */
  #maya-calendar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    transform: none !important;
    transform-origin: center center;
    display: block !important;
  }
  
  .wheel-titles span {
    font-size: 0.7rem;
  }
  
  /* Ajustes adicionales para móvil muy pequeño */
  .solar-year-main-text strong {
    font-size: 1.2rem !important;
  }
  
  #yearBearerSolarCountBigTxt {
    font-size: 1.8rem !important;
  }
  
  .solar-year-main-text span {
    font-size: 0.65rem !important;
  }
  
  .solar-year-main-count span {
    font-size: 0.65rem;
  }
  
  #numeroTxt,
  #tzolkinTxt,
  #haabTxt,
  #cuentaLargaTxt {
    font-size: 1.2rem !important;
  }
  #cuentaLargaTxt {
    font-size: 1rem !important;
  }
}

/* =======================================
   UTILIDADES Y EVENTOS
   ======================================= */
.btn {
  transition: transform 0.08s ease, background 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.96);
}

.btn-loading {
  opacity: 0.7;
  cursor: wait;
  position: relative;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  top: 50%;
  right: 12px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#cholqij-wheel circle,
#haab-wheel circle {
  pointer-events: none;
}

#ring-cholqij-num,
#ring-cholqij-nawal,
#ring-haab-day,
#ring-haab-month {
  pointer-events: visible !important;
  cursor: grab;
}

#ring-cholqij-num:active,
#ring-cholqij-nawal:active,
#ring-haab-day:active,
#ring-haab-month:active {
  cursor: grabbing;
}

@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar {
    width: 6px;
    background: #1c1c1a;
  }

  ::-webkit-scrollbar-thumb {
    background: #b88a36;
    border-radius: 6px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #e5b94e;
  }
}

.nawal-info-action {
    width: 100%;
    text-align: center;
    margin: 28px 0 10px;
}

.btn-nawal-info {
    border: none;
    cursor: pointer;
    padding: 14px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #facc15);
    color: #111827;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.nawal-modal[hidden] {
    display: none;
}

.nawal-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.nawal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(5px);
}

.nawal-modal-box {
    position: relative;
    width: min(920px, calc(100% - 28px));
    display: block;
    max-height: 88vh;
    overflow-y: auto;
    margin: 6vh auto;
    background: #0f172a;
    color: #fff;
    border-radius: 24px;
    padding: 32px 26px 26px;
    box-shadow: 0 30px 80px rgba(0,0,0,.55);
    border: 1px solid rgba(250,204,21,.35);
}

.nawal-modal-close {
    position: fixed;
    top: max(12px, calc(6vh - 18px));
    right: max(12px, calc((100vw - 920px) / 2 - 18px));
    z-index: 10001;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(31,41,55,.96);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 12px 28px rgba(0,0,0,.45);
}

.nawal-modal-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    text-align: center;
    margin-bottom: 22px;
    padding: 0 46px;
}

.nawal-modal-img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    padding: 10px;
}

.nawal-modal-header h3 {
    margin: 0 0 6px;
    font-size: 28px;
    color: #facc15;
}

.nawal-modal-header p {
    margin: 0;
    color: #e5e7eb;
    line-height: var(--font-body-line-height);
    max-width: 720px;
}

.nawal-modal-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
    width: 100%;
}

.nawal-modal-intro {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 18px;
    padding: 26px 30px;
    border: 1px solid rgba(240, 180, 54, .65);
    border-radius: 20px;
    background: radial-gradient(circle at 50% 0%, rgba(26, 152, 179, .22), transparent 52%), linear-gradient(135deg, rgba(3, 18, 32, .98), rgba(9, 38, 55, .94));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 18px 42px rgba(0,0,0,.34);
}

.nawal-modal-intro .nawal-modal-header {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 92px 92px;
    flex-direction: row !important;
    justify-content: stretch;
    justify-items: center;
    width: min(100%, 760px);
    margin-inline: auto;
    align-items: center;
    gap: 18px;
    padding: 0;
    margin: 0;
    text-align: left !important;
}

.nawal-modal-heading {
    flex: 1 1 auto;
    text-align: center;
    min-width: 0;
}

.nawal-modal-intro .nawal-modal-header .nawal-modal-eyebrow {
    display: block !important;
    margin: 0 0 4px !important;
    color: #f4ca68 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .11em;
    line-height: 1.2 !important;
    text-transform: uppercase;
}

.nawal-modal-intro .nawal-modal-header h3 {
    margin: 0;
    color: #f8e5b1;
    font-family: var(--font-maya-display);
    font-size: clamp(24px, 2.5vw, 35px);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nawal-modal-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: static;
    width: 100%;
    min-height: 34px;
}

.nawal-modal-day-wordmark {
    display: grid;
    justify-items: center;
    gap: 5px;
    position: relative;
    width: 280px;
    box-sizing: border-box;
    padding-left: 112px;
}

.nawal-modal-day-number {
    color: #f5c65b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 700;
    line-height: .86;
    letter-spacing: -.04em;
    text-shadow: 0 2px 0 #8c5517, 0 7px 16px rgba(0, 0, 0, .52);
}

.nawal-modal-number {
    display: inline-flex;
    position: absolute;
    left: 38px;
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    width: 122px;
    height: 98px;
    color: #f5c65b;
    filter: none;
}

.nawal-modal-number svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.nawal-modal-animal-wrap {
    display: grid;
    justify-items: center;
    gap: 5px;
    align-content: center;
}

.nawal-modal-moon-wrap {
    display: grid;
    justify-items: center;
    gap: 5px;
    align-content: center;
}

.nawal-modal-moon-wrap span {
    color: #b8d6f2;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.nawal-modal-moon {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(248, 242, 219, .12);
    border: 1px solid rgba(248, 242, 219, .7);
    box-shadow: 0 0 18px rgba(248, 242, 219, .17);
    padding: 7px;
}

.nawal-modal-animal-wrap span {
    color: #b8d6f2;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.nawal-modal-animal {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(67, 220, 255, .1);
    border: 1px solid rgba(67, 220, 255, .62);
    padding: 7px;
}

.nawal-modal-intro .nawal-modal-header p {
    display: none;
}


.nawal-modal-content .nawal-modal-section {
    width: 100%;
}

.nawal-modal--default .nawal-modal-box {
    width: min(1100px, calc(100% - 24px));
    background: rgba(8, 25, 38, 0.94);
    border: 2px solid rgba(240, 180, 54, 0.95);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0,0,0,.58);
    padding: 22px 30px 26px;
}

.nawal-modal--default .nawal-modal-close {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
}

.nawal-modal--default .nawal-modal-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 0;
    text-align: center;
}

.nawal-modal--default .nawal-modal-img {
    width: 92px;
    height: 92px;
    min-width: 92px;
    border-radius: 18px;
    background: rgba(20, 38, 52, 0.75);
    border: 1px solid rgba(240, 180, 54, 0.3);
    padding: 10px;
    margin: 0 auto;
}

.nawal-modal--default .nawal-modal-header h3 {
    margin: 0;
    font-size: clamp(2.2rem, 2.3vw, 3.2rem);
    line-height: 1.1;
    font-weight: 800;
    color: #f9c74f;
    text-align: center;
}

.nawal-modal--default .nawal-modal-header p {
    display: none;
}

.nawal-modal--default .nawal-modal-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    gap: 14px;
}

.nawal-modal--default .nawal-modal-summary {
    margin: 0 auto;
    color: #f7f4ee;
    font-size: clamp(1.05rem, 1.4vw, 1.7rem);
    line-height: 1.7;
    text-align: left;
    font-weight: 500;
    max-width: 100%;
}

.nawal-modal-section {
    border-radius: 12px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    overflow: hidden;
}

.nawal-modal-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    cursor: pointer;
    list-style: none;
}

.nawal-modal-section summary::-webkit-details-marker {
    display: none;
}

.nawal-modal-section-heading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.nawal-modal-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    color: #43dcff;
    filter: drop-shadow(0 0 5px rgba(67, 220, 255, .42));
}

.nawal-modal-section-icon svg {
    width: 19px;
    height: 19px;
    display: block;
}

.nawal-modal-section h4 {
    margin: 0;
    color: #facc15;
    font-size: 16px;
}

.nawal-modal-section p {
    margin: 0;
    padding: 0 16px 16px;
    line-height: var(--font-body-line-height);
    color: #f8fafc;
}

.nawal-modal-chevron {
    color: #b8d6f2;
    display: inline-flex;
    width: 20px;
    height: 20px;
    transition: transform .2s ease;
}

.nawal-modal-chevron svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.3;
}

.nawal-modal-section[open] .nawal-modal-chevron {
    transform: rotate(180deg);
}

.nawal-modal-error {
    padding: 16px;
    border-radius: 14px;
    background: rgba(239,68,68,.15);
    border: 1px solid rgba(239,68,68,.4);
    color: #fecaca;
}

body.modal-open {
    overflow: hidden;
}

body.modal-open .maya-panel {
    overflow: visible;
}

body.modal-open .wheels-wrapper {
    overflow: visible;
}

body.modal-open .calendar-wheel-layout {
    z-index: 10000;
}

.nawal-modal-backdrop {
    z-index: 0;
}

.nawal-modal-box {
    z-index: 1;
}

@media (max-width: 640px) {
    .nawal-modal-close {
        top: 8px;
        right: 8px;
        width: 42px;
        height: 42px;
    }

    .nawal-modal-box {
        margin: 3vh auto;
        max-height: 94vh;
        padding: 34px 20px 20px;
        border-radius: 20px;
    }

    .nawal-modal-header {
        padding: 0 24px;
    }

    .nawal-modal-header h3 {
        font-size: 23px;
    }

    .nawal-modal-img {
        width: 74px;
        height: 74px;
    }

    .nawal-modal-intro {
        padding: 18px 10px;
    }

    .nawal-modal-intro .nawal-modal-header {
        grid-template-columns: 58px minmax(0, 1fr) 54px 54px;
        width: 100%;
        gap: 6px;
    }

    .nawal-modal-heading {
        min-width: 0;
        width: 100%;
    }

    .nawal-modal-intro .nawal-modal-img {
        width: 58px;
        height: 58px;
        padding: 6px;
    }

    .nawal-modal-day-wordmark {
        display: grid;
        grid-template-columns: 44px auto;
        grid-template-rows: 42px auto;
        justify-content: center;
        justify-items: center;
        align-items: center;
        gap: 2px 4px;
        width: 100%;
        padding-left: 0;
    }

    .nawal-modal-day-number {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        font-size: 42px;
    }

    .nawal-modal-title-row {
        display: contents;
    }

    .nawal-modal-number {
        position: static;
        grid-column: 1;
        grid-row: 1;
        width: 44px;
        height: 42px;
        transform: none;
    }

    .nawal-modal-intro .nawal-modal-header h3 {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
      font-size: clamp(18px, 5vw, 23px);
        letter-spacing: .08em;
    }

    .nawal-modal-intro .nawal-modal-header .nawal-modal-eyebrow {
        font-size: 9px !important;
        letter-spacing: .08em;
    }

    .nawal-modal-animal,
    .nawal-modal-moon {
        width: 48px;
        height: 48px;
        padding: 4px;
    }

    .nawal-modal-animal-wrap span,
    .nawal-modal-moon-wrap span {
        font-size: 8px;
    }

}

@media (max-width: 420px) {
    .nawal-modal-intro .nawal-modal-header {
        grid-template-columns: 44px minmax(0, 1fr) 40px;
        grid-template-rows: 1fr 1fr;
        gap: 4px 6px;
    }

    .nawal-modal-intro .nawal-modal-img {
        grid-row: 1 / 3;
        width: 44px;
        height: 44px;
    }

    .nawal-modal-heading {
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .nawal-modal-day-wordmark {
        grid-template-columns: 34px auto;
        grid-template-rows: 36px auto;
        gap: 2px 3px;
        padding-left: 0;
    }

    .nawal-modal-day-number {
        grid-column: 2;
        grid-row: 1;
        font-size: 34px;
    }

    .nawal-modal-number {
        grid-column: 1;
        grid-row: 1;
        width: 34px;
        height: 36px;
    }

    .nawal-modal-intro .nawal-modal-header h3 {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: 15px;
        letter-spacing: 0;
    }

    .nawal-modal-animal-wrap {
        grid-column: 3;
        grid-row: 1;
    }

    .nawal-modal-moon-wrap {
        grid-column: 3;
        grid-row: 2;
    }

    .nawal-modal-animal,
    .nawal-modal-moon {
        width: 36px;
        height: 36px;
        padding: 3px;
    }

    .nawal-modal-animal-wrap span,
    .nawal-modal-moon-wrap span {
        font-size: 7px;
    }
  }

.btn-nawal-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: #4a2c1a;
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-nawal-info svg {
    stroke: black;
    fill: none;
}

.btn-nawal-info:hover {
    background-color: #6b3e24;
    transform: scale(1.02);
}

.nav-buttons-group .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-buttons-group .btn svg {
    flex-shrink: 0;
}

/* =======================================
   AJUSTES PROFESIONALES SIN CAMBIAR COLORES
   ======================================= */
.maya-app {
  padding: clamp(26px, 4vw, 58px) 20px 28px;
}

.maya-panel {
  padding: clamp(28px, 4vw, 48px);
}

.controls-bar {
  margin-bottom: 30px;
}

.form-field select,
.form-field input,
.btn-calcular,
.nav-buttons-group .btn,
.btn-nawal-info {
  min-height: 50px;
}

.form-field select:focus,
.form-field input:focus {
  border-color: var(--color-oro);
  box-shadow: 0 0 0 3px rgba(229, 185, 78, 0.18);
  outline: none;
}

.btn-calcular,
.nav-buttons-group .btn,
.btn-nawal-info {
  justify-content: center;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-anterior:hover,
.btn-siguiente:hover,
.btn-hoy:hover,
.btn-nawal-info:hover {
  transform: translateY(-2px);
}

.info-card,
.solar-year-card,
.nawal-modal-section {
  border-radius: 14px;
}

.nawal-modal-box {
  border-radius: 20px;
}

@media (max-width: 768px) {
  body {
    background-size: auto 100vh;
    background-position: center top;
    background-attachment: fixed;
  }

  .maya-panel {
    padding: 22px 14px;
    border-radius: 8px;
  }

  .controls-bar {
    padding: 16px 10px 24px;
  }

  .form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
  }

  .btn-calcular {
    grid-column: 1 / -1;
    width: min(320px, 100%);
    margin: 2px auto 0;
  }

  .form-field {
    min-width: 0;
  }

  .form-field select,
  .form-field input {
    width: 100%;
    min-width: 0;
  }

  .nav-buttons-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .nav-buttons-group .btn {
    min-width: 0;
    width: 100%;
    padding-inline: 10px;
  }

  .info-card,
  .solar-year-card {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .form-title {
    font-size: 18px;
    letter-spacing: 1.5px;
  }

  .form-row {
    gap: 8px;
  }

  .form-field label {
    font-size: 12px;
    padding: 4px 8px;
  }

  .nav-buttons-group .btn {
    gap: 4px;
    padding: 8px 6px;
    font-size: 11px;
  }

  .nav-buttons-group .btn svg {
    width: 15px;
    height: 15px;
  }

  .info-boxes {
    gap: 10px;
  }
}

/* =======================================
   FORMULARIO MAYA - ESTILO REFERENCIA
   Solo apariencia: no cambia funciones.
   ======================================= */
.maya-app {
  padding: clamp(32px, 5vw, 72px) 20px 34px;
}

.maya-panel {
  position: relative;
  max-width: 980px;
  padding: clamp(34px, 4.6vw, 58px) clamp(28px, 5vw, 54px) 42px;
  border: 1px solid #d8a13c;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 12%, rgba(37, 84, 132, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(3, 17, 34, 0.96), rgba(2, 10, 22, 0.94));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.62),
    inset 0 0 0 5px rgba(1, 8, 18, 0.72),
    inset 0 0 0 6px rgba(245, 198, 91, 0.30),
    inset 0 0 62px rgba(0, 0, 0, 0.35);
}

.maya-panel::before {
  inset: 9px;
  border: 1px solid rgba(216, 161, 60, 0.74);
  border-radius: 16px;
  background: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 228, 157, 0.08),
    0 0 18px rgba(224, 166, 61, 0.08);
}

.maya-panel::after {
  display: none;
}

.controls-bar {
  margin-bottom: 30px;
  padding-bottom: 28px;
}

.controls-bar::before,
.fecha-maya-display::after {
  height: 1px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(224, 166, 61, 0.22) 18%, #f6d06e 50%, rgba(224, 166, 61, 0.22) 82%, transparent 100%);
  box-shadow: 0 0 14px rgba(224, 166, 61, 0.22);
}

.controls-bar::after {
  bottom: -5px;
  width: 11px;
  height: 11px;
  border-color: #f4c966;
  background: #061326;
  box-shadow:
    0 0 0 4px rgba(3, 15, 31, 0.95),
    0 0 14px rgba(244, 201, 102, 0.4);
}

.form-title {
  max-width: 880px;
  margin: 0 auto 22px;
  font-family: var(--font-maya-display);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #d6a13a;
  text-shadow:
    0 1px 0 #fff0b7,
    0 2px 0 #8f5b14,
    0 4px 0 rgba(66, 38, 6, 0.82),
    0 12px 24px rgba(0, 0, 0, 0.72);
}

.controls-wrapper {
  gap: 26px;
}

.form-row {
  gap: 18px;
}

.form-field {
  gap: 10px;
}

.form-field label {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #f4bf4e;
  background: transparent;
  padding: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.68);
}

.form-field select,
.form-field input {
  min-height: 56px;
  border: 1px solid #c99035;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(3, 17, 34, 0.99), rgba(1, 8, 19, 0.99));
  color: #f7f7f7;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 225, 146, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 24px rgba(0, 0, 0, 0.32);
}

.form-field select {
  min-width: 210px;
}

.form-field input {
  width: 150px;
}

.btn-calcular {
  min-height: 56px;
  height: 56px;
  border: 1px solid rgba(255, 231, 151, 0.96);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffe07b 0%, #d69b2c 56%, #a76a13 100%);
  color: #06101e;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.32);
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.nav-buttons-group {
  gap: 18px;
}

.nav-buttons-group .btn {
  min-width: 210px;
  min-height: 52px;
  border: 1px solid #c99035;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(3, 17, 34, 0.98), rgba(1, 8, 19, 0.98));
  color: #f8fafc;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 225, 146, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 23px rgba(0, 0, 0, 0.30);
}

.fecha-maya-display {
  width: min(820px, 100%);
  margin: 10px auto 0;
  padding: 30px 26px 68px;
  border-radius: 12px;
  font-family: var(--font-maya-display);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 1px;
  color: #d6a13a;
  -webkit-text-fill-color: currentColor;
  background: transparent;
  text-shadow:
    0 1px 0 #fff0b7,
    0 2px 0 #8f5b14,
    0 5px 0 rgba(52, 30, 5, 0.72),
    0 14px 24px rgba(0, 0, 0, 0.74);
}

.fecha-maya-display::before {
  border: 1px solid #d8a13c;
  border-radius: 12px;
  background:
    linear-gradient(#d8a13c, #d8a13c) left 11px top 6px / 58px 1px no-repeat,
    linear-gradient(#d8a13c, #d8a13c) left 6px top 11px / 1px 58px no-repeat,
    linear-gradient(#d8a13c, #d8a13c) right 11px top 6px / 58px 1px no-repeat,
    linear-gradient(#d8a13c, #d8a13c) right 6px top 11px / 1px 58px no-repeat,
    linear-gradient(#d8a13c, #d8a13c) left 11px bottom 6px / 58px 1px no-repeat,
    linear-gradient(#d8a13c, #d8a13c) left 6px bottom 11px / 1px 58px no-repeat,
    linear-gradient(#d8a13c, #d8a13c) right 11px bottom 6px / 58px 1px no-repeat,
    linear-gradient(#d8a13c, #d8a13c) right 6px bottom 11px / 1px 58px no-repeat,
    radial-gradient(circle at 0% 50%, rgba(224, 166, 61, 0.10), transparent 30%),
    radial-gradient(circle at 100% 50%, rgba(224, 166, 61, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(20, 47, 70, 0.98), rgba(8, 25, 45, 0.98));
  box-shadow:
    inset 0 0 0 5px rgba(0, 0, 0, 0.38),
    inset 0 0 0 6px rgba(224, 166, 61, 0.42),
    inset 0 0 55px rgba(0, 0, 0, 0.45),
    0 16px 32px rgba(0, 0, 0, 0.34);
}

.fecha-maya-display::after {
  bottom: 48px;
  width: min(300px, 52%);
}

.fecha-larga-display {
  margin: -50px auto 28px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: var(--font-body-size);
  font-weight: 800;
  letter-spacing: 2px;
  color: #f8fafc;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.78);
}

@media (max-width: 768px) {
  .maya-app {
    padding: 18px 10px 22px;
  }

  .maya-panel {
    padding: 26px 14px 24px;
    border-radius: 16px;
  }

  .form-title {
    font-size: clamp(25px, 8vw, 38px);
  }

  .form-row {
    gap: 12px;
  }

  .form-field select,
  .form-field input {
    min-height: 50px;
    font-size: 18px;
    padding-inline: 12px 34px;
  }

  .nav-buttons-group .btn {
    min-width: 0;
    font-size: 12px;
  }

  .fecha-maya-display {
    padding: 24px 16px 58px;
    font-size: clamp(22px, 8vw, 34px);
    letter-spacing: 1px;
  }

  .fecha-maya-display::after {
    bottom: 42px;
  }

  .fecha-larga-display {
    margin-top: -44px;
    font-size: clamp(13px, 4vw, 17px);
    letter-spacing: 1px;
  }
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-field select,
  .form-field input,
  .btn-calcular {
    width: min(320px, 100%);
  }

  .nav-buttons-group {
    grid-template-columns: 1fr;
  }
}

/* BORDES FINALES TIPO REFERENCIA */
.maya-panel {
  position: relative;
  max-width: 1050px;
  margin: 28px auto 50px;
  padding: 30px 60px 42px;
  color: white;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.maya-panel::before {
  display: none;
}

.maya-panel::after {
  display: none;
}

.maya-panel > * {
  position: relative;
  z-index: 1;
}

.maya-panel .controls-wrapper::before {
  display: none;
}

.fecha-maya-display::before {
  border: 2px solid #c99735;
  border-radius: 18px;
  background: transparent;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.24);
}

.fecha-maya-display {
  border-radius: 18px;
}

.form-field select,
.form-field input,
.nav-buttons-group .btn {
  border: 1px solid rgba(230, 177, 67, 0.75);
  border-radius: 9px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.28),
    inset 0 0 18px rgba(11, 43, 70, 0.24);
}

@media (max-width: 768px) {
  .maya-panel {
    margin: 18px auto;
    padding: 22px 16px 24px;
    border-radius: 0;
  }

  .maya-panel::before {
    display: none;
  }

  .maya-panel::after {
    display: none;
  }

  .maya-panel .controls-wrapper::before {
    display: none;
  }
}

/* Ajuste compacto solo para el formulario */
.controls-bar {
  width: min(900px, 100%);
  margin: 0 auto 26px;
  padding-bottom: 24px;
}

.controls-bar .controls-wrapper {
  position: relative;
  gap: 20px;
  font-family: var(--font-body);
}

.controls-bar .form-title {
  margin-bottom: 8px;
  font-size: clamp(30px, 3.5vw, 40px);
  letter-spacing: 1px;
  line-height: 1;
}

.controls-bar .form-row {
  display: grid;
  grid-template-columns: 172px 172px 142px 144px;
  gap: 14px;
  align-items: end;
  justify-content: center;
}

.controls-bar .form-field {
  min-width: 0;
  gap: 7px;
}

.controls-bar .form-field label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.controls-bar .form-field select,
.controls-bar .form-field input {
  width: 100%;
  min-height: 46px;
  height: 46px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
}

.controls-bar .form-field select {
  min-width: 0;
}

.controls-bar .form-field select option {
  background: #ffffff;
  color: #111827;
  font-family: var(--font-body);
  font-weight: 600;
}

.controls-bar .form-field select option:checked {
  background: #7d7a74;
  color: #ffffff;
}

.controls-bar .form-field input {
  width: 100%;
}

.controls-bar #selYear {
  padding: 10px 12px;
}

.controls-bar .btn-calcular {
  width: 100%;
  min-height: 46px;
  height: 46px;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.controls-bar .btn-calcular-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.controls-bar .nav-buttons-group {
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 0;
}

.controls-bar .nav-buttons-group .btn {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  background:
    linear-gradient(180deg, rgba(20, 47, 70, 0.98), rgba(8, 25, 45, 0.98));
}

.controls-bar .nav-buttons-group .btn:hover {
  background:
    linear-gradient(180deg, rgba(33, 68, 96, 0.98), rgba(12, 35, 60, 0.98));
}

.fecha-maya-display {
  width: min(820px, 100%);
  margin-top: 16px;
  padding: 26px 30px 54px;
  line-height: 1;
  font-size: clamp(24px, 3.2vw, 36px);
}

.fecha-maya-display::before {
  background:
    linear-gradient(#c99735, #c99735) left 17px top 11px / 64px 1px no-repeat,
    linear-gradient(#c99735, #c99735) left 11px top 17px / 1px 64px no-repeat,
    linear-gradient(#c99735, #c99735) right 17px top 11px / 64px 1px no-repeat,
    linear-gradient(#c99735, #c99735) right 11px top 17px / 1px 64px no-repeat,
    linear-gradient(#c99735, #c99735) left 17px bottom 11px / 64px 1px no-repeat,
    linear-gradient(#c99735, #c99735) left 11px bottom 17px / 1px 64px no-repeat,
    linear-gradient(#c99735, #c99735) right 17px bottom 11px / 64px 1px no-repeat,
    linear-gradient(#c99735, #c99735) right 11px bottom 17px / 1px 64px no-repeat;
}

.fecha-larga-display {
  margin-top: -42px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .wheel-titles {
    gap: 18px;
    width: min(520px, 96%);
    padding-top: 8px;
  }

  .wheel-titles span {
    min-height: 24px;
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .wheel-titles span::before,
  .wheel-titles span::after {
    width: min(34px, 18%);
  }

  .wheel-titles span::before {
    right: calc(50% + 74px);
  }

  .wheel-titles span::after {
    left: calc(50% + 74px);
  }

  .controls-bar .form-title {
    font-size: clamp(22px, 7vw, 32px);
  }

  .controls-bar .form-row {
    width: min(460px, 100%);
    grid-template-columns: 1fr 1fr;
  }

  .controls-bar .form-field select,
  .controls-bar .form-field input,
  .controls-bar .btn-calcular {
    min-height: 44px;
    height: 44px;
    font-size: 15px;
  }

  .controls-bar .nav-buttons-group .btn {
    min-height: 42px;
    height: 42px;
    font-size: 11px;
    padding-inline: 8px;
  }

  .fecha-maya-display {
    margin-top: 12px;
    padding: 24px 16px 56px;
  }
}

.site-footer {
  width: 100%;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(7, 22, 40, 0.98), rgba(3, 12, 24, 0.99));
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.36);
}

@media (min-width: 861px) {
  .site-footer::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 154px;
    background: rgba(3, 12, 24, 0.99);
    pointer-events: none;
  }

  .site-footer {
    position: relative;
  }
}

.site-footer-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 38px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.78fr;
  gap: clamp(28px, 5vw, 72px);
}

.footer-section {
  min-width: 0;
}

.footer-section h2 {
  margin: 0 0 20px;
  color: #f8f2db;
  font-family: var(--font-menu);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.3px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.footer-section p {
  margin: 0;
  color: #eef4fb;
  font-family: var(--font-body);
  font-size: var(--font-body-size);
  font-weight: 400;
  line-height: var(--font-body-line-height);
}

.footer-about-content {
  display: grid;
  grid-template-columns: 94px 1fr;
  align-items: center;
  gap: 18px;
}

.footer-about-content img {
  width: 94px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
}

.footer-links {
  display: grid;
  gap: 10px;
  font-family: var(--font-menu);
}

.footer-links a {
  width: fit-content;
  color: #eef4fb;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-oro);
  transform: translateX(3px);
}

.site-footer-bottom {
  border-top: 1px solid rgba(229, 185, 78, 0.26);
  background: rgba(0, 0, 0, 0.34);
}

.site-footer-bottom p {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 11px 0;
  color: #ffffff;
  font-family: var(--font-menu);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.legal-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(2, 10, 20, 0.5), rgba(0, 0, 0, 0.88)),
    url('../img/ruedas/fondonawal.avif') center / cover fixed no-repeat;
}

.legal-main {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 100px) 0;
}

.legal-document {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(229, 185, 78, 0.26);
  border-radius: 8px;
  background: rgba(5, 18, 32, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.legal-eyebrow {
  margin: 0 0 12px;
  color: var(--color-oro);
  font-family: var(--font-menu);
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.legal-document h1 {
  margin: 0 0 28px;
  color: #f8f2db;
  font-family: var(--font-menu);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
}

.legal-content {
  color: #eef4fb;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

.legal-content br + br {
  display: block;
  content: "";
  margin-top: 18px;
}

@media (max-width: 900px) {
  .site-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .footer-section:last-child {
    grid-column: 1 / -1;
  }

  .footer-links {
    grid-template-columns: repeat(4, max-content);
    gap: 12px 22px;
  }
}

@media (max-width: 640px) {
  .site-footer-main {
    width: min(100% - 28px, 460px);
    padding: 34px 0 30px;
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-section h2 {
    margin-bottom: 14px;
  }

  .footer-section p {
    font-size: var(--font-body-size);
    line-height: var(--font-body-line-height);
  }

  .footer-about-content {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .footer-about-content img {
    width: 82px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 12px;
  }

  .footer-links a {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .site-footer-bottom p {
    width: min(100% - 28px, 460px);
    font-size: 12px;
  }

  .legal-main {
    width: min(100% - 28px, 560px);
    padding: 34px 0 56px;
  }

  .legal-document {
    padding: 26px 20px;
  }

  .legal-content {
    font-size: 16px;
  }
}
/* =======================================
   SECCIÓN BLOG EN LA PÁGINA DE INICIO
   (estilos basados en el módulo /blog)
   ======================================= */
.home-blog-separator {
  width: 100%;
  max-width: 1180px;
  margin: clamp(34px, 5vw, 60px) auto 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55), transparent);
}

.home-blog {
  width: 100%;
  max-width: 1180px;
  margin: clamp(34px, 5vw, 60px) auto 0;
  padding: 0 4px;
}

.home-blog-ad {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 4px;
}

.home-blog-ad .site-ad {
  width: 100%;
  min-height: 90px;
  margin: 22px 0;
  padding: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.home-blog-ad .site-ad ins {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 90px;
  margin: 0 auto;
  text-align: center;
}

.home-blog-ad-before .site-ad {
  margin-top: 0;
}

.home-blog-ad-after .site-ad {
  margin-bottom: 0;
}

.site-bottom-ad {
  width: min(100% - 36px, 1180px);
  margin: 0 auto;
}

.site-bottom-ad .site-ad {
  width: 100%;
  min-height: 0;
  margin: 12px 0;
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.site-bottom-ad .site-ad ins {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin: 0 auto;
  text-align: center;
}

.home-blog-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.home-blog-eyebrow {
  margin: 0 0 6px;
  color: var(--color-oro);
  font-family: var(--font-menu);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.home-blog-title {
  margin: 0;
  color: #f8f2db;
  font-family: var(--font-maya-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.04;
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.62);
}

.home-blog-more {
  min-height: 38px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(229, 185, 78, 0.55);
  border-radius: 999px;
  color: #f8f2db;
  background: rgba(5, 34, 62, 0.82);
  font: 700 12px/1 var(--font-body);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.home-blog-more:hover,
.home-blog-more:focus-visible {
  border-color: rgba(255, 232, 154, 0.95);
  outline: none;
}

.home-blog-grid {
  --home-blog-card-title-size: clamp(17px, 1.5vw, 19px);
  --home-blog-card-body-size: 14px;
  --home-blog-card-body-leading: 1.34;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 28px;
}

.home-blog-card {
  appearance: none;
  position: relative;
  min-height: 344px;
  padding: 18px 15px 15px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 11px;
  border: 1px solid rgba(123, 123, 123, 0.72);
  border-radius: 14px;
  color: #ffffff;
  font-family: var(--font-body);
  text-align: inherit;
  background:
    radial-gradient(circle at 50% 11%, rgba(229, 185, 78, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(12, 36, 59, 0.92), rgba(5, 18, 34, 0.96));
  text-decoration: none;
  overflow: hidden;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.27),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.home-blog-card:hover,
.home-blog-card:focus-visible {
  border-color: rgba(255, 232, 154, 0.95);
  transform: translateY(-3px);
  outline: none;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.34),
    0 0 0 3px rgba(229, 185, 78, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.home-blog-card-image {
  width: calc(100% + 30px);
  height: 140px;
  margin: -18px -15px 0;
  display: block;
  overflow: hidden;
}

.home-blog-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.home-blog-card:hover .home-blog-card-image img,
.home-blog-card:focus-visible .home-blog-card-image img {
  transform: scale(1.04);
}

.home-blog-card-content {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  text-align: center;
}

.home-blog-card-meta {
  color: #f2c85b;
  font: 800 11px/1.35 var(--font-body);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.home-blog-card-category {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  padding: 7px 10px;
  border: 1px solid rgba(229, 185, 78, 0.34);
  border-radius: 999px;
  color: #081522;
  background: linear-gradient(180deg, #ffe89a, #d6a33a);
  font: 800 12px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.home-blog-card-content strong {
  margin: 0;
  color: #f8f2db;
  font-family: var(--font-maya-display);
  font-size: var(--home-blog-card-title-size);
  font-weight: 800;
  line-height: 1.04;
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.62);
}

.home-blog-card-content span:last-child {
  max-width: 25ch;
  margin: 0 auto;
  color: #f4f7ec;
  font: 400 var(--home-blog-card-body-size)/var(--home-blog-card-body-leading) var(--font-body);
}

.home-blog-card-action {
  min-height: 36px;
  padding-top: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(229, 185, 78, 0.22);
  color: #f8f2db;
  font: 700 12px/1.2 var(--font-body);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.home-blog-empty {
  grid-column: 1 / -1;
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(123, 123, 123, 0.72);
  border-radius: 14px;
  color: #f8f2db;
  background: rgba(8, 27, 48, 0.72);
  font: 700 16px/1.4 var(--font-body);
  text-align: center;
}

@media (max-width: 980px) {
  .home-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-rows: 1fr;
    column-gap: 10px;
    row-gap: 20px;
  }

  .home-blog-card:nth-child(n + 5) {
    display: none;
  }

  .home-blog-card {
    min-height: 312px;
    padding: 10px 10px 9px;
    gap: 7px;
  }

  .home-blog-card-image {
    width: calc(100% + 20px);
    height: 84px;
    margin: -10px -10px 0;
  }

  .home-blog-card-content {
    gap: 6px;
  }

  .home-blog-card-category {
    padding: 5px 8px;
    font-size: 9px;
  }

  .home-blog-card-meta {
    font-size: 8px;
  }

  .home-blog-card-content strong {
    font-size: 15px;
    line-height: 1.03;
  }

  .home-blog-card-content span:last-child {
    max-width: 24ch;
    font-size: 11px;
    line-height: 1.25;
  }

  .home-blog-card-action {
    min-height: 29px;
    padding-top: 7px;
    font-size: 9px;
  }
}

/* Capa final del formulario de inicio */
.controls-bar {
  width: min(900px, 100%);
  margin: 0 auto 24px;
  padding: 0;
}

.controls-bar::before,
.controls-bar::after {
  display: none;
}

.controls-wrapper {
  gap: 20px;
}

.controls-bar .controls-wrapper {
  gap: 20px;
}

.form-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.form-title {
  margin: 0 auto 1px;
  color: #f7f8fb;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}

.controls-bar .form-title {
  margin-bottom: 0;
}

.form-title span {
  color: #f7f8fb;
}

.form-title strong {
  color: #f5b83f;
  font-weight: 900;
}

.form-subtitle {
  margin: 0;
  color: #a9c5e1;
  font-size: clamp(13px, 1.3vw, 17px);
  font-weight: 500;
  text-align: center;
}

.form-input-panel {
  width: 100%;
  padding: 22px 28px 20px;
  border: 1px solid rgba(48, 102, 155, 0.78);
  border-radius: 14px;
  background: rgba(3, 18, 35, 0.58);
  box-shadow: inset 0 1px 0 rgba(127, 185, 238, 0.06), 0 14px 30px rgba(0, 0, 0, 0.22);
}

.controls-bar .form-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.92fr);
  gap: 14px;
  align-items: end;
}

.controls-bar .form-field {
  align-items: stretch;
  gap: 6px;
}

.controls-bar .form-field label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #f6f8fb;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.form-label-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.controls-bar .form-field select,
.controls-bar .form-field input {
  width: 100%;
  min-height: 48px;
  height: 48px;
  border: 1px solid rgba(80, 132, 184, 0.52);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(35, 68, 101, 0.94), rgba(23, 49, 78, 0.98));
  color: #f8fafc;
  font-size: 17px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 16px rgba(0, 0, 0, 0.18);
}

.controls-bar .form-field select {
  min-width: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23f4f7fb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>"), linear-gradient(180deg, rgba(35, 68, 101, 0.94), rgba(23, 49, 78, 0.98));
  background-repeat: no-repeat;
  background-position: right 18px center, 0 0;
  background-size: 18px, auto;
}

.controls-bar #selYear {
  padding-left: 18px;
  padding-right: 18px;
}

.controls-bar .btn-calcular {
  grid-column: auto;
  width: 100%;
  min-height: 50px;
  height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(180deg, #ffc653, #eeb33f);
  color: #061a31;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.controls-bar .btn-calcular-icon,
.controls-bar .btn-calcular-arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.controls-bar .btn-calcular-arrow {
  margin-left: 14px;
}

.controls-bar .nav-buttons-group {
  width: min(650px, 100%);
  min-height: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 auto;
  padding: 0 12px;
  border: 1px solid rgba(44, 101, 157, 0.7);
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 48, 78, 0.86), rgba(8, 27, 50, 0.94));
}

.controls-bar .nav-buttons-group .btn {
  min-width: 0;
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #b9cce0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.controls-bar .nav-buttons-group .btn:focus,
.controls-bar .nav-buttons-group .btn:active {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  outline: none;
}

.controls-bar .nav-buttons-group .btn + .btn {
  border-left: 1px solid rgba(92, 145, 194, 0.25);
}

.controls-bar .nav-buttons-group .btn:hover,
.controls-bar .nav-buttons-group .btn:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  color: #f5c85b;
  text-shadow: 0 0 10px rgba(245, 200, 91, 0.42);
  outline: none;
}

.controls-bar .nav-buttons-group .btn:first-child:hover,
.controls-bar .nav-buttons-group .btn:first-child:focus-visible {
  border-radius: 999px 0 0 999px;
}

.controls-bar .nav-buttons-group .btn:last-child:hover,
.controls-bar .nav-buttons-group .btn:last-child:focus-visible {
  border-radius: 0 999px 999px 0;
}

.controls-bar .btn-anterior:hover,
.controls-bar .btn-hoy:hover,
.controls-bar .btn-siguiente:hover {
  color: #f5c85b;
  text-shadow: 0 0 10px rgba(245, 200, 91, 0.42);
}

@media (max-width: 768px) {
  .form-input-panel {
    padding: 18px 10px 16px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .controls-bar .form-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .controls-bar .btn-calcular {
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  .controls-bar .form-field label {
    gap: 4px;
    font-size: 12px;
  }

  .form-label-icon {
    width: 15px;
    height: 15px;
  }

  .controls-bar .form-field select,
  .controls-bar .form-field input,
  .controls-bar .btn-calcular {
    min-height: 42px;
    height: 42px;
    font-size: 15px;
  }

  .controls-bar .form-field select {
    padding-left: 6px;
    padding-right: 22px;
    background-position: right 5px center, 0 0;
    background-size: 13px, auto;
  }

  .controls-bar #selYear {
    padding-left: 6px;
    padding-right: 6px;
  }
}

@media (max-width: 480px) {
  .form-input-panel {
    padding: 16px 7px 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .controls-bar .form-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .controls-bar .btn-calcular {
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  .controls-bar .nav-buttons-group {
    border-radius: 16px;
  }

  .controls-bar .form-field label {
    font-size: 11px;
  }

  .controls-bar .form-field select,
  .controls-bar .form-field input,
  .controls-bar .btn-calcular {
    font-size: 13px;
  }

  .controls-bar .btn-calcular-icon,
  .controls-bar .btn-calcular-arrow {
    width: 14px;
    height: 14px;
  }

  .controls-bar .btn-calcular-arrow {
    margin-left: 2px;
  }
}

@media (max-width: 430px) {
  .home-blog-grid {
    --home-blog-card-title-size: 15px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Fecha maya con el acabado compacto de referencia en todas las pantallas */
.maya-app {
  padding-top: clamp(18px, 2.5vw, 34px);
}

.maya-panel {
  margin-top: 8px;
}

.form-title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0 auto 8px;
  color: #f2bd4a;
}

.form-title-ornament::before,
.form-title-ornament::after {
  content: "";
  width: 82px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f2c65e, transparent);
}

.form-title-ornament span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 8px;
  font-size: 29px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(242, 198, 94, 0.36);
  transform: rotate(45deg);
}

.form-title-ornament span::first-letter {
  display: block;
}

.fecha-maya-display {
  width: min(820px, 100%);
  margin: 14px auto 0;
  padding: 16px 82px 34px;
  border-radius: 0;
  background: transparent;
  font-size: clamp(24px, 3.2vw, 36px);
  letter-spacing: 1px;
}

.fecha-maya-display::before {
  inset: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent, #f2c65e 48%, transparent) 20% center / 58px 2px no-repeat,
    linear-gradient(90deg, transparent, #f2c65e 48%, transparent) 80% center / 58px 2px no-repeat;
  box-shadow: none;
}

.fecha-maya-display::after {
  display: none;
}

.fecha-larga-display {
  margin: -29px auto 26px;
  padding: 0;
  font-size: 15px;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .controls-bar .controls-wrapper {
    gap: 12px;
  }

  .form-heading {
    gap: 0;
  }

  .form-title-ornament {
    gap: 10px;
    margin-bottom: 5px;
  }

  .form-title-ornament::before,
  .form-title-ornament::after {
    width: 42px;
  }

  .form-title-ornament span {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .fecha-maya-display {
    width: min(420px, 100%);
    margin-top: 8px;
    padding: 12px 48px 28px;
    font-size: clamp(20px, 6vw, 28px);
    letter-spacing: 0.5px;
  }

  .fecha-maya-display::before {
    background:
      linear-gradient(90deg, transparent, #f2c65e 48%, transparent) left center / 36px 2px no-repeat,
      linear-gradient(90deg, transparent, #f2c65e 48%, transparent) right center / 36px 2px no-repeat;
  }

  .fecha-larga-display {
    margin-top: -25px;
    font-size: 13px;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 768px) {
  .fecha-maya-display {
    width: min(420px, 100%);
    margin: 8px auto 0;
    padding: 12px 48px 28px;
    border-radius: 0;
    font-size: clamp(20px, 6vw, 28px);
    letter-spacing: 0.5px;
    background: transparent;
  }

  .fecha-maya-display::before {
    inset: 0;
    border: 0;
    border-radius: 0;
    background:
      linear-gradient(#d8a13c, #d8a13c) left center / 36px 1px no-repeat,
      linear-gradient(#d8a13c, #d8a13c) right center / 36px 1px no-repeat;
    box-shadow: none;
  }

  .fecha-maya-display::after {
    display: none;
  }

  .fecha-larga-display {
    margin: -25px auto 22px;
    padding: 0;
    font-size: 13px;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 760px) {
  .maya-app {
    padding-inline: 6px;
  }

  .maya-panel {
    padding-inline: 8px;
  }

  main.blog-main,
  main.calendar-main,
  main.cruzmaya-main,
  main.donar-main,
  main.energias-main,
  main.nahual-main,
  main.winales-main {
    padding-inline: 6px;
  }

  main.account-main,
  main.legal-main {
    width: min(calc(100% - 12px), 560px);
  }

  main.legal-main {
    padding-inline: 6px;
  }

  .site-footer-main,
  .site-footer-bottom p {
    width: min(calc(100% - 12px), 460px);
  }
}

