@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;600&display=swap');

/* ---------------------------------------
   Panel FotoExpress – estilo limpio
--------------------------------------- */
body.fx-panel-body {
    --fx-panel-bg: #f5f6fb;
    --fx-panel-shell: #eef1f8;
    --fx-panel-surface: #ffffff;
    --fx-panel-surface-alt: #f9faff;
    --fx-panel-border: rgba(15, 23, 42, 0.08);
    --fx-panel-text: #0f172a;
    --fx-panel-text-soft: rgba(15, 23, 42, 0.55);
    --fx-panel-accent: #5568f2;
    --fx-panel-accent-soft: rgba(85, 104, 242, 0.15);
    --fx-panel-radius-lg: 22px;
    --fx-panel-radius-md: 16px;
    --fx-panel-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
    --fx-accent: var(--fx-panel-accent);
    --fx-accent-soft: var(--fx-panel-accent-soft);
    --fx-border: var(--fx-panel-border);
    --fx-border-strong: rgba(15, 23, 42, 0.16);
    --fx-surface: var(--fx-panel-surface);
    --fx-text: var(--fx-panel-text);
    --fx-text-soft: var(--fx-panel-text-soft);
    --fx-shadow-soft: var(--fx-panel-shadow);

    min-height: 100vh;
    background: var(--fx-panel-bg);
    color: var(--fx-panel-text);
    font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fx-panel-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    background: linear-gradient(180deg, #f8f9fd, #f2f4fa);
}

.fx-panel-sidebar {
    background: #fff;
    border-right: 1px solid rgba(15, 23, 42, 0.06);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.fx-panel-logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fx-panel-text);
}
.fx-panel-logo span {
    color: var(--fx-panel-accent);
}

.fx-panel-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fx-panel-nav-link {
    display: block;
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--fx-panel-text-soft);
    text-decoration: none;
    font-size: 0.92rem;
    transition: background 0.18s ease, color 0.18s ease;
}

.fx-panel-nav-link:hover {
    background: rgba(85, 104, 242, 0.07);
    color: var(--fx-panel-text);
}

.fx-panel-nav-link.is-active {
    background: var(--fx-panel-accent-soft);
    color: var(--fx-panel-accent);
    font-weight: 600;
}

.fx-panel-sidebar-foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fx-panel-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fx-panel-user-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.fx-panel-user-role {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--fx-panel-text-soft);
}

.fx-panel-logout {
    font-size: 0.82rem;
    text-decoration: none;
    color: var(--fx-panel-text-soft);
    transition: color 0.18s ease;
}
.fx-panel-logout:hover {
    color: var(--fx-panel-accent);
}

.fx-panel-main {
    background: var(--fx-panel-shell);
    padding: 36px 42px 60px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fx-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.fx-panel-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.fx-panel-eyebrow {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--fx-panel-text-soft);
}

.fx-panel-actions {
    min-height: 48px;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.fx-panel-actions-placeholder {
    font-size: 0.82rem;
    color: var(--fx-panel-text-soft);
}

.fx-panel-text-soft {
    color: var(--fx-panel-text-soft);
}

.fx-panel-content {
    background: var(--fx-panel-surface);
    border: 1px solid var(--fx-panel-border);
    border-radius: var(--fx-panel-radius-lg);
    padding: 30px;
    box-shadow: var(--fx-panel-shadow);
}

.fx-dashboard-intro {
    margin-bottom: 24px;
}
.fx-dashboard-intro h2 {
    font-size: 1.8rem;
    margin-top: 8px;
}
.fx-dashboard-intro p {
    color: var(--fx-panel-text-soft);
    margin-top: 6px;
}

.fx-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.fx-card {
    background: var(--fx-panel-surface);
    border: 1px solid var(--fx-panel-border);
    border-radius: var(--fx-panel-radius-md);
    padding: 18px 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.fx-card h2 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--fx-panel-text-soft);
    margin-bottom: 8px;
}

.fx-card .fx-value {
    font-size: 1.6rem;
    font-weight: 600;
}

.fx-card .fx-sub {
    font-size: 0.84rem;
    margin-top: 6px;
    color: var(--fx-panel-text-soft);
}

