/* ==========================================================================
   MEDIATECH PORTAL - STYLE SHEET (100% TRANQUIL LIGHT MODE & FULLY RESPONSIVE)
   ========================================================================== */

:root {
    --bg-light: #f4f7f6;       /* Extremely tranquil off-white/mint background */
    --card-bg: #ffffff;        /* Pure white cards */
    --card-border: #e2e8f0;    /* Muted borders */
    --primary: #a9bc1b;        /* Mediatech original lime green */
    --primary-hover: #94a517;  /* Slightly darker green for hover states */
    --secondary: #0f766e;      /* Muted tranquil teal */
    --secondary-hover: #115e59;
    --text-main: #0f172a;      /* Dark slate 900 for high-contrast titles */
    --text-muted: #475569;     /* Slate 600 for body text */
    --text-light: #ffffff;     /* White text for dark buttons */
    --text-dark: #0f172a;      /* Dark text for lime green buttons */
    --success: #10b981;
    --danger: #ef4444;
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f0fdf4 0%, #f0fdfa 50%, #f0f9ff 100%); /* Soft, peaceful green/sky gradient */
    color: var(--text-main);
    font-family: var(--font-inter);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Subtle, clean top gradient bar */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 100;
}

/* Soft Background Glow Blobs (Pastel / Low Opacity) */
.bg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.bg-glow-1 {
    background: #d1fae5; /* Pastel mint */
    top: -50px;
    left: -50px;
}

.bg-glow-2 {
    background: #e0f2fe; /* Pastel sky blue */
    bottom: -100px;
    right: -50px;
}

/* Containers - Highly Responsive Flex/Grid */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 80px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    z-index: 10;
    position: relative;
    align-items: center;
}

/* Info Panel (Left) */
.info-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Brand header with transparent background since the logo already has dark text */
.brand-header {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 5px 0;
    align-self: flex-start;
}

.brand-logo {
    height: 60px;           /* Large enough to be perfectly legible */
    max-width: 180px;
    width: auto;
    object-fit: contain;
    /* NO CSS filter - render original branding colors (dark text + green shape) */
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-title {
    font-family: var(--font-outfit);
    font-size: clamp(2rem, 4vw, 2.6rem); /* Responsive font size */
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.hero-title span {
    color: var(--secondary); /* High-contrast teal for key action text */
}

.hero-subtitle {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 400;
    max-width: 520px;
}

/* Features Grid - Fully Responsive wrapping */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    gap: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.01);
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.feature-icon {
    color: var(--secondary);
    flex-shrink: 0;
    background: rgba(15, 118, 110, 0.08);
    padding: 10px;
    border-radius: 8px;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card:hover .feature-icon {
    background: var(--secondary);
    color: white;
}

.feature-text h3 {
    font-family: var(--font-outfit);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1e293b;
}

.feature-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Auth Panel (Right) */
.auth-panel {
    display: flex;
    justify-content: center;
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-tabs {
    display: flex;
    position: relative;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-outfit);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 0;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.auth-tab.active {
    color: var(--text-main);
}

.tab-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: var(--card-bg);
    border-radius: 6px;
    z-index: 1;
    transition: transform 0.2s ease-in-out;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Auth Forms */
.auth-form {
    display: none;
    flex-direction: column;
    gap: 18px;
}

.auth-form.active {
    display: flex;
}

.form-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-header h2 {
    font-family: var(--font-outfit);
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
}

.form-header p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 11px 11px 11px 40px;
    color: var(--text-main);
    font-family: var(--font-inter);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}

.input-wrapper input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
    background: #ffffff;
}

.input-wrapper input:focus + .input-icon {
    color: var(--secondary);
}

/* Button using exact lime green of logo - text is dark slate for high legibility */
.btn-submit {
    width: 100%;
    background: var(--primary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 12px 0;
    color: var(--text-dark);
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(169, 188, 27, 0.25);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Alerts */
.alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.4;
    border: 1px solid transparent;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.06);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.12);
}

.alert-success {
    background: rgba(16, 185, 129, 0.06);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.12);
}

.hidden {
    display: none !important;
}

.btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid var(--text-dark);
    border-right: 2px solid var(--text-dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   CLIENT PRESENTATION AREA (POST-LOGIN) - DASHBOARD & SIDEBAR
   ========================================================================== */

.client-presentation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: row;
    background: var(--bg-light);
    z-index: 50;
}

/* Sidebar layout */
.pres-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 30px 24px;
    flex-shrink: 0;
}

.sidebar-header {
    margin-bottom: 40px;
}

