:root {
    --bg-dark: #252525;
    --card-dark: #2e2e2e;
    --card-hover: #363636;
    --text-white: #ffffff;
    --text-muted: #aaaaaa;
    
    --blue: #4285F4;
    --red: #EA4335;
    --yellow: #FBBC05;
    --green: #34A853;
    --purple: #9334E6;
    --cyan: #00bcd4;
    --gold: #D4AF37;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
    margin: 0; padding: 20px;
    display: flex; flex-direction: column; align-items: center;
    min-height: 100vh;
}

/* === HEADER === */
.main-header { text-align: center; margin: 20px 0 40px 0; }
.brand-logo { width: 80px; height: auto; margin-bottom: 15px; }
.brand-name { margin: 0; font-size: 2.5rem; font-weight: 700; }
.brand-tagline { color: var(--text-muted); margin-top: 10px; }
.route { color: var(--gold); }
.arrow { color: var(--blue); font-weight: bold; }

/* === GRID === */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; width: 100%; max-width: 1100px;
}

/* === BOXES === */
.cool-box {
    background: var(--card-dark); border-radius: 20px; padding: 25px;
    position: relative; display: flex; align-items: center; gap: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.cool-box:hover { transform: translateY(-5px); background: var(--card-hover); }

.glow-blue:hover { border-color: var(--blue); box-shadow: 0 10px 30px rgba(66, 133, 244, 0.15); }
.glow-green:hover { border-color: var(--green); box-shadow: 0 10px 30px rgba(52, 168, 83, 0.15); }
.glow-red:hover { border-color: var(--red); box-shadow: 0 10px 30px rgba(234, 67, 53, 0.15); }
.glow-yellow:hover { border-color: var(--yellow); box-shadow: 0 10px 30px rgba(251, 188, 5, 0.15); }
.glow-purple:hover { border-color: var(--purple); box-shadow: 0 10px 30px rgba(147, 52, 230, 0.15); }
.glow-cyan:hover { border-color: var(--cyan); box-shadow: 0 10px 30px rgba(0, 188, 212, 0.15); }

.box-icon {
    width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
}
.icon-blue { background: rgba(66, 133, 244, 0.15); color: var(--blue); }
.icon-green { background: rgba(52, 168, 83, 0.15); color: var(--green); }
.icon-red { background: rgba(234, 67, 53, 0.15); color: var(--red); }
.icon-yellow { background: rgba(251, 188, 5, 0.15); color: var(--yellow); }
.icon-purple { background: rgba(147, 52, 230, 0.15); color: var(--purple); }
.icon-cyan { background: rgba(0, 188, 212, 0.15); color: var(--cyan); }

.box-content { flex-grow: 1; min-width: 0; }
.cool-box h2 { margin: 0; font-size: 1.2rem; }
.box-sub { margin: 5px 0 0; color: var(--text-muted); font-size: 0.9rem; }

/* === INPUTS === */
.input-wrapper {
    display: flex; background: rgba(0,0,0,0.3);
    border-radius: 12px; padding: 4px; margin-top: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}
.input-wrapper input, .input-wrapper select {
    background: transparent; border: none; color: white;
    padding: 10px; width: 100%; outline: none; font-family: inherit;
    font-size: 0.95rem;
}
.input-wrapper select option { background: #333; color: white; }

.icon-btn {
    border: none; border-radius: 8px; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: white; flex-shrink: 0;
}
.btn-blue { background: var(--blue); }
.btn-green { background: var(--green); }
.btn-yellow { background: var(--yellow); color: #222; }

/* === MODALS === */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(5px);
    z-index: 9999; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal-card {
    background: #1f1f1f; width: 95%; max-width: 480px;
    border-radius: 24px; padding: 30px; border: 1px solid #444;
    position: relative; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: scale(0.95); transition: transform 0.3s;
}
.modal-overlay.active .modal-card { transform: scale(1); }
.wide-card { max-width: 900px; }

.close-btn {
    position: absolute; top: 20px; right: 20px; font-size: 28px;
    background: none; border: none; color: #888; cursor: pointer; z-index: 10;
}
.close-btn:hover { color: white; }
.modal-title { margin-top: 0; margin-bottom: 20px; font-size: 1.8rem; border-bottom: 1px solid #333; padding-bottom: 15px; }

.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-purple { color: var(--purple); }
.text-cyan { color: var(--cyan); }

/* === TRACKING GRID === */
.tracking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.info-box { background: #111; padding: 12px; border-radius: 10px; border: 1px solid #333; }
.info-label { font-size: 0.7rem; color: #888; text-transform: uppercase; margin-bottom: 4px; letter-spacing: 0.5px; }
.info-val { font-size: 0.95rem; color: white; font-weight: 600; word-break: break-word; }
.highlight { color: var(--blue); }
.timeline-item { padding-left: 20px; border-left: 2px solid #444; position: relative; padding-bottom: 20px; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; position: absolute; left: -7px; top: 5px; }

/* === SPLIT LAYOUT (MAP + FORM) === */
.split-layout { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) {
    .split-layout { flex-direction: row; align-items: flex-start; }
    .layout-left, .layout-right { flex: 1; width: 100%; }
}

.map-wrapper { position: relative; border-radius: 12px; overflow: hidden; height: 400px; } /* TALLER MAP */
.google-map { width: 100%; height: 100%; background: #333; }

/* FIND ME BUTTON */
.btn-find-me {
    position: absolute; bottom: 40px; right: 10px;
    background: white; color: #333; border: none;
    padding: 10px 15px; border-radius: 30px;
    display: flex; align-items: center; gap: 8px;
    font-weight: bold; font-family: inherit;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    cursor: pointer; transition: 0.2s;
    z-index: 100;
}
.btn-find-me:hover { transform: scale(1.05); }

.map-hint { 
    position: absolute; bottom: 10px; left: 0; width: 100%;
    text-align: center; font-size: 0.8rem; color: var(--yellow);
    background: rgba(0,0,0,0.6); padding: 4px 0;
}

/* === FORM === */
.form-field { margin-bottom: 15px; }
.form-field label { display: block; font-size: 0.85rem; color: #888; margin-bottom: 6px; }
.form-field input, .form-field select {
    width: 100%; padding: 12px; background: #111; border: 1px solid #444;
    border-radius: 8px; color: white; box-sizing: border-box;
}
.form-field input:focus { border-color: var(--gold); }
.btn-submit {
    width: 100%; padding: 15px; background: var(--gold); color: black;
    border: none; border-radius: 12px; font-weight: bold; font-size: 1rem; cursor: pointer;
}

/* === CUSTOM CALENDAR === */
.calendar-wrapper {
    background: #111; border: 1px solid #444; border-radius: 12px; padding: 15px;
    text-align: center; margin-bottom: 15px;
}
.cal-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
    color: var(--gold); font-weight: bold;
}
.cal-btn { background: none; border: none; color: white; cursor: pointer; font-size: 1.2rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-day-name { font-size: 0.75rem; color: #666; padding-bottom: 5px; }
.cal-day {
    padding: 8px 0; border-radius: 6px; font-size: 0.9rem; cursor: pointer;
    background: #222; color: white;
}
.cal-day:hover:not(.disabled) { background: var(--blue); }
.cal-day.selected { background: var(--green); color: white; }
.cal-day.disabled { background: #1a1a1a; color: #444; cursor: not-allowed; opacity: 0.5; }

/* === EXTRA === */
.office-item, .contact-row {
    display: flex; gap: 15px; background: #1a1a1a; padding: 15px;
    border-radius: 12px; margin-bottom: 10px; border: 1px solid #333;
}
.c-icon { color: var(--gold); font-size: 24px; }
.social-actions { display: flex; gap: 10px; margin-top: 15px; }
.btn-social {
    flex: 1; text-align: center; padding: 10px; border-radius: 8px;
    text-decoration: none; color: white; font-weight: bold; font-size: 0.9rem;
}
.fb { background: #3b5998; }
.wa { background: #25D366; }

.about-placeholder {
    width: 100%; height: 200px; border-radius: 16px;
    background: linear-gradient(135deg, #1f2f40 0%, #0d1b2a 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--cyan); border: 2px dashed #333;
}
.loader { border: 3px solid #333; border-top: 3px solid var(--blue); border-radius: 50%; width: 30px; height: 30px; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { 100% { transform: rotate(360deg); } }