:root {
    --bg: #f9fafb;
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #2e7d32;
    --primary-600: #27682a;
    --secondary: #0ea5e9;
    --secondary-600: #0284c7;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 6px 20px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
.container {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 0 1rem;
}
/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    z-index: 50;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}
.logo {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: 0.3px;
    color: var(--primary);
}
/* Hero section */
.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 1rem;
}
.foto-empresa {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #ddd;
}
.info {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}
.info h2 { margin: 0 0 0.25rem 0; }
address {
    font-style: normal;
    color: var(--muted);
    margin-bottom: 0.75rem;
}
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.06s ease, background 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-600); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: #d1d5db; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
/* Mapa */
.mapa { padding: 0 1rem 2rem; }
.mapa h2 { margin-bottom: 0.75rem; }
.map-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: #fff;
}
.map-iframe {
    width: 100%;
    height: clamp(260px, 45vw, 420px);
    border: 0;
}
.map-note {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.5rem;
}
/* Contacto */
.contacto {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    margin-bottom: 2rem;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}
.contact-list li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--border);
}
.contact-list li:last-child { border-bottom: 0; }
/* Footer */
.footer {
    border-top: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    padding: 1rem 0;
    text-align: center;
}
/* Responsive layout */
@media (min-width: 768px) {
    .hero {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }
}
/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0f14;
        --text: #e5e7eb;
        --muted: #9aa3ad;
        --border: #1f2937;
        --shadow: 0 6px 20px rgba(0,0,0,0.4);
    }
    .topbar, .info, .contacto, .map-wrapper, .footer { background: #0f172a; }
    .btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
}