.pres-logo {
    height: 48px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.mobile-navbar, .mobile-menu-overlay {
    display: none !important;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
    color: var(--secondary);
    background: rgba(13, 148, 136, 0.06);
}

.sidebar-footer {
    border-top: 1px solid var(--card-border);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-all;
}

.btn-logout {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    width: 100%;
}

.btn-logout:hover {
    color: var(--text-main);
    border-color: #cbd5e1;
    background: #e2e8f0;
}

/* Main Content Area */
.pres-content {
    flex: 1;
    min-width: 0;
    padding: 40px;
    overflow-y: auto;
    height: 100vh;
}

.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.mobile-header {
    display: none;
}

.tab-section {
    display: none;
}

.tab-section.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.section-header h2 {
    font-family: var(--font-outfit);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.btn-create-trigger {
    background: var(--primary);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 10px 20px;
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-create-trigger:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(169, 188, 27, 0.25);
    transform: translateY(-1px);
}

.btn-create-trigger:active {
    transform: translateY(0);
}

/* Dashboard List (Full Width) */
.list-card.full-width {
    width: 100%;
}

.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.01);
}

.dashboard-card h3 {
    font-family: var(--font-outfit);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.event-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-form input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text-main);
    font-family: var(--font-inter);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.event-form input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2.5px rgba(15, 118, 110, 0.12);
    background: #ffffff;
}

/* Events List styling */
.events-grid-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-card {
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px;
    transition: var(--transition);
}

.event-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.event-title {
    font-family: var(--font-outfit);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    word-break: break-word;
}

.event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.puestos-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(13, 148, 136, 0.08);
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.78rem;
}

.event-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.btn-manage-puestos {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.btn-manage-puestos:hover {
    background: var(--secondary-hover);
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.2);
}

.btn-secondary-action {
    background: #f1f5f9 !important;
    color: var(--text-main) !important;
    border: 1px solid var(--card-border) !important;
}

.btn-delete-event {
    background: none;
    border: 1px solid #e2e8f0;
    color: #ef4444;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-event:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.15);
}

/* Modal Popup styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.2s ease-out;
}

.modal-overlay.hidden {
    display: none !important;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    border: 1px solid var(--card-border);
    overflow: hidden;
    animation: slideInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInModal {
    from { transform: translateY(12px) scale(0.98); }
    to { transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-outfit);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-close-modal:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.add-puesto-form .input-row {
    display: flex;
    gap: 12px;
}

.add-puesto-form input {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-main);
    font-family: var(--font-inter);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.add-puesto-form input:focus {
    border-color: var(--secondary);
    background: #ffffff;
}

.btn-add-puesto {
    background: var(--primary);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 0 16px;
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-puesto:hover {
    background: var(--primary-hover);
}

.puestos-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.puestos-section h4 {
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

.puestos-list {
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.puesto-item {
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-main);
    animation: fadeInPuesto 0.2s ease;
}

@keyframes fadeInPuesto {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-delete-puesto {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-puesto:hover {
    color: #ef4444;
}

/* Indicators */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
}

.no-data-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: var(--text-muted);
    text-align: center;
}

.msg-icon {
    color: #cbd5e1;
    margin-bottom: 4px;
}

