Primer prototipo

This commit is contained in:
2026-05-20 14:05:55 +02:00
parent c2ab9a46d4
commit c06300833b
22 changed files with 1115 additions and 2 deletions
+262
View File
@@ -0,0 +1,262 @@
:root {
--bg: #fafaf7;
--surface: #ffffff;
--text: #1a1a1a;
--muted: #6b6b6b;
--border: #e6e6e2;
--accent: #2f6f4f;
--accent-hover: #245a3f;
--shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
--sidebar-width: 360px;
}
* {
box-sizing: border-box;
}
html, body, #root {
height: 100%;
margin: 0;
}
body {
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
color: var(--text);
background: var(--bg);
}
.app {
display: flex;
height: 100%;
}
/* Sidebar */
.sidebar {
width: var(--sidebar-width);
background: var(--surface);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
flex-shrink: 0;
}
.sidebar-header {
padding: 20px 24px;
border-bottom: 1px solid var(--border);
}
.sidebar-header h1 {
margin: 0;
font-size: 1.25rem;
}
.tagline {
margin: 4px 0 0;
font-size: 0.85rem;
color: var(--muted);
}
.sidebar-body {
flex: 1;
overflow-y: auto;
padding: 24px;
}
.sidebar-footer {
padding: 16px 24px;
border-top: 1px solid var(--border);
}
.empty {
color: var(--muted);
font-size: 0.95rem;
line-height: 1.5;
}
/* Detalles */
.details {
position: relative;
}
.close {
position: absolute;
top: -8px;
right: -8px;
width: 32px;
height: 32px;
border: none;
background: transparent;
font-size: 1.5rem;
cursor: pointer;
color: var(--muted);
line-height: 1;
}
.close:hover {
color: var(--text);
}
.badge {
display: inline-block;
background: var(--bg);
border: 1px solid var(--border);
padding: 2px 10px;
border-radius: 12px;
font-size: 0.75rem;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.details h2 {
margin: 12px 0 4px;
font-size: 1.3rem;
}
.address {
margin: 0 0 16px;
color: var(--muted);
font-size: 0.9rem;
}
.description {
line-height: 1.55;
margin: 0 0 16px;
}
.contact {
font-size: 0.9rem;
margin: 0;
}
/* Mapa */
.map {
flex: 1;
position: relative;
}
.map-hint {
position: absolute;
top: 16px;
left: 50%;
transform: translateX(-50%);
background: var(--surface);
padding: 8px 16px;
border-radius: 4px;
box-shadow: var(--shadow);
font-size: 0.9rem;
z-index: 1000;
}
/* Botones */
button {
font: inherit;
padding: 10px 18px;
border: 1px solid var(--border);
background: var(--surface);
border-radius: 4px;
cursor: pointer;
transition: background 0.15s;
}
button:hover {
background: var(--bg);
}
button.primary {
background: var(--accent);
border-color: var(--accent);
color: white;
width: 100%;
}
button.primary:hover {
background: var(--accent-hover);
}
/* Modal */
.modal-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.4);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
padding: 16px;
}
.modal {
background: var(--surface);
border-radius: 6px;
padding: 28px;
width: 100%;
max-width: 460px;
max-height: 90vh;
overflow-y: auto;
box-shadow: var(--shadow);
}
.modal h2 {
margin: 0 0 4px;
}
.modal .hint {
color: var(--muted);
font-size: 0.9rem;
margin: 0 0 20px;
}
.modal label {
display: block;
margin-bottom: 14px;
font-size: 0.9rem;
color: var(--muted);
}
.modal input,
.modal textarea {
width: 100%;
padding: 8px 10px;
margin-top: 4px;
border: 1px solid var(--border);
border-radius: 4px;
font: inherit;
color: var(--text);
background: var(--surface);
}
.modal input:focus,
.modal textarea:focus {
outline: 2px solid var(--accent);
outline-offset: -1px;
border-color: var(--accent);
}
.location-status {
background: var(--bg);
padding: 10px 12px;
border-radius: 4px;
font-size: 0.85rem;
color: var(--muted);
margin-bottom: 16px;
}
.actions {
display: flex;
gap: 8px;
justify-content: flex-end;
}
/* Responsive */
@media (max-width: 720px) {
.app {
flex-direction: column-reverse;
}
.sidebar {
width: 100%;
max-height: 45%;
border-right: none;
border-top: 1px solid var(--border);
}
}