.fx-dashboard-toolbar {
    margin-top: 26px;
}

.fx-dashboard-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.fx-dashboard-table {
    margin-top: 26px;
}

.fx-session-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.fx-session-hero-stats {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.fx-session-summary .fx-session-summary-text {
    font-size: 1rem;
    color: var(--fx-panel-text);
}

.fx-session-galleries header {
    margin-top: 34px;
    margin-bottom: 16px;
}
.fx-session-galleries header h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.fx-session-galleries header p {
    color: var(--fx-panel-text-soft);
}

.fx-session-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.fx-session-gallery-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--fx-panel-border);
    border-radius: var(--fx-panel-radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fx-session-gallery-info h4 {
    margin: 0;
    font-size: 1.1rem;
}
.fx-session-gallery-info p {
    color: var(--fx-panel-text-soft);
    font-size: 0.86rem;
    margin: 4px 0;
}

.fx-session-gallery-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}
.fx-session-gallery-preview img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}
.fx-session-gallery-placeholder {
    grid-column: span 2;
    padding: 20px;
    text-align: center;
    border: 1px dashed var(--fx-panel-border);
    border-radius: 12px;
    color: var(--fx-panel-text-soft);
}

.fx-session-gallery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 940px) {
    .fx-panel-shell {
        grid-template-columns: 1fr;
    }
    .fx-panel-sidebar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        border-right: none;
        border-bottom: 1px solid var(--fx-panel-border);
    }
    .fx-panel-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .fx-panel-main {
        padding: 24px;
    }
}

/* ========= LANDING FOTOEXPRESS · ESTILO CAPTURE ONE ========= */

body.fx-landing-body {
  margin: 0;
  background: #ffffff;
  color: #111111;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", "Segoe UI", sans-serif;
}

/* Contenedor general */

.fx-landing-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 72px;
}

/* HERO */

.fx-landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 2.3fr);
  gap: 56px;
  align-items: center;
  padding: 96px 0 80px;
  border-bottom: 1px solid #e8e8e8;
}

.fx-landing-hero-masthead {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 12px;
}

.fx-landing-hero-title {
  margin: 0 0 18px;
  line-height: 1.18;
}

.fx-landing-hero-title span {
  display: block;
  font-size: 24px;
  font-weight: 300;
}

.fx-landing-hero-title strong {
  display: block;
  font-size: 40px;
  font-weight: 600;
}

.fx-landing-hero-copy {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: #333333;
  max-width: 520px;
}

.fx-landing-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.fx-landing-hero-actions .fx-btn {
  border-radius: 999px;
  padding: 10px 22px;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fx-landing-hero-actions .fx-btn:hover {
  background: #000000;
}

.fx-landing-hero-actions span {
  font-size: 13px;
  color: #666666;
}

/* Stats a la derecha */

.fx-landing-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.fx-landing-hero-stat {
  min-width: 260px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #e4e4e4;
  background: #fafafa;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #444444;
}

/* Nav line debajo del hero */

.fx-landing-navline {
  padding: 22px 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999999;
  border-bottom: 1px solid #efefef;
}

/* SECCIONES GENÉRICAS */

.fx-landing-section {
  padding: 64px 0;
  border-bottom: 1px solid #f0f0f0;
}

.fx-landing-section:last-of-type {
  border-bottom: none;
}

.fx-landing-section > header p {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999999;
}

.fx-landing-section > header h2 {
  margin: 0 0 24px;
  font-size: 30px;
  font-weight: 600;
}

/* Servicios (3 columnas tipo cards) */

.fx-landing-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.fx-landing-service {
  padding: 18px 18px 20px;
  border-radius: 12px;
  border: 1px solid #eeeeee;
  background: #fbfbfb;
}

.fx-landing-service h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
}

.fx-landing-service p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555555;
}

/* SHOWCASE (works) */

.fx-landing-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.fx-landing-showcase figure {
  margin: 0;
}

.fx-landing-showcase-cover {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  aspect-ratio: 4 / 3;
}

