/* Paleta alineada al logo (magenta → naranja) sobre negro */
:root {
  --fm-bg: #000000;
  --fm-surface: #0c0c0c;
  --fm-surface-elevated: #141414;
  --fm-text: #eceae7;
  --fm-text-muted: #9c9690;
  --fm-accent: #ff6a4d;
  --fm-accent-soft: rgba(255, 106, 77, 0.18);
  --fm-accent-magenta: #e8487f;
  --fm-border-warm: rgba(255, 120, 90, 0.28);
  --fm-link: #ffb39e;
  --fm-link-hover: #ffd4c8;
}

html,
body {
  min-height: 100%;
}

body {
  background-color: var(--fm-bg);
  color: var(--fm-text);
}

/* Layout con barra social fija arriba y pie fijo abajo */
body.page-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}

.top-social {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1040;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
}

.top-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.55rem;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s, filter 0.2s;
}

/* Estado base ya con color de marca (no solo al hover) */
.top-social__link--instagram {
  background: linear-gradient(135deg, #c73868 0%, #e85d42 45%, #d9782e 100%);
  border: 1px solid rgba(255, 190, 160, 0.45);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(232, 72, 127, 0.35);
}

.top-social__link--whatsapp {
  background: linear-gradient(180deg, #22c55e 0%, #0f766e 100%);
  border: 1px solid rgba(120, 230, 180, 0.4);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(34, 197, 94, 0.3);
}

.top-social__link:hover {
  color: #fff;
  transform: scale(1.07);
  filter: brightness(1.08);
}

.top-social__link:focus-visible {
  color: #fff;
  transform: scale(1.07);
  filter: brightness(1.08);
  outline: 2px solid rgba(255, 210, 190, 0.85);
  outline-offset: 3px;
}

.top-social__link--instagram:hover,
.top-social__link--instagram:focus-visible {
  background: linear-gradient(135deg, #e8487f 0%, #ff8a5c 50%, #f09433 100%);
  border-color: rgba(255, 200, 170, 0.65);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 26px rgba(232, 72, 127, 0.55);
}

.top-social__link--whatsapp:hover,
.top-social__link--whatsapp:focus-visible {
  background: linear-gradient(180deg, #25d366 0%, #128c7e 100%);
  border-color: rgba(130, 240, 190, 0.65);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 22px rgba(37, 211, 102, 0.45);
}

.page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 0.65rem 1rem;
  background: var(--fm-surface-elevated);
  border-top: 1px solid var(--fm-border-warm);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  color: var(--fm-text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.page-footer__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
}

.page-footer__left,
.page-footer__right {
  margin: 0;
}

.page-footer__left {
  text-align: left;
}

.page-footer__right {
  text-align: right;
}

.page-footer a {
  color: var(--fm-link);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.page-footer a:hover {
  color: var(--fm-link-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 576px) {
  .page-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .page-footer__left,
  .page-footer__right {
    text-align: center;
    width: 100%;
  }
}

body:not(.page-layout) {
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  height: 100%;
}

.form-signin {
  width: 100%;
  max-width: 900px;
  padding: 15px;
  margin: auto;
}

body.page-layout main.form-signin.flex-grow-1 {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: auto;
  margin-bottom: auto;
}

.form-signin .checkbox {
  font-weight: 400;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Reproductor acorde al tema oscuro */
body.page-layout .video-js {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--fm-border-warm);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
}

.windy-embed {
  width: 100%;
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--fm-border-warm);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.windy-embed iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}