/* ============ Design tokens ============ */
:root {
	--ink: #16140f;
	--paper: #eee3c2;
	--cream: #faf3d9;
	--deep-cream: #e7ddc0;
	--blue: #4f86c6;
	--accent: #e0571e;
	--yellow: #f3c400;
	--yellow-word: #f3b50e;
	--muted: #6b6553;
	--muted-2: #8c8369;
	--footer-text: #cfc7ad;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--ink);
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
a { color: inherit; }
::selection { background: var(--ink); color: var(--cream); }

@keyframes fc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.fc-container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.fc-section { border-bottom: 2.5px solid var(--ink); padding: 64px 0; position: relative; overflow: hidden; }
.fc-bg-paper { background-color: var(--paper); background-image: radial-gradient(rgba(22,20,15,.06) 1px, transparent 1.5px); background-size: 8px 8px; }
.fc-bg-blue { background-color: var(--blue); background-image: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.6px); background-size: 6px 6px; }

/* ---- Header ---- */
.fc-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 2.5px solid var(--ink); }
.fc-header-row { padding: 13px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.fc-header-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.fc-logo-img { height: 30px; width: auto; display: block; }
.fc-pill { background: var(--ink); color: var(--cream); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; }
.fc-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; }
.fc-nav a { text-decoration: none; }

.fc-btn { display: inline-block; border: 2.5px solid var(--ink); border-radius: 3px; padding: 14px 24px; font-weight: 800; font-size: 15px; text-decoration: none; }
.fc-btn-accent { background: var(--accent); color: #fff; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); padding: 9px 16px; }
.fc-btn-ink { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 var(--accent); }
.fc-btn-cream { background: var(--cream); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.fc-btn-block { display: block; width: 100%; text-align: center; }

/* ---- Stickers / chips ---- */
.fc-sticker { display: inline-flex; align-items: center; gap: 9px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 8px 14px; font-weight: 800; font-size: 13px; letter-spacing: .04em; border-radius: 3px; }
.fc-sticker-cream { background: var(--cream); }
.fc-sticker-yellow { background: var(--yellow); }
.fc-rotate-neg { transform: rotate(-2deg); }
.fc-rotate-pos { transform: rotate(2deg); }
.fc-uppercase { text-transform: uppercase; letter-spacing: .06em; }
.fc-pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); display: inline-block; animation: fc-pulse 1.8s infinite; }