.no-data-msg-small {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 15px 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS (MOBILE ONLY: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 30px 20px;
    }
    
    .info-panel {
        align-items: center;
    }
    
    .brand-header {
        align-self: center;
    }
    
    .hero-subtitle {
        margin: 0 auto;
    }
    
    .features-grid {
        width: 100%;
        max-width: 700px;
    }
    
    .auth-panel {
        width: 100%;
    }
    
    .auth-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Dashboard responsive adjustments */
    .client-presentation {
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
    }
    
    .pres-sidebar {
        display: none !important;
    }

    .mobile-navbar {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        background: #ffffff;
        border-bottom: 1px solid var(--card-border);
        padding: 10px 16px;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    }

    .mobile-logo {
        height: 32px !important;
        max-height: 32px !important;
        max-width: 160px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .mobile-hamburger-btn, .mobile-logout-btn {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        color: var(--text-main);
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 61px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 61px);
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        z-index: 200;
    }

    .mobile-menu-overlay.open {
        display: block !important;
    }

    .mobile-menu-content {
        background: #ffffff;
        border-bottom: 1px solid var(--card-border);
        padding: 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-menu-user {
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 12px;
    }

    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-radius: 8px;
        color: var(--text-muted);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
    }

    .mobile-link.active {
        background: rgba(15, 118, 110, 0.08);
        color: var(--secondary);
    }

    .mobile-top-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .mobile-top-header .pres-logo {
        height: 32px;
    }

    .btn-logout-mobile {
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        color: var(--text-muted);
        cursor: pointer;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .mobile-tab-buttons {
        display: flex;
        background: #f1f5f9;
        border-radius: 8px;
        padding: 3px;
        gap: 4px;
    }

    .mobile-tab-btn {
        flex: 1;
        border: none;
        background: transparent;
        padding: 8px 10px;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-muted);
        border-radius: 6px;
        cursor: pointer;
        transition: var(--transition);
        text-align: center;
    }

    .mobile-tab-btn.active {
        background: #ffffff;
        color: var(--secondary);
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
        font-weight: 700;
        font-size: 0.95rem;
        display: block;
    }

    .mobile-drawer-header .user-email {
        font-size: 0.82rem;
        color: var(--text-muted);
        display: block;
    }

    .mobile-drawer-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-drawer-nav .nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        border-radius: 8px;
        color: var(--text-muted);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
    }

    .mobile-drawer-nav .nav-item.active {
        background: rgba(169, 188, 27, 0.12);
        color: #626e0d;
        font-weight: 600;
    }
    
    .pres-content {
        padding: 24px 16px;
        flex: 1;
        overflow-y: auto;
        width: 100%;
        min-height: 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        gap: 16px;
    }

    .btn-create-trigger {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
        overflow-x: hidden;
    }

    .hero-title {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Event Card vertical layout */
    .event-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        padding: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .event-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        border-top: 1px solid var(--card-border);
        padding-top: 12px;
        margin-top: 4px;
        box-sizing: border-box !important;
    }
    
    .btn-manage-puestos {
        width: 100% !important;
        display: flex !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 12px 14px !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }

    .btn-delete-event {
        align-self: center !important;
        margin-top: 4px !important;
    }
    
    /* Header actions wrapping in mobile */
    .header-actions {
        width: 100% !important;
        margin-left: 0 !important;
        flex-direction: column !important;
    }

    .header-actions button {
        width: 100% !important;
        justify-content: center !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Modal responsive updates */
    .modal-card {
        width: calc(100% - 24px);
        margin: 12px;
        max-height: calc(100vh - 24px);
        display: flex;
        flex-direction: column;
        padding: 20px 16px;
    }

    .form-double-col {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}
    
    .modal-body {
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 20px 12px;
    }
    
    .auth-card {
        padding: 24px 16px;
    }

    /* Puestos inline form stacking on very small screens */
    .add-puesto-form .input-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-add-puesto {
        padding: 12px 0;
        justify-content: center;
    }
}

/* ==========================================================================
   NUEVAS SECCIONES: TABLA DE ASISTENTES, CSV Y TERCEROS
   ========================================================================== */

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table th, .data-table td {
    padding: 14px 18px;
    font-size: 14px;
    border-bottom: 1px solid var(--card-border);
}

.data-table th {
    background-color: rgba(0, 0, 0, 0.02);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background-color: rgba(169, 188, 27, 0.02);
}

.btn-table-print {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-outfit);
    border-radius: 6px;
    border: none;
    background-color: #a9bc1b;
    color: #ffffff;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    margin: 0;
    line-height: 1.2;
}

.btn-table-print:hover {
    background-color: #92a417;
    box-shadow: 0 2px 6px rgba(169, 188, 27, 0.3);
    transform: translateY(-1px);
}

.btn-action-icon {
    padding: 6px;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    background: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    margin: 0;
}

.btn-action-icon:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.select-premium {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    background-color: #ffffff;
    color: var(--text-main);
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.select-premium:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.1);
}

.checkboxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    max-height: 120px;
    overflow-y: auto;
}

.checkboxes-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}

.checkboxes-grid input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.csv-template-box {
    background: rgba(0,0,0,0.02);
    border: 1px solid var(--card-border);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 13px;
}

.csv-template {
    display: block;
    background: #eef2f3;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: monospace;
    font-weight: bold;
    margin: 8px 0;
    border: 1px solid rgba(0,0,0,0.05);
}

.link-download-template {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--primary-hover);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed;
    transition: var(--transition);
}

.link-download-template:hover {
    color: var(--primary);
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--card-border);
    padding: 30px 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.file-upload-label:hover {
    border-color: var(--secondary);
    background: rgba(15, 118, 110, 0.02);
}

.hidden-input-file {
    display: none;
}

.btn-back {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-back:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

/* ── Import CSV modal: solo ajustes de espaciado ── */
#modal-importar-csv .modal-body {
    gap: 12px;
}

#modal-importar-csv .event-form {
    gap: 10px;
}

#modal-importar-csv .input-group {
    margin-bottom: 0;
}

#modal-importar-csv label[for="csv-file-input"] {
    padding: 16px 15px !important;
}