.fx-cover-1 {
  background-image: linear-gradient(135deg, #f4c8aa, #c47d67);
}
.fx-cover-2 {
  background-image: linear-gradient(135deg, #90a8ff, #3a67f2);
}
.fx-cover-3 {
  background-image: linear-gradient(135deg, #b4e1d6, #3e7562);
}

.fx-landing-showcase figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #444444;
}

/* FOOTER */

.fx-landing-footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid #e5e5e5;
  font-size: 12px;
  color: #777777;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .fx-landing-shell {
    padding: 24px 16px 56px;
  }

  .fx-landing-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 72px 0 56px;
  }

  .fx-landing-hero-copy {
    max-width: none;
  }

  .fx-landing-services,
  .fx-landing-showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  .fx-landing-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ---------------------------------------
   Galería pública
--------------------------------------- */
.fx-gallery-body {
    margin: 0;
    min-height: 100vh;
    padding: 48px 20px 60px;
    background: #f4f6fb;
    color: #0f172a;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --fx-panel-accent: #4f6af2;
    --fx-panel-text-soft: rgba(15,23,42,0.55);
}

.fx-gallery-hero {
    max-width: 1100px;
    margin: 0 auto 32px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.fx-gallery-eyebrow {
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: rgba(15,23,42,0.45);
}

.fx-gallery-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin: 10px 0;
}
.fx-gallery-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fx-gallery-pill {
    padding: 6px 14px;
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 999px;
    font-size: 0.85rem;
    color: rgba(15,23,42,0.7);
    background: #fff;
}

.fx-gallery-grid {
    max-width: 1100px;
    margin: 0 auto;
    column-count: 3;
    column-gap: 14px;
}

.fx-gallery-item {
    break-inside: avoid;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 8px 20px rgba(15,23,42,0.08);
    background: #fff;
}

.fx-gallery-item img {
    width: 100%;
    display: block;
    cursor: zoom-in;
}

.fx-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.fx-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 14px;
}

.fx-lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
}

@media (max-width: 820px) {
    .fx-gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 520px) {
    .fx-gallery-grid {
        column-count: 1;
    }
}

/* ---------------------------------------
   Login
--------------------------------------- */
.fx-login-body {
    min-height: 100vh;
    margin: 0;
    font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #ecf1ff, #fefefe);
    color: #0f172a;
}

.fx-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.fx-login-panel {
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.fx-login-panel-info {
    background: linear-gradient(180deg, #1a41f4, #0f2f9c);
    color: rgba(255,255,255,0.95);
    border-radius: 24px 0 0 24px;
}

.fx-login-logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.fx-login-panel-info p {
    font-size: 1.05rem;
    max-width: 320px;
    color: rgba(255, 255, 255, 0.85);
}

.fx-login-highlight {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.fx-login-panel-form {
    background: #f6f7fb;
}

.fx-login-form-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 25px 60px rgba(15,23,42,0.12);
}

.fx-login-head h1 {
    font-size: 1.8rem;
    margin-bottom: 4px;
}
.fx-login-head p {
    color: rgba(15,23,42,0.55);
}

.fx-login-error {
    background: #fff2f2;
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #b91c1c;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.fx-login-success {
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #047857;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.fx-login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.fx-login-form label span {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 6px;
    color: rgba(15,23,42,0.6);
}

.fx-login-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.12);
    background: #f9fbff;
    color: #0f172a;
    font-size: 1rem;
}

.fx-login-form input:focus {
    outline: none;
    border-color: rgba(85, 104, 242, 0.6);
    box-shadow: 0 0 0 2px rgba(85, 104, 242, 0.15);
}

.fx-login-form .fx-btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
}

/* ---------------------------------------
   Estilos anteriores (landing, público)
--------------------------------------- */
:root {
    color-scheme: light;

    /* Paleta FotoExpress estilo Glide */
    --fx-bg: #eef2ff;               /* fondo general suave lila/azul */
    --fx-shell: #f9fafb;            /* fondo de la app */
    --fx-surface: #ffffff;          /* tarjetas, modales */
    --fx-surface-subtle: #f3f4f6;

    --fx-border: #e5e7eb;
    --fx-border-strong: #d1d5db;

    --fx-accent: #4f46e5;           /* primary (indigo) */
    --fx-accent-soft: #6366f1;
    --fx-accent-bg: #eef2ff;

    --fx-danger: #ef4444;

    --fx-text: #111827;
    --fx-text-soft: #6b7280;
    --fx-text-muted: #9ca3af;

    --fx-radius-lg: 18px;
    --fx-radius-md: 12px;
    --fx-radius-pill: 999px;

    --fx-shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.12);
    --fx-font: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Segoe UI", sans-serif;
}

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