/* ---- Hero ---- */
.fc-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; }
.fc-sticker-row { display: flex; gap: 12px; margin-bottom: 24px; }
.fc-wordmark { margin: 0; font-family: 'Alfa Slab One', serif; font-size: 92px; line-height: .9; letter-spacing: -.01em; text-shadow: 4px 4px 0 var(--ink); }
.fc-wordmark-yellow { color: var(--yellow-word); }
.fc-wordmark-accent { color: var(--accent); }
.fc-subtitle { font-family: 'DM Serif Display', serif; font-size: 34px; margin-top: 14px; }
.fc-subtitle-accent { color: var(--accent); font-style: italic; }
.fc-intro-card { background: var(--cream); border: 2.5px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); border-radius: 4px; padding: 20px 22px; margin-top: 24px; max-width: 32em; }
.fc-intro-card p { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 500; }
.fc-status-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.fc-status-days { padding: 9px 15px; }
.fc-status-muted { background: var(--cream); border: 2px solid var(--ink); border-radius: 3px; padding: 10px 15px; font-weight: 700; font-size: 13px; color: var(--muted); }
.fc-cta-row { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.fc-film-frame { background: #161616; padding: 18px 10px; border-radius: 4px; border: 2.5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); transform: rotate(1.5deg); }
.fc-sprocket { height: 14px; background-image: radial-gradient(circle at 9px 7px, var(--cream) 2.3px, transparent 2.8px); background-size: 18px 14px; background-repeat: repeat-x; }
.fc-film-photo { position: relative; height: 400px; margin: 10px 0; background: repeating-linear-gradient(45deg,#211e18,#211e18 11px,#262219 11px,#262219 22px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fc-film-photo img { width: 100%; height: 100%; object-fit: cover; }
.fc-film-placeholder { text-align: center; color: #7d786c; }
.fc-film-placeholder-title { font-weight: 800; font-size: 14px; letter-spacing: .1em; }
.fc-film-tab { position: absolute; left: 14px; bottom: 14px; background: #0d0d0d; color: var(--cream); font-weight: 700; font-size: 11px; padding: 6px 10px; border-radius: 2px; }
.fc-film-dot { color: var(--accent); }

/* ---- Ediciones bar ---- */
.fc-ediciones-row { padding: 26px 0; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.fc-ediciones-chips { display: flex; gap: 12px; flex-wrap: wrap; flex: 1; }
.fc-chip { text-decoration: none; color: var(--ink); border-radius: 4px; padding: 10px 16px; display: flex; flex-direction: column; gap: 1px; }
.fc-chip-cream { background: var(--cream); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.fc-chip-yellow { background: var(--yellow); border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.fc-chip-dashed { background: rgba(250,243,217,.55); border: 2px dashed var(--ink); }
.fc-chip-title { font-weight: 800; font-size: 14px; }
.fc-chip-sub { font-size: 11px; font-weight: 600; color: var(--muted); }

/* ---- Buscador ---- */
.fc-title-tab { display: inline-flex; align-items: center; gap: 12px; background: var(--cream); border: 2.5px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); padding: 12px 26px; border-radius: 4px; }
.fc-title-tab-text { font-family: 'DM Serif Display', serif; font-size: 36px; }
.fc-search-icon-ring { width: 22px; height: 22px; border-radius: 50%; border: 5px solid var(--accent); display: inline-block; }
.fc-section-intro { font-size: 18px; font-weight: 600; max-width: 46em; margin: 28px 0 44px; }
.fc-intro-on-blue { color: #0e2a4a; }

.fc-search-card { background: var(--cream); border: 2.5px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); border-radius: 6px; padding: 28px; max-width: 780px; }
.fc-search-input-wrap { position: relative; display: flex; align-items: center; }
.fc-search-icon { position: absolute; left: 18px; }
.fc-search-input { width: 100%; font-size: 18px; font-weight: 600; padding: 17px 18px 17px 52px; border: 2.5px solid var(--ink); border-radius: 4px; outline: none; background: #fff; color: var(--ink); }
.fc-search-input::placeholder { color: #9a937c; }
.fc-search-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--muted-2); }
.fc-search-idle { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fc-search-idle-label { font-size: 12px; font-weight: 800; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.fc-search-no-results { margin-top: 22px; color: #5a5444; font-size: 15px; font-weight: 600; }
.fc-accent-text { color: var(--accent); }
.fc-search-results { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }

.fc-result-card { background: #fff; border: 2px solid var(--ink); border-left: 8px solid var(--ink); border-radius: 4px; padding: 20px 22px; }
.fc-result-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.fc-result-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.fc-result-name { font-size: 25px; font-weight: 800; margin-top: 4px; }
.fc-result-instagram { font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 2px; }
.fc-result-team { font-family: 'DM Serif Display', serif; font-size: 28px; line-height: 1.1; margin-top: 2px; }
.fc-btn-sm { white-space: nowrap; text-decoration: none; font-size: 13px; font-weight: 800; color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); border-radius: 3px; padding: 9px 14px; }
.fc-btn-yellow { background: var(--yellow); }
.fc-result-mission { font-size: 15px; color: #4a473f; font-weight: 500; margin: 14px 0 16px; max-width: 42em; }
.fc-result-footer { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: #6f6a5e; border-top: 2px solid #efe7cf; padding-top: 14px; }
.fc-result-footer-label { color: #b0a98c; }

/* ---- Equipos ---- */
.fc-equipos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 12px; }
.fc-team-card { background: var(--cream); border: 2.5px solid var(--ink); border-radius: 5px; padding: 28px; }
.fc-team-card-header { display: flex; align-items: center; gap: 16px; }
.fc-team-card-name { font-family: 'DM Serif Display', serif; font-size: 33px; }
.fc-team-mission { margin: 22px 0 0; font-size: 16px; line-height: 1.55; font-weight: 500; }
.fc-team-where { margin: 16px 0 0; font-size: 15px; line-height: 1.55; font-weight: 500; color: #4a473f; }
.fc-glyph-ring { width: 36px; height: 36px; border-radius: 50%; border-width: 7px; border-style: solid; display: inline-block; }
.fc-glyph-hatch { width: 36px; height: 36px; border-radius: 5px; border: 2.5px solid; display: inline-block; }
.fc-glyph-frame { width: 36px; height: 36px; border-radius: 4px; border-width: 7px; border-style: solid; display: inline-flex; align-items: center; justify-content: center; }
.fc-glyph-frame span { width: 10px; height: 10px; border: 2.5px solid; display: block; }

/* ---- Ruta ---- */
.fc-ruta-header-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fc-map-card { border: 2.5px solid var(--ink); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 10px 10px 0 var(--ink); margin-top: 34px; }
.fc-map-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 2.5px solid var(--ink); font-weight: 800; font-size: 12px; letter-spacing: .04em; background: var(--cream); }
.fc-map-img { display: block; width: 100%; height: auto; }
.fc-stops-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin-top: 26px; }
.fc-stop-chip { background: var(--cream); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); border-radius: 4px; padding: 14px 16px; }
.fc-stop-start { box-shadow: 4px 4px 0 var(--accent); }
.fc-stop-finish { background: var(--yellow); }
.fc-stop-label { font-size: 11px; font-weight: 800; color: var(--muted-2); }
.fc-stop-start .fc-stop-label { color: var(--accent); }
.fc-stop-finish .fc-stop-label { color: var(--ink); }
.fc-stop-name { font-weight: 800; margin-top: 6px; font-size: 15px; }

/* ---- Monitores ---- */
.fc-monitores-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 44px; margin-top: 12px; }
.fc-monitor-team-tab { display: inline-block; font-family: 'DM Serif Display', serif; font-size: 25px; background: var(--cream); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); border-radius: 3px; padding: 7px 18px; margin-bottom: 20px; }
.fc-monitor-row { display: flex; gap: 18px; flex-wrap: wrap; }
.fc-monitor-avatar-wrap { text-align: center; }
.fc-monitor-avatar, .fc-monitor-avatar-photo { width: 74px; height: 74px; border-radius: 4px; background: #fff; border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; margin: 0 auto; object-fit: cover; }
.fc-monitor-name { font-size: 14px; font-weight: 800; margin-top: 8px; color: #fff; }

/* ---- Empresas / archivo ---- */
.fc-empresas-group { margin-top: 40px; }
.fc-empresas-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.fc-company-chip { background: var(--cream); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); border-radius: 4px; padding: 13px 20px; font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; }
.fc-company-chip-lg { border-width: 2.5px; box-shadow: 5px 5px 0 var(--ink); padding: 16px 26px; font-size: 20px; }
.fc-company-logo { height: 26px; width: auto; display: block; }
.fc-company-logo-sm { height: 20px; width: auto; display: block; }
.fc-archivo { margin-top: 60px; }
.fc-archivo-card { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; background: var(--cream); border: 2.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); border-radius: 6px; padding: 26px; margin-top: 20px; }
.fc-archivo-photo { width: 120px; height: 120px; flex: none; object-fit: cover; border: 2px solid var(--ink); border-radius: 4px; }
.fc-archivo-placeholder { width: 120px; height: 120px; flex: none; background: repeating-linear-gradient(45deg,var(--deep-cream),var(--deep-cream) 9px,#efe7cf 9px,#efe7cf 18px); border: 2px solid var(--ink); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 10px; color: #a59f8c; text-align: center; }
.fc-archivo-body { flex: 1; min-width: 240px; }
.fc-archivo-title { font-family: 'DM Serif Display', serif; font-size: 30px; }
.fc-archivo-date { font-weight: 800; font-size: 12px; color: var(--muted-2); margin: 6px 0 10px; letter-spacing: .04em; }
.fc-archivo-blurb { margin: 0; font-size: 15px; font-weight: 500; color: #4a473f; max-width: 48em; }

/* ---- Footer ---- */
.fc-footer { background: var(--ink); color: var(--footer-text); }
.fc-footer-row { padding: 50px 28px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.fc-footer-logo-chip { background: var(--cream); display: inline-flex; padding: 10px 14px; border-radius: 4px; }
.fc-footer-domain { font-weight: 800; font-size: 13px; color: var(--yellow); margin-top: 16px; }
.fc-footer-blurb { font-size: 14px; color: var(--muted-2); margin-top: 8px; max-width: 30em; }
.fc-footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.fc-footer-heading { font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6f6a5e; margin-bottom: 14px; }
.fc-footer-cols a { display: block; color: var(--footer-text); text-decoration: none; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.fc-footer-bottom-strip { border-top: 1px solid #2a2620; }
.fc-footer-bottom { padding: 16px 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; font-weight: 600; color: #6f6a5e; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
	.fc-hero-grid, .fc-equipos-grid, .fc-monitores-grid { grid-template-columns: 1fr; }
	.fc-wordmark { font-size: 58px; }
	.fc-nav { display: none; }
	.fc-stops-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ Admin panel ============ */
.admin-nav { display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: var(--cream); padding: 12px 28px; }
.admin-nav .nav-left, .admin-nav .nav-right { display: flex; align-items: center; gap: 20px; }
.admin-nav .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.admin-nav .nav-links { display: flex; gap: 16px; margin-left: 16px; }
.admin-nav .nav-link { color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 600; opacity: .8; }
.admin-nav .nav-link.active { opacity: 1; text-decoration: underline; }
.admin-nav .nav-user { font-size: 13px; color: var(--muted-2); }

.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 36px 28px 80px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-title { font-family: 'DM Serif Display', serif; font-size: 32px; margin: 0; }

.edition-subnav { display: flex; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 28px; }
.edition-subnav .nav-link { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; padding: 6px 0; }
.edition-subnav .nav-link.active { border-bottom: 3px solid var(--accent); }

.stats-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.stat-card { background: var(--cream); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); border-radius: 4px; padding: 18px 26px; display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.stat-num { font-size: 32px; font-weight: 800; }
.stat-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.admin-quick-links { display: flex; gap: 14px; flex-wrap: wrap; }

.admin-tool-card { background: var(--cream); border: 2px solid var(--ink); border-radius: 5px; padding: 20px 24px; margin-bottom: 28px; }
.admin-tool-card h4 { margin: 0 0 14px; font-size: 16px; }
.bulk-actions-bar { margin-bottom: 12px; }
.inline-edit-input { font: inherit; font-size: 13px; padding: 6px 8px; border: 2px solid var(--ink); border-radius: 3px; width: 100%; min-width: 110px; }
.admin-hint { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

.admin-form { display: flex; flex-direction: column; gap: 12px; }
.admin-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); flex: 1; }
.admin-form input, .admin-form select, .admin-form textarea { font: inherit; font-size: 14px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 3px; background: #fff; color: var(--ink); }
.admin-form .checkbox-label { flex-direction: row; align-items: center; gap: 8px; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.field-row > input, .field-row > select { flex: 1; min-width: 140px; font-size: 14px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 3px; }

.btn-sm { display: inline-block; background: var(--ink); color: var(--cream); border: none; border-radius: 3px; padding: 10px 18px; font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none; }
.btn-sm:hover { opacity: .9; }

.table-responsive { overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.users-table th, .users-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #e3dcc4; font-size: 14px; }
.users-table th { background: var(--cream); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.user-name { font-weight: 700; }
.table-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.action-link { background: none; border: none; color: var(--accent); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none; padding: 0; }
.action-link.danger { color: #b3261e; }

.empty-state { color: var(--muted); font-style: italic; padding: 20px 0; }
.badge { display: inline-block; background: #e3dcc4; color: var(--muted); border-radius: 3px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.badge-ok { background: #cfe8c8; color: #2c5b22; }
.color-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--ink); vertical-align: middle; margin-right: 4px; }

.admin-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; border: 1px solid var(--ink); }
.admin-thumb-empty { display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--cream); }
.admin-thumb-lg { max-width: 320px; display: block; margin-bottom: 12px; border: 2px solid var(--ink); border-radius: 4px; }

.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background-color: var(--paper); background-image: radial-gradient(rgba(22,20,15,.06) 1px, transparent 1.5px); background-size: 8px 8px; }
.admin-login-card { background: var(--cream); border: 2.5px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); border-radius: 6px; padding: 36px; width: 360px; text-align: center; }
.admin-login-title { font-family: 'DM Serif Display', serif; font-size: 26px; margin: 16px 0 20px; }
.admin-login-form { display: flex; flex-direction: column; gap: 12px; }
.admin-login-form input { font-size: 15px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 3px; }
.admin-login-error { background: #fbe1de; color: #8a2018; border: 1px solid #e2a39c; border-radius: 4px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; font-weight: 600; }
