@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600&display=swap');

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f9f9f9;
    --dark-color: #000000;
    --text-muted: #6c757d;
    --border-color: #d0d0d0;
    --section-bg: #f5f5f7;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --section-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

html {
    font-size: 104%;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: var(--primary-color);
    background-color: #f0f0f2;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

/* ========== Public Pages ========== */
.public-page-wrapper {
    background-color: #f0f0f2;
    min-height: calc(100vh - 56px - 120px);
}

/* ========== Admin content background ========== */
.admin-content {
    background-color: #f0f0f2;
}

/* ========== Section / Zone separation ========== */
.section-block {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--section-shadow);
}

.section-block .section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

/* ========== Navbar ========== */
.navbar {
    background-color: #ffffff !important;
    padding: 0.75rem 0;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 3px;
    font-size: 1rem;
    color: var(--dark-color) !important;
    text-transform: uppercase;
}

.nav-link {
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--dark-color) !important;
}

/* ========== Forms and Buttons ========== */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.6rem 0.75rem;
    background-color: #ffffff;
    font-weight: 300;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    color: var(--dark-color);
    background-color: #ffffff;
    border-color: var(--dark-color);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.form-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--dark-color);
    color: #ffffff;
    border: 1px solid var(--dark-color);
    border-radius: 4px;
    padding: 0.8rem 2rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--dark-color);
}

.btn-outline-dark {
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* ========== Cards ========== */
.card {
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    background: #ffffff;
    border-radius: 6px;
}

.card-header {
    background: var(--section-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.card-body {
    padding: 1rem;
}

.card-campana {
    border: 1px solid var(--border-color) !important;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border-radius: 6px;
}

.card-campana:hover {
    transform: none;
}

.card-campana .card-header {
    background-color: transparent;
    padding: 0 0 1.5rem 0;
}

/* ========== KPI / Stat cards ========== */
.kpi-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    box-shadow: var(--card-shadow);
}

.kpi-card .kpi-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.2;
}

.kpi-card .kpi-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ========== Typography elements ========== */
.price-tag {
    font-size: 1.25rem;
    color: var(--dark-color);
    font-weight: 400;
}

.badge-estado {
    font-size: 0.75rem;
    padding: 0.5em 1em;
    font-weight: 400;
    letter-spacing: 1px;
    background-color: var(--section-bg) !important;
    color: var(--dark-color) !important;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* ========== Alerts ========== */
.alert {
    border-radius: 6px;
    border-width: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ========== Hero Section / Minimalist Header ========== */
.hero-minimal {
    padding: 80px 0;
    text-align: center;
    background-color: #ffffff;
}

.hero-minimal h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.hero-minimal p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Footer ========== */
footer {
    background-color: #ffffff;
    border-top: 2px solid var(--border-color);
    color: var(--text-muted);
    padding: 3rem 0;
    margin-top: 4rem;
    font-size: 0.85rem;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.04);
}

/* ========== Admin Sidebar ========== */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background-color: #ffffff;
    border-right: 2px solid var(--border-color);
    padding: 0.75rem !important;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.04);
}

.admin-sidebar .nav-link {
    color: var(--text-muted);
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: var(--dark-color);
    background-color: var(--section-bg);
    font-weight: 500;
}

/* ========== Admin Content Area ========== */
.admin-content {
    padding: 1.25rem;
}

/* ========== Tables ========== */
.table-admin {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--section-shadow);
    border: 1px solid var(--border-color);
}

.table-admin th {
    background-color: var(--section-bg);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: 0.5px;
}

.table-admin td {
    white-space: nowrap;
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.table-admin td[data-label="Campaña"],
.table-admin td[data-label="Total"] {
    white-space: nowrap;
}

.table-admin tbody tr:hover {
    background-color: #fafafa;
}

/* ========== Filter sections ========== */
.filters-collapse .card-body {
    padding: 0.75rem;
    background: var(--section-bg);
    border-top: 1px solid var(--border-color);
}

.filters-collapse .form-label {
    margin-bottom: 0.1rem;
}

/* ========== Compact badges ========== */
.badge {
    padding: 0.35em 0.65em;
    border-radius: 4px;
}

/* ========== Schedule rows ========== */
.horario-row {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow);
}

/* ========== Modal styling ========== */
.modal-content {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.modal-header {
    border-bottom: 2px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* ========== Flatpickr Customization ========== */
.flatpickr-day.disabled, 
.flatpickr-day.flatpickr-disabled, 
.flatpickr-day.flatpickr-disabled:hover {
    color: #ccc !important;
    cursor: not-allowed;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .hero-minimal {
        padding: 40px 0;
    }
    .hero-minimal h1 {
        font-size: 2rem;
    }
}

/* ========== Floating Help Button ========== */
.btn-help-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: #fff;
    border: none;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.btn-help-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.5);
    background-color: #0b5ed7;
    color: #fff;
}
.btn-help-float:active {
    transform: scale(0.95);
}
.btn-help-float i {
    line-height: 1;
}

/* ========== Help Modal ========== */
.help-modal-body h6 {
    font-size: 0.92rem;
}
.help-modal-body ul {
    padding-left: 1.2rem;
}
.help-modal-body ul li {
    margin-bottom: 0.35rem;
    line-height: 1.5;
}
.help-modal-body p {
    line-height: 1.6;
}

@media (max-width: 768px) {
    .btn-help-float {
        bottom: 18px;
        right: 18px;
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }
}

/* ========== Bulk Action Bar ========== */
.bulk-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #212529;
    padding: 12px 24px;
    z-index: 9998;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUpBar 0.2s ease-out;
}
@keyframes slideUpBar {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 768px) {
    .bulk-action-bar {
        padding: 10px 16px;
    }
    .bulk-action-bar .btn-group {
        flex-wrap: wrap;
    }
}
