:root {
    /* Paleta modo claro */
    --bg: #fcfef0;
    --card: #ffffff;
    --muted: #0083b7;
    --primary: #efa754;
    --accent: #F4A261;
    --accent-contrast: #ffffff;
    --input-bg: #f4efe3;
    --shadow: 0 6px 18px rgba(20, 40, 20, 0.08);
    --radius: 12px;
    --glass: rgba(255, 255, 255, 0.6);
}

.dark {
    /* Paleta modo oscuro (todavía no la hago) */
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(180deg, var(--bg), #e9f4ff00 140%);
    color: #1a2a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 32px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Container */
.lm-app {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr 420px;
    align-items: start;
}

/* Header */
header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lm-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lm-logo {
    height: 10rem;
    width: 10rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(../img/mapa.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.lm-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.2px;
}

.lm-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

/* Theme toggle */
.lm-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lm-toggle {
    background: var(--card);
    border-radius: 999px;
    padding: 6px;
    display: flex;
    gap: 6px;
    align-items: center;
    box-shadow: var(--shadow);
}

.lm-toggle button {
    background: transparent;
    border: 0;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--muted);
}

.lm-toggle button.active {
    background: var(--primary);
    color: var(--accent-contrast);
}

/* Cards */
.lm-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Map + uploads + form */
.lm-map-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 52rem;
}

.lm-upload-row {
    display: flex;
    gap: 12px;
}

.lm-upload {
    flex: 1;
    border-radius: 10px;
    padding: 10px;
    background: var(--input-bg);
    border: 1px dashed rgba(0, 0, 0, 0.06);
    text-align: center;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lm-upload input[type=file] {
    display: none;
}

.lm-upload img.lm-preview {
    max-width: 100%;
    max-height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.lm-map {
    border-radius: 10px;
    height: 320px;
    background: linear-gradient(180deg, var(--map-bg), #ffffff00);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lm-map .lm-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    font-size: 26px;
    color: var(--accent);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.lm-map .lm-coords {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--glass);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--muted);
    backdrop-filter: blur(6px);
}

.lm-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    font-size: 13px;
    color: var(--muted);
    display: block;
    margin-bottom: 6px;
}

.lm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.lm-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}

.lm-btn {
    padding: 14px 20px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.lm-btn.lm-primary {
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 16px;
    flex: 1;
}

.lm-btn.lm-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.04);
    max-width: 160px;
}

.lm-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}

/** Query responsividad **/
@media (max-width: 980px) {
    .lm-app {
        grid-template-columns: 1fr;
        padding: 1rem;
       
    }

    .lm-map {
        height: 20rem;
    }

    .lm-logo {
        width: 5rem;
        height: 5rem;
        background-image: url(../img/mapa.png);
        background-repeat: no-repeat;
        background-size: cover;
    }

    .lm-brand {
        display: block;
        align-items: center;
        gap: 1.4rem;
        
    }
    
    .lm-map-card {
	    padding: 18px;
	    display: flex;
	    flex-direction: column;
	    gap: 14px;
	    width: auto;
	}
}
