/* Colegio La Inmaculada — estilos de marca */
:root {
  --blue: #0055a4;
  --blue-deep: #003d78;
  --blue-soft: #e8f1fa;
  --yellow: #ffd200;
  --yellow-deep: #e6b800;
  --ink: #0f172a;
  --muted: #5b6b7c;
  --surface: #ffffff;
  --line: rgba(0, 85, 164, 0.12);
  --shadow: 0 12px 40px rgba(0, 61, 120, 0.12);
  --radius: 18px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Source Serif 4", Georgia, serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0, 85, 164, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 210, 0, 0.18), transparent 50%),
    linear-gradient(180deg, #f4f8fc 0%, #eef3f8 40%, #f7f9fc 100%);
  background-attachment: fixed;
  line-height: 1.5;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 1rem);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Botón flotante Instalar App */
.install-bar {
  position: fixed;
  top: calc(0.65rem + env(safe-area-inset-top, 0px));
  right: 0.85rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  animation: fadeUp 0.4s ease both;
}

.install-bar[hidden] {
  display: none !important;
}

.install-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue-deep);
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
  box-shadow: 0 8px 24px rgba(230, 184, 0, 0.45), 0 2px 8px rgba(0, 61, 120, 0.15);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.install-bar__btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.install-bar__btn:active {
  transform: scale(0.97);
}

.install-bar__icon {
  width: 1.05rem;
  height: 1.05rem;
}

.install-bar__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--line);
}

.install-bar__close:hover {
  color: var(--ink);
  background: #fff;
}

.install-ios__lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.install-ios__steps {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.install-ios__hint {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.15rem;
}

.install-ios__share {
  display: inline-flex;
  vertical-align: middle;
  color: var(--blue);
  margin: 0 0.15rem;
}

.install-ios__share svg {
  width: 1.1rem;
  height: 1.1rem;
}

.install-ios__note {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
}

body.has-install-bar .topbar {
  padding-right: 9.5rem;
}

@media (max-width: 480px) {
  body.has-install-bar .topbar {
    padding-right: 0;
  }

  body.has-install-bar .topbar__inner {
    padding-top: 3.1rem;
  }
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(255, 210, 0, 0.55), 0 4px 14px rgba(0, 85, 164, 0.25);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-deep);
}

.brand__place {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-desktop {
  display: none;
  gap: 0.35rem;
}

.nav-link {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 560;
  font-size: 0.92rem;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.nav-link:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav-link.is-active {
  color: #fff;
  background: var(--blue);
}

/* Main / views */
#main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}

.view[hidden] {
  display: none !important;
}

.view.is-active {
  animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view__header {
  margin: 0.5rem 0 1.5rem;
}

.view__header--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.view__title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--blue-deep);
  letter-spacing: -0.02em;
}

.view__subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

.section-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-deep);
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(2rem, 6vw, 3.5rem) 1rem 2.5rem;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(160deg, rgba(0, 85, 164, 0.92), rgba(0, 61, 120, 0.96)),
    var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 1.75rem;
}

.hero__glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 210, 0, 0.35), transparent 65%);
  pointer-events: none;
  animation: pulseGlow 5s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(1.15); opacity: 1; }
}

.hero__logo {
  position: relative;
  width: clamp(120px, 28vw, 160px);
  height: clamp(120px, 28vw, 160px);
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px rgba(255, 210, 0, 0.85), 0 16px 36px rgba(0, 0, 0, 0.28);
  animation: logoIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes logoIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero__motto {
  position: relative;
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 600;
}

.hero__title {
  position: relative;
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__lead {
  position: relative;
  margin: 0 auto 1.5rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.hero__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font-weight: 650;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 85, 164, 0.28);
}

.btn--primary:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

.btn--accent {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
  color: var(--blue-deep);
  box-shadow: 0 10px 28px rgba(230, 184, 0, 0.45);
}

.btn--accent:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.view .btn--ghost,
.modal .btn--ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--line);
}

