Files
taller-wox/static/css/styles.css

414 lines
15 KiB
CSS

:root {
--navy: #0A1F44;
--navy-deep: #061330;
--blue: #1E4FA8;
--teal: #0E7490;
--accent: #B45309;
--accent-hover: #92400E;
--slate-900: #0F172A;
--slate-700: #334155;
--slate-600: #475569;
--slate-400: #94A3B8;
--slate-300: #CBD5E1;
--slate-200: #E2E8F0;
--slate-100: #F1F5F9;
--slate-50: #F8FAFC;
--white: #FFFFFF;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
font-family: 'Inter', system-ui, -apple-system, sans-serif;
color: var(--slate-900);
background: var(--white);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.site-header {
display: flex; align-items: center; justify-content: space-between;
padding: 18px 40px; background: var(--white);
border-bottom: 1px solid var(--slate-200);
position: sticky; top: 0; z-index: 100;
backdrop-filter: blur(8px);
background: rgba(255, 255, 255, 0.92);
}
.site-header .brand { display: flex; align-items: center; }
.site-header .brand img { display: block; }
.powered-by {
color: var(--slate-600); font-size: 13px;
display: flex; align-items: center; gap: 8px;
letter-spacing: 0.01em;
}
.powered-by strong { color: var(--navy); font-weight: 600; }
.powered-by .divider { width: 1px; height: 18px; background: var(--slate-300); display: inline-block; }
.hero {
background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--blue) 100%);
color: var(--white); padding: 96px 40px; min-height: 78vh;
display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero::before {
content: ''; position: absolute; inset: 0;
background-image:
radial-gradient(circle at 80% 20%, rgba(14, 116, 144, 0.18) 0%, transparent 50%),
radial-gradient(circle at 20% 90%, rgba(30, 79, 168, 0.22) 0%, transparent 55%);
pointer-events: none;
}
.hero::after {
content: ''; position: absolute; inset: 0;
background-image:
linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
background-size: 60px 60px;
pointer-events: none;
mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
-webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}
.hero-inner { max-width: 880px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.eyebrow {
color: var(--slate-300); font-weight: 600; font-size: 13px;
letter-spacing: 0.18em; margin: 0 0 20px; text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after {
content: ''; display: inline-block; width: 24px; height: 1px;
background: var(--slate-400); vertical-align: middle; margin: 0 12px;
}
.hero h1 {
font-size: clamp(34px, 5vw, 60px); margin: 0 0 20px;
font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
}
.subtitle {
font-size: 19px; color: var(--slate-300);
margin: 0 0 40px; font-weight: 400; max-width: 640px;
margin-left: auto; margin-right: auto;
}
.btn {
display: inline-flex; align-items: center; gap: 8px;
padding: 14px 28px; border-radius: 6px; font-weight: 600;
text-decoration: none; cursor: pointer; border: 0; font-size: 15px;
font-family: inherit; letter-spacing: 0.01em;
transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
background: var(--accent); color: var(--white);
box-shadow: 0 1px 2px rgba(180, 83, 9, 0.2), 0 4px 12px rgba(180, 83, 9, 0.25);
}
.btn-primary:hover {
background: var(--accent-hover); transform: translateY(-1px);
box-shadow: 0 1px 2px rgba(146, 64, 14, 0.25), 0 6px 16px rgba(146, 64, 14, 0.3);
}
.btn-large { padding: 16px 34px; font-size: 16px; }
.btn-disabled {
background: var(--slate-200); color: var(--slate-600); cursor: not-allowed;
box-shadow: none;
}
.section-title {
text-align: center; font-size: 36px; color: var(--navy);
margin: 0 0 16px; font-weight: 700; letter-spacing: -0.015em;
}
.section-subtitle {
text-align: center; color: var(--slate-600);
margin: 0 auto 48px; max-width: 600px;
}
.cards-section, .stats-section, .form-section, .descargas-section {
padding: 96px 40px; max-width: 1180px; margin: 0 auto;
}
.cards-section { background: var(--slate-50); max-width: none; border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.cards-section .cards-inner { max-width: 1180px; margin: 0 auto; }
.cards {
display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 28px;
}
.card {
background: var(--white); padding: 36px;
border-radius: 10px; border: 1px solid var(--slate-200);
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
transform: translateY(-3px);
box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
border-color: var(--slate-300);
}
.card .icon-wrap {
width: 48px; height: 48px; border-radius: 10px;
background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
display: flex; align-items: center; justify-content: center;
margin-bottom: 20px;
}
.card .icon-wrap svg { width: 24px; height: 24px; color: var(--white); stroke-width: 1.75; }
.card h3 {
color: var(--navy); margin: 0 0 10px;
font-size: 18px; font-weight: 600; letter-spacing: -0.005em;
}
.card p { color: var(--slate-600); margin: 0; font-size: 15px; line-height: 1.65; }
.stats {
display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 32px; text-align: center;
}
.stat { padding: 24px 16px; border-left: 1px solid var(--slate-200); }
.stat:first-child { border-left: 0; }
.stat .num {
display: block; font-size: 56px; font-weight: 700;
color: var(--accent); line-height: 1; letter-spacing: -0.03em;
margin-bottom: 10px;
}
.stat .label {
display: block; color: var(--slate-600);
font-size: 12px; font-weight: 600;
text-transform: uppercase; letter-spacing: 0.1em;
}
.form-section { background: var(--white); max-width: 580px; }
.form-intro { text-align: center; color: var(--slate-600); margin: 0 0 40px; font-size: 16px; }
.register-form { display: flex; flex-direction: column; gap: 22px; }
.field label {
display: block; font-weight: 600; margin-bottom: 8px;
color: var(--slate-900); font-size: 14px;
}
.field input[type="text"], .field input[type="email"] {
width: 100%; padding: 12px 14px;
border: 1.5px solid var(--slate-200); border-radius: 6px;
font-size: 15px; font-family: inherit;
color: var(--slate-900); background: var(--white);
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus {
outline: none; border-color: var(--teal);
box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.1);
}
.field-checkbox { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--slate-50); border-radius: 8px; border: 1px solid var(--slate-200); }
.field-checkbox input { margin-top: 3px; accent-color: var(--teal); width: 16px; height: 16px; }
.field-checkbox label { font-weight: 400; color: var(--slate-700); font-size: 13.5px; line-height: 1.55; margin: 0; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.banner { padding: 14px 32px; text-align: center; font-size: 14px; }
.banner-error { background: #FEF2F2; color: #991B1B; border-bottom: 1px solid #FECACA; }
.descargas-section { text-align: center; }
.hello {
color: var(--navy); font-size: 42px; margin: 0 0 12px;
font-weight: 700; letter-spacing: -0.02em;
}
.hello-sub { color: var(--slate-600); margin: 0 0 56px; font-size: 17px; }
.download-cards {
display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
gap: 28px; text-align: left;
}
.download-card {
background: var(--white); padding: 36px;
border-radius: 12px; border: 1px solid var(--slate-200);
transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.download-card:hover {
border-color: var(--teal);
transform: translateY(-3px);
box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.download-card .dl-icon-wrap {
width: 56px; height: 56px; border-radius: 12px;
background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
display: flex; align-items: center; justify-content: center;
margin-bottom: 24px;
}
.download-card .dl-icon-wrap svg { width: 28px; height: 28px; color: var(--white); stroke-width: 1.75; }
.download-card h2 {
color: var(--navy); margin: 0 0 8px;
font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
}
.download-card p { color: var(--slate-600); margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.download-card .size {
font-size: 12px; color: var(--slate-600); font-weight: 600;
text-transform: uppercase; letter-spacing: 0.08em;
margin: 0 0 20px;
display: inline-block; padding: 4px 10px;
background: var(--slate-100); border-radius: 4px;
}
.site-footer {
background: var(--navy-deep); color: var(--slate-300);
padding: 48px 40px;
}
.footer-inner { max-width: 1180px; margin: 0 auto; text-align: center; }
.footer-inner p { margin: 4px 0; font-size: 14px; }
.footer-inner strong { color: var(--white); }
.footer-inner a { color: var(--slate-300); text-decoration: none; border-bottom: 1px solid var(--slate-600); transition: color 0.15s ease, border-color 0.15s ease; }
.footer-inner a:hover { color: var(--white); border-color: var(--slate-300); }
.copyright { color: var(--slate-400); font-size: 12px; margin-top: 20px !important; }
/* ---------- Admin ---------- */
.admin-section {
max-width: 1280px; margin: 0 auto; padding: 48px 32px 96px;
}
.admin-header {
display: flex; justify-content: space-between; align-items: flex-end;
gap: 16px; flex-wrap: wrap; margin-bottom: 32px;
border-bottom: 1px solid var(--slate-200); padding-bottom: 20px;
}
.admin-header h1 {
color: var(--navy); margin: 4px 0 6px;
font-size: 32px; font-weight: 700; letter-spacing: -0.015em;
}
.eyebrow-light {
color: var(--slate-600); font-weight: 600; font-size: 11px;
letter-spacing: 0.18em; margin: 0; text-transform: uppercase;
}
.admin-sub { color: var(--slate-600); margin: 0; font-size: 14px; }
.admin-actions { display: flex; gap: 10px; }
.btn-secondary {
background: var(--white); color: var(--navy);
border: 1.5px solid var(--slate-300);
padding: 10px 18px; font-size: 14px; border-radius: 6px;
font-weight: 600; transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-secondary:hover { border-color: var(--navy); background: var(--slate-50); }
.admin-filters { margin-bottom: 16px; }
.admin-filters input {
width: 100%; max-width: 420px;
padding: 10px 14px; border: 1.5px solid var(--slate-200); border-radius: 6px;
font-size: 14px; font-family: inherit; color: var(--slate-900);
}
.admin-filters input:focus {
outline: none; border-color: var(--teal);
box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.1);
}
.admin-table-wrap {
overflow-x: auto; border: 1px solid var(--slate-200);
border-radius: 8px; background: var(--white);
}
.admin-table {
width: 100%; border-collapse: collapse; font-size: 14px;
}
.admin-table thead th {
background: var(--slate-50); color: var(--slate-700);
text-align: left; padding: 12px 16px; font-weight: 600;
font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
border-bottom: 1px solid var(--slate-200);
}
.admin-table thead th.num { text-align: right; }
.admin-table tbody td {
padding: 12px 16px; border-bottom: 1px solid var(--slate-100);
color: var(--slate-900); vertical-align: middle;
}
.admin-table tbody tr:hover { background: var(--slate-50); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table td.muted { color: var(--slate-600); font-size: 13px; }
.admin-table td.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.admin-table td.empty {
text-align: center; color: var(--slate-600); padding: 48px 16px; font-style: italic;
}
.admin-table a { color: var(--teal); text-decoration: none; }
.admin-table a:hover { text-decoration: underline; }
.pill {
display: inline-flex; align-items: center; justify-content: center;
width: 22px; height: 22px; border-radius: 50%;
font-size: 12px; font-weight: 700;
}
.pill-ok { background: rgba(14, 116, 144, 0.12); color: var(--teal); }
.pill-no { background: rgba(180, 83, 9, 0.12); color: var(--accent); }
.live-status {
display: inline-flex; align-items: center; gap: 8px;
padding: 8px 14px; background: var(--slate-50);
border: 1px solid var(--slate-200); border-radius: 6px;
}
.dot {
width: 8px; height: 8px; border-radius: 50%;
background: var(--slate-400);
box-shadow: 0 0 0 0 rgba(14, 116, 144, 0.4);
}
.dot-live {
background: #10B981;
animation: pulse 2s infinite;
}
.dot-error { background: var(--accent); animation: none; }
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.live-label {
font-size: 12px; color: var(--slate-700);
font-weight: 600; letter-spacing: 0.02em;
}
.live-label.flash {
color: #047857; font-weight: 700;
animation: flash-bg 0.6s ease;
}
@keyframes flash-bg {
0% { transform: scale(1); }
50% { transform: scale(1.08); }
100% { transform: scale(1); }
}
.btn-icon {
padding: 8px 12px !important; font-size: 16px !important;
line-height: 1; min-width: 38px; text-align: center;
}
.last-updated {
margin-left: 16px; font-size: 12px; color: var(--slate-600);
font-style: italic;
}
th.sortable { cursor: pointer; user-select: none; transition: background 0.15s ease; }
th.sortable:hover { background: var(--slate-100); }
th.sortable.active { color: var(--navy); }
.sort-ind { font-weight: 700; }
.admin-stats-grid {
display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 32px; margin-top: 40px;
}
.admin-stats { margin-top: 0; }
.admin-h2 {
color: var(--navy); font-size: 18px; font-weight: 600;
margin: 0 0 12px; letter-spacing: -0.005em;
}
.empresa-list {
list-style: none; padding: 0; margin: 0;
display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 8px;
}
.empresa-list li {
display: flex; justify-content: space-between; align-items: center;
padding: 12px 16px; background: var(--slate-50);
border: 1px solid var(--slate-200); border-radius: 6px;
}
.empresa-name { color: var(--slate-900); font-weight: 500; font-size: 14px; }
.empresa-count {
background: var(--navy); color: var(--white);
padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600;
font-variant-numeric: tabular-nums;
}
@media (max-width: 768px) {
.hide-sm { display: none; }
}
@media (max-width: 768px) {
.site-header { padding: 14px 20px; }
.powered-by { font-size: 11px; }
.powered-by .divider { display: none; }
.hero { min-height: 70vh; padding: 64px 24px; }
.cards-section, .stats-section, .form-section, .descargas-section { padding: 64px 24px; }
.section-title { font-size: 28px; }
.stat { border-left: 0; border-top: 1px solid var(--slate-200); padding-top: 24px; }
.stat:first-child { border-top: 0; }
.download-card { padding: 28px; }
}