body {
    font-family: var(--fx-font);
    color: var(--fx-text);
    background: radial-gradient(circle at top, #e0e7ff 0, #f9fafb 55%);
}

/* LEGACY: Layout admin anterior (.fx-admin-layout, sidebar, nav y main). No usar en nuevos templates. */
/* Layout Admin */
.fx-admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: transparent;
}

/* Sidebar */
.fx-sidebar {
    background: rgba(249, 250, 251, 0.96);
    backdrop-filter: blur(18px);
    border-right: 1px solid var(--fx-border);
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fx-sidebar-logo {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: #111827;
}
.fx-sidebar-logo span {
    color: var(--fx-accent);
}

.fx-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.fx-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--fx-text-soft);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.fx-nav-link:hover {
    background: #e5e7eb;
    color: #111827;
}

.fx-nav-link.active {
    background: var(--fx-accent-bg);
    color: var(--fx-accent);
    font-weight: 500;
}

.fx-sidebar-foot {
    margin-top: auto;
    font-size: 0.72rem;
    color: var(--fx-text-muted);
}

/* Contenido admin */
.fx-main {
    padding: 26px 26px 32px;
    background: transparent;
}

/* Cabecera principal */
.fx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.fx-header h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111827;
}

.fx-header p {
    font-size: 0.85rem;
    color: var(--fx-text-soft);
}

.fx-pill {
    padding: 6px 12px;
    border-radius: var(--fx-radius-pill);
    border: 1px solid var(--fx-border);
    font-size: 0.78rem;
    color: var(--fx-text-soft);
    background: rgba(255,255,255,0.95);
}

/* Cards / métricas */
.fx-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.fx-card {
    background: var(--fx-surface);
    border-radius: var(--fx-radius-lg);
    border: 1px solid var(--fx-border);
    padding: 14px 14px 12px;
    box-shadow: var(--fx-shadow-soft);
}

.fx-card h2 {
    font-size: 0.78rem;
    color: var(--fx-text-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.fx-card .fx-value {
    font-size: 1.35rem;
    margin-top: 6px;
    font-weight: 600;
}

.fx-card .fx-sub {
    margin-top: 2px;
    font-size: 0.8rem;
    color: var(--fx-text-soft);
}

/* LEGACY: Toolbar clásico del panel anterior. No usar en nuevos templates. */
.fx-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

/* Inputs */
.fx-input-text,
.fx-select {
    padding: 8px 12px;
    border-radius: var(--fx-radius-pill);
    border: 1px solid var(--fx-border);
    background: var(--fx-surface);
    color: var(--fx-text);
    font-size: 0.85rem;
    outline: none;
    box-shadow: 0 0 0 1px transparent;
    transition: box-shadow 0.12s ease, border-color 0.12s ease,
                background 0.12s ease;
}

.fx-input-text::placeholder {
    color: var(--fx-text-muted);
}

.fx-input-text:focus,
.fx-select:focus {
    border-color: var(--fx-accent-soft);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.4);
}

/* Botones */
.fx-btn {
    border-radius: var(--fx-radius-pill);
    border: 1px solid transparent;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: background 0.15s ease, transform 0.08s ease,
                box-shadow 0.15s ease, color 0.12s ease, border-color 0.12s ease;
}

.fx-btn:active {
    transform: translateY(1px);
}

.fx-btn-primary {
    background: var(--fx-accent);
    color: #f9fafb;
    box-shadow: 0 10px 20px rgba(79,70,229,0.35);
}

.fx-btn-primary:hover {
    background: var(--fx-accent-soft);
}

.fx-btn-ghost {
    background: var(--fx-surface);
    border-color: var(--fx-border);
    color: var(--fx-text-soft);
}

.fx-btn-ghost:hover {
    border-color: var(--fx-border-strong);
    color: #111827;
}

.fx-btn-danger {
    background: var(--fx-danger);
    color: #fef2f2;
}

/* Tabla */
.fx-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--fx-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--fx-shadow-soft);
}

