/**
 * Feminario 2026 — identidad visual
 * Fondos #f3e9d8 · Textos #32271d · Botones #948c54 · Acento #d9b274
 * Cuerpo: Montserrat · Títulos: Avelire
 * Slogan: El eco de una mujer transformadora
 */
@font-face {
  font-family: 'Avelire';
  src: url('fonts/AVELIRE.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --fem-bg: #f3e9d8;
  --fem-bg-soft: #ebe0cc;
  --fem-bg-card: #fffaf2;
  --fem-text: #32271d;
  --fem-text-muted: #5c5248;
  --fem-btn: #948c54;
  --fem-btn-hover: #7d7646;
  --fem-accent: #d9b274;
  --fem-accent-soft: #e8d4b0;
  --fem-border: #d4c4a8;
  --fem-danger: #a63d3d;
  --fem-ok: #4a7c59;
  --fem-dark: #0a0a0a;
  --fem-font-body: 'Montserrat', system-ui, sans-serif;
  --fem-font-display: 'Avelire', Georgia, 'Times New Roman', serif;
}

body.fem-theme {
  margin: 0;
  font-family: var(--fem-font-body);
  background-color: var(--fem-bg);
  color: var(--fem-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fem-theme h1,
.fem-theme h2,
.fem-theme h3,
.fem-theme .font-display {
  font-family: var(--fem-font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--fem-text);
}

.fem-theme .fem-header h1,
.fem-theme .fem-header-title {
  color: var(--fem-bg);
}

/* ——— Cabecera marca ——— */
.fem-header {
  width: 100%;
  align-self: stretch;
  background-color: var(--fem-dark);
  background-image: url('img/fondo-floral.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  text-align: center;
  padding: 28px 16px 22px;
  border-bottom: 2px solid var(--fem-accent);
  box-sizing: border-box;
}

.fem-header-logo {
  display: block;
  margin: 0 auto 12px;
  max-width: min(280px, 78vw);
  height: auto;
}

.fem-header-title {
  margin: 0;
  font-family: var(--fem-font-display);
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  letter-spacing: 0.08em;
  color: var(--fem-bg) !important;
  font-weight: 400;
}

.fem-header-slogan {
  margin: 8px 0 0;
  font-family: var(--fem-font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fem-accent);
}

/* ——— Footer marca ——— */
.fem-footer {
  width: 100%;
  align-self: stretch;
  margin-top: auto;
  background-color: var(--fem-dark);
  background-image: url('img/fondo-floral.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  color: var(--fem-bg);
  padding: 48px 20px 36px;
  text-align: center;
  border-top: 3px solid var(--fem-accent);
  box-sizing: border-box;
}

.fem-footer-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.fem-footer-slogan {
  margin: 0;
  font-family: var(--fem-font-body);
  font-size: clamp(0.72rem, 2.4vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fem-accent);
  line-height: 1.5;
  max-width: 22em;
}

.fem-footer-rios {
  display: block;
  margin-top: 8px;
  max-width: 150px;
  height: auto;
  /* Logo café sobre fondo oscuro → tono crema */
  filter: brightness(0) invert(0.92) sepia(0.25) saturate(1.2) hue-rotate(5deg);
}

.fem-footer-meta {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #c4b89a;
  line-height: 1.5;
}

.fem-footer-by {
  margin: 8px 0 0;
  font-family: var(--fem-font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b89a;
}

.fem-toast-host {
  position: fixed;
  z-index: 2147483000;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  width: min(520px, calc(100% - 24px));
  pointer-events: none;
}

.fem-toast {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 14px 14px;
  background: var(--fem-bg-card);
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(50, 39, 29, 0.18);
  border: 1px solid var(--fem-border);
  color: var(--fem-text);
  font-family: var(--fem-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  animation: fem-toast-in 0.28s ease;
}

.fem-toast-timer {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--fem-danger);
  transform-origin: left center;
  animation: fem-toast-timer linear forwards;
  animation-duration: var(--fem-toast-ms, 7s);
}

.fem-toast.is-ok .fem-toast-timer {
  background: var(--fem-ok);
}

.fem-toast.is-warn .fem-toast-timer {
  background: var(--fem-btn);
}

.fem-toast.is-out {
  animation: fem-toast-out 0.22s ease forwards;
}

.fem-toast.is-out .fem-toast-timer {
  animation-play-state: paused;
}

.fem-toast-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #eef1e6;
  background: var(--fem-danger);
}

.fem-toast.is-ok .fem-toast-icon {
  background: var(--fem-ok);
}

.fem-toast.is-warn .fem-toast-icon {
  background: var(--fem-btn);
}

.fem-toast-body {
  flex: 1;
  min-width: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.fem-toast-close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--fem-text-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.fem-toast-close:hover {
  color: var(--fem-text);
}

@keyframes fem-toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fem-toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes fem-toast-timer {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* Móvil: toasts arriba (mejor visibilidad con teclado y formularios) */
@media (max-width: 768px) {
  .fem-toast-host {
    top: max(12px, env(safe-area-inset-top, 0px));
    bottom: auto;
    width: min(520px, calc(100% - 16px));
  }

  .fem-toast {
    animation-name: fem-toast-in-mobile;
  }

  .fem-toast.is-out {
    animation-name: fem-toast-out-mobile;
  }
}

@keyframes fem-toast-in-mobile {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fem-toast-out-mobile {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}