.view .btn--ghost:hover,
.modal .btn--ghost:hover {
  background: var(--blue-soft);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.btn--xl {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
}

.btn--icon {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--blue);
  background: var(--surface);
  border: 1px solid var(--line);
}

.btn__arrow {
  width: 1.1rem;
  height: 1.1rem;
}

/* Quick access */
.quick__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.quick__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.15rem 0.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 85, 164, 0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.quick__item:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 85, 164, 0.28);
  box-shadow: 0 10px 28px rgba(0, 85, 164, 0.12);
}

.quick__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
}

.quick__icon svg {
  width: 22px;
  height: 22px;
}

.quick__label {
  font-weight: 650;
  font-size: 0.82rem;
  color: var(--blue-deep);
  text-align: center;
}

/* Redes sociales */
.social {
  margin-top: 1.75rem;
}

.social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.social .section-title {
  text-align: center;
}

.social__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.social__btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

.social__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.social__btn--ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
  box-shadow: 0 8px 22px rgba(221, 42, 123, 0.28);
}

.social__btn--fb {
  background: #1877f2;
  box-shadow: 0 8px 22px rgba(24, 119, 242, 0.28);
}

/* Cómo llegar / Maps */
.maps-block {
  margin-top: 1.75rem;
  text-align: center;
}

.maps-block .section-title {
  text-align: center;
}

.maps-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 380px;
  margin: 0 auto;
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 85, 164, 0.08);
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.maps-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(234, 67, 53, 0.35);
  box-shadow: 0 12px 28px rgba(234, 67, 53, 0.15);
}

.maps-btn__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fce8e6;
}

.maps-btn__icon svg {
  width: 28px;
  height: 28px;
}

.maps-btn__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.maps-btn__text strong {
  font-size: 0.95rem;
  color: var(--blue-deep);
}

.maps-btn__text small {
  font-size: 0.78rem;
  color: var(--muted);
}

.maps-btn__arrow {
  color: #ea4335;
  font-weight: 700;
  font-size: 1.15rem;
}

/* Pagos */
.pay {
  display: grid;
  gap: 1.25rem;
}

.pay__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.pay__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.pay__heading {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--blue-deep);
}

.pay__text {
  margin: 0 0 1rem;
  color: var(--muted);
}

.pay__steps {
  margin: 0 0 1.4rem;
  padding-left: 1.15rem;
  color: var(--ink);
}

.pay__steps li {
  margin-bottom: 0.4rem;
}

.pay__note {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.pay__aside {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--blue-soft), #fff);
  border: 1px solid var(--line);
}

.pay__aside--wa {
  background: linear-gradient(160deg, #f0fdf4 0%, #ffffff 55%);
  border-color: rgba(37, 211, 102, 0.28);
}

.pay__aside h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--blue-deep);
}

.pay__aside--wa h3 {
  color: #075e54;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.wa-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.wa-logo svg {
  width: 28px;
  height: 28px;
}

.wa-phone {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: #128c7e;
}

.pay__help {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.wa-form {
  display: grid;
  gap: 0.8rem;
}

.wa-form__row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.75rem;
}

@media (max-width: 420px) {
  .wa-form__row {
    grid-template-columns: 1fr;
  }
}

.wa-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
}

.wa-form input,
.wa-form select {
  width: 100%;
  border: 1.5px solid rgba(18, 140, 126, 0.22);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  background: #fff;
}

.wa-form input:focus,
.wa-form select:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}

.wa-form input.is-invalid,
.wa-form select.is-invalid {
  border-color: #dc2626;
}

.btn--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  margin-top: 0.25rem;
}

.btn--whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px);
}

.btn__wa-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Filters / chips */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: 0.18s ease;
}

.chip:hover {
  border-color: rgba(0, 85, 164, 0.35);
  color: var(--blue);
}

.chip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Feed comunicados */
.feed {
  display: grid;
  gap: 0.85rem;
}

.feed-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.4s ease both;
}

.feed-item:hover {
  border-color: rgba(0, 85, 164, 0.25);
  box-shadow: 0 8px 24px rgba(0, 85, 164, 0.08);
}