.fx-table th,
.fx-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--fx-border);
    font-size: 0.8rem;
}

.fx-table th {
    text-align: left;
    color: var(--fx-text-soft);
    background: var(--fx-surface-subtle);
    font-weight: 500;
}

.fx-table tbody tr:last-child td {
    border-bottom: none;
}

.fx-table tbody tr:hover {
    background: #f9fafb;
}

/* Tags / chips */
.fx-tag {
    padding: 3px 9px;
    border-radius: var(--fx-radius-pill);
    border: 1px solid var(--fx-border);
    font-size: 0.72rem;
    color: var(--fx-text-soft);
    background: #f9fafb;
}

/* Modal QR genérico */
.fx-qr-modal,
#qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.32);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.fx-qr-box,
#qr-box {
    background: var(--fx-surface);
    padding: 20px 18px;
    border-radius: 22px;
    border: 1px solid var(--fx-border);
    text-align: center;
    min-width: 280px;
    box-shadow: var(--fx-shadow-soft);
}

#qr-code {
    margin: 10px auto;
    padding: 24px;
    background: #ffffff;
    box-sizing: content-box;
    overflow: visible;
}

#qr-code,
#qr-code * {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
}

#qr-code canvas {
    display: block;
}

#qr-code img,
#qr-code canvas {
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

.fx-qr-link,
#qr-link {
    font-size: 0.78rem;
    margin-top: 6px;
    color: var(--fx-text-soft);
    word-break: break-all;
}

#qr-close {
    margin-top: 12px;
    cursor: pointer;
    color: var(--fx-accent);
    font-size: 0.85rem;
}

/* LEGACY: Wrapper del kiosko clásico. No usar en nuevos templates. */
.kiosko-wrap {
    /* clases adicionales en kiosko/index.php usan estas vars */
}

/* Responsive admin */
@media (max-width: 900px) {
    .fx-admin-layout {
        grid-template-columns: 1fr;
    }
    .fx-sidebar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 20;
        backdrop-filter: blur(18px);
    }
    .fx-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .fx-main {
        padding: 18px 16px 26px;
    }
}

/* ================================
   Layout público (galería, upload)
   ================================ */

.fx-public-shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: radial-gradient(circle at top, #e0f2fe 0, #f9fafb 55%);
    padding: 24px 16px;
}

.fx-public-card {
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255,255,255,0.96);
    border-radius: 24px;
    border: 1px solid var(--fx-border);
    box-shadow: var(--fx-shadow-soft);
    padding: 20px 22px 24px;
}

/* Cabeceras públicas */
.fx-public-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.fx-public-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}
.fx-public-sub {
    font-size: 0.85rem;
    color: var(--fx-text-soft);
}

/* Badges */
.fx-badge {
    padding: 4px 10px;
    border-radius: var(--fx-radius-pill);
    background: #f9fafb;
    border: 1px solid var(--fx-border);
    font-size: 0.75rem;
    color: var(--fx-text-soft);
}

/* LEGACY: Grilla pública anterior. No usar en nuevos templates. */
.fx-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.fx-photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #e5e7eb;
}
.fx-photo-item img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.fx-photo-item:hover img {
    transform: scale(1.03);
}

/* Pie pequeño */
.fx-public-foot {
    margin-top: 18px;
    font-size: 0.78rem;
    color: var(--fx-text-muted);
    text-align: right;
}

/* Cuerpo simple centrado (mensajes, estados vacíos) */
.fx-empty-state {
    padding: 40px 0 10px;
    text-align: center;
}
.fx-empty-state h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.fx-empty-state p {
    font-size: 0.85rem;
    color: var(--fx-text-soft);
}

/* Formularios públicos */
.fx-public-form {
    max-width: 520px;
}
.fx-public-form label {
    display: block;
    font-size: 0.82rem;
    color: var(--fx-text-soft);
    margin-bottom: 4px;
}
.fx-public-form .field {
    margin-bottom: 13px;
}
.fx-file-info {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--fx-text-soft);
}
.fx-file-info.empty {
    color: #f97316;
}