.feed-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.tag--urgente {
  background: #fee2e2;
  color: #b91c1c;
}

.tag--academico {
  background: var(--blue-soft);
  color: var(--blue);
}

.tag--general {
  background: #fef9c3;
  color: #a16207;
}

.feed-item__date {
  font-size: 0.78rem;
  color: var(--muted);
}

.feed-item__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--blue-deep);
}

.feed-item__body {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feed-item__actions {
  margin-top: 0.75rem;
}

.btn-link {
  background: none;
  border: none;
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
}

.empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* Agenda */
.agenda-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.agenda-month {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-deep);
  text-transform: capitalize;
  text-align: center;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.cal-dow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  padding: 0.35rem 0;
}

.cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}

.cal-day:hover:not(:disabled) {
  background: var(--blue-soft);
}

.cal-day:disabled {
  color: #cbd5e1;
  cursor: default;
}

.cal-day.is-today {
  box-shadow: inset 0 0 0 2px var(--blue);
  color: var(--blue);
}

.cal-day.is-selected {
  background: var(--blue);
  color: #fff;
}

.cal-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow-deep);
}

.cal-day.is-selected.has-event::after {
  background: var(--yellow);
}

.event-list {
  display: grid;
  gap: 0.75rem;
}

.event-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  animation: fadeUp 0.35s ease both;
}

.event-item__date {
  width: 52px;
  text-align: center;
  background: var(--blue);
  color: #fff;
  border-radius: 12px;
  padding: 0.45rem 0.25rem;
  line-height: 1.15;
}

.event-item__day {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
}

.event-item__mon {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.event-item__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--blue-deep);
}

.event-item__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.event-item__time {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

/* Modal */
.modal {
  border: none;
  border-radius: calc(var(--radius) + 2px);
  padding: 0;
  max-width: min(440px, calc(100vw - 2rem));
  width: 100%;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
}

.modal__form {
  padding: 1.4rem 1.35rem 1.25rem;
  display: grid;
  gap: 0.9rem;
}

.modal__form h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--blue-deep);
}

.modal__form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.modal__form input,
.modal__form select,
.modal__form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

.modal__form input:focus,
.modal__form select:focus,
.modal__form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 85, 164, 0.15);
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Mobile nav */
.nav-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 0.4rem 0.35rem calc(0.4rem + var(--safe-bottom));
  box-shadow: 0 -8px 30px rgba(0, 85, 164, 0.08);
}

.nav-mobile__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--muted);
  border-radius: 12px;
  transition: color 0.15s, background 0.15s;
}

.nav-mobile__item svg {
  width: 22px;
  height: 22px;
}

.nav-mobile__item.is-active {
  color: var(--blue);
  background: var(--blue-soft);
}

/* Footer */
.footer {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 1.5rem 1.25rem 0.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer__social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  transition: transform 0.18s ease, background 0.18s ease;
}

.footer__social-link svg {
  width: 1.15rem;
  height: 1.15rem;
}

.footer__social-link:hover {
  transform: translateY(-2px);
  background: var(--blue-deep);
}

.footer p {
  margin: 0.35rem 0;
}

.footer__copy {
  font-weight: 550;
  color: var(--blue-deep);
}

.footer__credit {
  font-weight: 650;
  color: var(--ink);
}

.footer__feria {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 0.55rem !important;
}

/* Desktop */
@media (min-width: 768px) {
  body {
    padding-bottom: 1rem;
  }

  .nav-desktop {
    display: flex;
  }

  .nav-mobile {
    display: none;
  }

  .pay {
    grid-template-columns: 1.4fr 0.9fr;
    align-items: start;
  }

  .quick__grid {
    gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
  }

  .quick__item {
    flex-direction: row;
    justify-content: flex-start;
    padding: 1.15rem 1.25rem;
  }

  .quick__label {
    font-size: 0.95rem;
  }
}

@media (max-width: 380px) {
  .quick__label {
    font-size: 0.72rem;
  }

  .brand__text {
    display: none;
  }
}
