:root {
    /* Tema Oscuro por defecto */
    --bg-dark: #0D0D0D;
    --bg-medium: #1A1A1A;
    --bg-light: #262626;
    --border-color: #333333;
    --text-light: #F5F5F5;
    --text-medium: #A3A3A3;
    --accent-primary: #34D399;
    --accent-primary-light: #6EE7B7;
    --accent-secondary: #FBBF24;
    --error-color: #F87171;
    --info-color: #60A5FA;
    --reminder-color: #A78BFA;
    --font-body: 'Poppins', sans-serif;
    --font-display: 'Teko', sans-serif;
    --shadow-color: rgba(52, 211, 153, 0.2);
}

/* Tema Claro */
body.light-theme {
    --bg-dark: #F5F5F5;
    --bg-medium: #FFFFFF;
    --bg-light: #E5E5E5;
    --border-color: #D4D4D4;
    --text-light: #1A1A1A;
    --text-medium: #525252;
}

/* Tema Verde para Somar */
body.somar-theme {
    --accent-primary: #22C55E; /* green-500 */
    --accent-primary-light: #4ADE80; /* green-400 */
    --accent-secondary: #86EFAC; /* green-300 */
    --info-color: #16A34A; /* green-600 */
    --reminder-color: #15803D; /* green-700 */
    --shadow-color: rgba(34, 197, 94, 0.3);
}

/* Animaciones y Keyframes */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glow { 0%, 100% { text-shadow: 0 0 6px var(--accent-primary), 0 0 12px var(--accent-primary); } 50% { text-shadow: 0 0 12px var(--accent-primary), 0 0 24px var(--accent-primary); } }
@keyframes pesty-logo-glow {
    0% { filter: drop-shadow(0 0 2px var(--accent-primary)); }
    50% { filter: drop-shadow(0 0 10px var(--accent-primary)); }
    100% { filter: drop-shadow(0 0 2px var(--accent-primary)); }
}
@keyframes slowPan {
    0% { transform: scale(1.1) translateX(-5%) translateY(-5%); }
    100% { transform: scale(1.1) translateX(5%) translateY(5%); }
}
@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}
@keyframes splash-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile styles removed */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background-color: var(--bg-dark); color: var(--text-light); overflow-x: hidden; transition: background-color 0.5s ease, color 0.5s ease; }

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
#splash-screen .pesty-logo {
    width: 200px;
    animation: splash-pulse 2s infinite ease-in-out;
}

#particle-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.background-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background-image: linear-gradient(rgba(163, 163, 163, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(163, 163, 163, 0.05) 1px, transparent 1px); background-size: 30px 30px; }
.container { width: 90%; max-width: 1600px; margin: 0 auto; padding-top: 100px; }
.header { position: fixed; top: 0; left: 0; width: 100%; padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; background-color: rgba(13, 13, 13, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); }
body.light-theme .header { background-color: rgba(255, 255, 255, 0.8); }
.logo-link { line-height: 0; }
.logo-img { height: 45px; width: auto; max-width: 150px; object-fit: contain; transition: transform 0.3s ease; }
.logo-img:hover { transform: scale(1.05); }
.header-nav-links { list-style: none; display: flex; gap: 20px; align-items: center; }
.header-nav-links span, .header-nav-links a { color: var(--text-medium); text-decoration: none; font-weight: 600; cursor: pointer; transition: color 0.3s; font-size: 1rem; }
.header-nav-links a:hover { color: var(--text-light); }
.hidden { display: none !important; }
.main-nav { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; background-color: var(--bg-medium); padding: 10px; border-radius: 8px; border: 1px solid var(--border-color); flex-wrap: wrap; }
.main-nav-btn { background: none; border: none; color: var(--text-medium); font-family: var(--font-body); font-weight: 600; font-size: 1rem; padding: 10px 20px; border-radius: 5px; cursor: pointer; transition: background-color 0.3s, color 0.3s, transform 0.2s; display: flex; align-items: center; gap: 8px; }
.main-nav-btn:hover { background-color: var(--bg-light); color: var(--text-light); transform: translateY(-2px); }
.main-nav-btn.active { background-color: var(--accent-primary); color: var(--bg-dark); }

.view-container { padding: 20px 0; animation: fadeInUp 0.5s ease-out forwards; }
@media (max-width: 768px) {
    .view-container { padding: 10px 0; }
}
.view-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.view-title { font-family: var(--font-display); font-size: 3rem; color: var(--text-light); }
@media (max-width: 768px) {
    .view-title { font-size: 1.8rem; }
}
@media (max-width: 480px) {
    .view-title { font-size: 1.5rem; }
}
.view-title .highlight { color: var(--accent-primary); animation: glow 4s infinite ease-in-out; }
.toolbar { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar label, .toolbar select { padding: 10px; background-color: var(--bg-light); border: 1px solid var(--border-color); border-radius: 5px; color: var(--text-light); font-family: var(--font-body); transition: border-color 0.3s, box-shadow 0.3s; }
.toolbar label { background: none; border: none; padding: 0 5px 0 10px; color: var(--text-medium); }
.toolbar input:focus, .toolbar select:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--shadow-color); outline: none; }

.custom-select-container { position: relative; width: 100%; font-family: var(--font-body); }
.custom-select-trigger { width: 100%; padding: 12px; background-color: var(--bg-light); border: 1px solid var(--border-color); border-radius: 5px; color: var(--text-light); font-size: 1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: border-color 0.3s, box-shadow 0.3s; }
.custom-select-trigger:focus, .custom-select-container.active .custom-select-trigger { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--shadow-color); outline: none; }
.custom-select-trigger::after { content: '▼'; font-size: 0.8rem; color: var(--text-medium); transition: transform 0.3s; }
.custom-select-container.active .custom-select-trigger::after { transform: rotate(180deg); }
.custom-options { position: absolute; top: 105%; left: 0; width: 100%; background-color: var(--bg-light); border: 1px solid var(--border-color); border-radius: 5px; z-index: 10; max-height: 200px; overflow-y: auto; display: none; }
.custom-select-container.active .custom-options { display: block; }
.custom-option { padding: 12px; color: var(--text-medium); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.custom-option:hover, .custom-option.selected { background-color: var(--accent-primary); color: var(--bg-dark); }
.toolbar .custom-select-container { min-width: 180px; width: auto; }
.toolbar .custom-select-trigger { padding: 10px; }

.cta-button { display: inline-flex; align-items: center; gap: 8px; background-color: var(--accent-primary); color: var(--bg-dark); padding: 16px 32px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 1.1rem; transition: all 0.3s ease; box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4); border: none; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; position: relative; overflow: hidden; }
@media (max-width: 768px) {
    .cta-button { padding: 14px 24px; font-size: 0.95rem; }
}
.cta-button:hover::before { left: 100%; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(74, 144, 226, 0.5); }
.cta-button:active { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3); }

.table-wrapper { overflow-x: auto; background-color: var(--bg-medium); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 1200px; }
@media (max-width: 768px) {
    .data-table { min-width: 600px; }
}
.data-table th, .data-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color); transition: background-color 0.3s; }
.data-table th { color: var(--accent-secondary); text-transform: uppercase; font-size: 0.9rem; }
.data-table td { color: var(--text-medium); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr.service-row:hover { background-color: var(--bg-light); cursor: pointer; }
.data-table tr.service-row:hover td { color: var(--text-light); }
.action-cell { text-align: right; white-space: nowrap; }
.action-btn { background: var(--bg-light); color: var(--text-light); border: 1px solid var(--border-color); padding: 8px 15px; border-radius: 5px; cursor: pointer; transition: all 0.2s; margin-left: 5px; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.action-btn:hover { transform: translateY(-2px); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.action-btn:hover { background: var(--accent-primary); color: var(--bg-dark); border-color: var(--accent-primary); }
.action-btn.info:hover { background: var(--info-color); border-color: var(--info-color); }
.action-btn.delete:hover { background: var(--error-color); border-color: var(--error-color); }

.service-details-row { display: none; }
.service-details-row.active { display: table-row; }
.service-details-cell { background-color: var(--bg-dark); padding: 25px !important; border-left: 4px solid var(--accent-primary); }
.service-details-content { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.service-details-content h4 { font-size: 1.2rem; color: var(--text-light); margin-bottom: 10px; }
.service-details-content p { color: var(--text-medium); margin-bottom: 5px; line-height: 1.5; }
.service-details-content strong { color: var(--text-light); }
.map-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background-color: var(--info-color); color: var(--bg-dark); border-radius: 5px; text-decoration: none; font-weight: 600; transition: transform 0.2s, background-color 0.2s; }
.map-button:hover { transform: scale(1.05); background-color: #7dd3fc; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; }
.stat-card { background-color: var(--bg-medium); padding: 25px; border-radius: 8px; border: 1px solid var(--border-color); transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.stat-card:hover { transform: translateY(-8px); border-color: var(--accent-primary); box-shadow: 0 10px 25px rgba(0,0,0,0.4); cursor: pointer; }
.stat-card .stat-title { font-size: 1rem; color: var(--text-medium); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.stat-card .stat-value { font-size: 2.5rem; font-weight: 700; color: var(--text-light); }
.stat-card .stat-value .currency { font-size: 1.5rem; color: var(--accent-primary); }
.stat-card.highlight-stat .stat-value { color: var(--accent-primary); }
.stat-comparison { font-size: 0.9rem; color: var(--text-medium); margin-top: 8px; }
.stat-comparison.positive { color: var(--accent-primary); font-weight: 600; }
.stat-comparison.negative { color: var(--error-color); font-weight: 600; }

.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-top: 40px; }
.dashboard-main-column, .dashboard-side-column { display: flex; flex-direction: column; gap: 30px; }
.dashboard-card { background-color: var(--bg-medium); padding: 25px; border-radius: 8px; border: 1px solid var(--border-color); }
.dashboard-card-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--text-light); margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.dashboard-list { list-style: none; }
.dashboard-list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--bg-light); }
.dashboard-list-item:last-child { border-bottom: none; }
.dashboard-list-item .item-main-info { font-weight: 600; color: var(--text-light); }
.dashboard-list-item .item-main-info span { display: block; font-size: 0.9rem; color: var(--text-medium); font-weight: normal; }
.dashboard-list-item .item-side-info { text-align: right; color: var(--text-medium); }
.dashboard-list-item .item-side-info .status-pill { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; color: var(--bg-dark); }
.dashboard-list-item .item-side-info .status-pill.realizado { background-color: var(--accent-primary); }
.dashboard-list-item .item-side-info .status-pill.pendiente { background-color: var(--accent-secondary); }
.dashboard-list-item .item-side-info .status-pill.cancelado { background-color: var(--error-color); }
.dashboard-list-item.reminder { border-left: 4px solid var(--reminder-color); padding-left: 15px; }
.dashboard-list-item.reminder .item-main-info { color: var(--reminder-color); }

#calendar-container { background-color: var(--bg-medium); padding: 20px; border-radius: 8px; border: 1px solid var(--border-color); }
.fc { --fc-border-color: var(--border-color); --fc-today-bg-color: rgba(52, 211, 153, 0.15); --fc-button-bg-color: var(--bg-light); --fc-button-border-color: var(--border-color); --fc-button-text-color: var(--text-light); --fc-button-hover-bg-color: var(--bg-dark); --fc-button-active-bg-color: var(--accent-primary); --fc-button-active-text-color: var(--bg-dark); --fc-event-border-color: transparent; }
.fc .fc-toolbar-title { color: var(--text-light); font-family: var(--font-display); font-size: 2rem !important; }
.fc .fc-col-header-cell-cushion { color: var(--accent-secondary); text-decoration: none; }
.fc .fc-daygrid-day-number { color: var(--text-medium); text-decoration: none; }
.fc .fc-event-main { padding: 5px; font-weight: 600; }
.fc-event-main-custom { display: flex; align-items: center; gap: 8px; overflow: hidden; }
.fc-event-logo { width: 20px; height: 20px; border-radius: 50%; object-fit: contain; flex-shrink: 0; background-color: white; padding: 2px; }
.fc-event-main-custom span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-event-reminder { background-color: var(--reminder-color) !important; border-color: var(--reminder-color) !important; }

.modal { position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.modal.active { opacity: 1; visibility: visible; }
.modal-content { background-color: var(--bg-medium); padding: 40px; border-radius: 12px; width: 90%; max-width: 800px; position: relative; transform: scale(0.95) translateY(20px); transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); max-height: 90vh; overflow-y: auto; border: 1px solid var(--border-color); box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05); }
.modal.active .modal-content { transform: scale(1) translateY(0); }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: var(--text-medium); cursor: pointer; transition: color 0.3s, transform 0.3s; }
.modal-close:hover { color: var(--text-light); transform: rotate(90deg) scale(1.1); }
.modal-content h2 { font-family: var(--font-display); font-size: 2.2rem; text-align: center; margin-bottom: 30px; color: var(--accent-primary); font-weight: 600; position: relative; }
@media (max-width: 768px) {
    .modal-content h2 { font-size: 1.6rem; margin-bottom: 20px; }
}
.modal-content h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); border-radius: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.form-group { margin-bottom: 20px; position: relative; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 10px; color: var(--text-light); font-weight: 600; font-size: 1rem; letter-spacing: 0.3px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 14px 16px; background-color: var(--bg-light); border: 2px solid var(--border-color); border-radius: 10px; color: var(--text-light); font-family: var(--font-body); font-size: 1rem; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15), 0 4px 8px rgba(0,0,0,0.15); outline: none; transform: translateY(-1px); }
.form-group input[readonly] { background-color: var(--bg-dark); cursor: not-allowed; }
.form-group textarea { resize: vertical; min-height: 100px; }
.styled-checkbox-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; background-color: var(--bg-light); padding: 20px; border-radius: 10px; border: 2px solid var(--border-color); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.styled-checkbox-group label { display: flex; align-items: center; gap: 10px; font-weight: normal; cursor: pointer; position: relative; padding-left: 30px; user-select: none; }
.styled-checkbox-group input[type="checkbox"], .styled-checkbox-group input[type="radio"] { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.styled-checkbox-group .checkmark { position: absolute; top: 50%; left: 0; transform: translateY(-50%); height: 22px; width: 22px; background-color: var(--bg-dark); border: 2px solid var(--border-color); border-radius: 6px; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.styled-checkbox-group label:hover input ~ .checkmark { border-color: var(--accent-primary); transform: translateY(-50%) scale(1.05); box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2); }
.styled-checkbox-group input:checked ~ .checkmark { background-color: var(--accent-primary); border-color: var(--accent-primary); box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3); }
.styled-checkbox-group .checkmark:after { content: ""; position: absolute; display: none; }
.styled-checkbox-group input[type="checkbox"] ~ .checkmark:after { left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--bg-dark); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.styled-checkbox-group input[type="radio"] ~ .checkmark { border-radius: 50%; }
.styled-checkbox-group input[type="radio"] ~ .checkmark:after { top: 4px; left: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--bg-dark); }
.styled-checkbox-group input:checked ~ .checkmark:after { display: block; }

/* Estilos para la opción "Otros" en selección de plagas */
.other-pest-option {
    grid-column: 1 / -1; /* Ocupa toda la fila */
    align-items: center;
    gap: 5px;
}

.other-pest-option input[type="text"] {
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.other-pest-option input[type="text"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.other-pest-option input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* Custom Date Picker Styles */
.custom-date-picker {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-date-picker input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    background-color: var(--bg-light);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.custom-date-picker input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--shadow-color);
}

.date-picker-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    color: var(--text-medium);
}

.date-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.date-picker-dropdown.show {
    display: block;
}

.date-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-dark);
}

.date-nav-btn {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-primary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.date-nav-btn:hover {
    background-color: var(--bg-medium);
}

.current-month {
    font-weight: 600;
    color: var(--text-light);
    font-size: 14px;
}

.date-picker-calendar {
    padding: 12px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.calendar-header {
    font-weight: 700;
    color: var(--text-light);
    padding: 8px 4px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    padding: 8px 4px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.calendar-day:hover {
    background-color: var(--bg-medium);
    font-weight: 700;
    color: var(--accent-primary);
}

.calendar-day.other-month {
    color: var(--text-medium);
    font-weight: 400;
}

.calendar-day.selected {
    background-color: var(--accent-primary);
    color: white;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.4);
}

.calendar-day.today {
    background-color: var(--bg-medium);
    border: 2px solid var(--accent-secondary);
    color: var(--accent-secondary);
    font-weight: 700;
}

.calendar-day.selected.today {
    background-color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    color: white;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 6px rgba(74, 144, 226, 0.5);
}

/* Custom Time Picker Styles */
.custom-time-picker {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-time-picker input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    background-color: var(--bg-light);
    color: var(--text-light);
    cursor: pointer;
    font-family: var(--font-body);
}

.custom-time-picker input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--shadow-color);
}

.time-picker-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    color: var(--text-medium);
}

.time-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.time-picker-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.time-picker-content {
    display: flex;
    align-items: stretch;
    height: 200px;
}

.time-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.time-column:last-child {
    border-right: none;
}

.time-column-header {
    padding: 8px;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--text-light);
}

.time-scroll {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--text-medium) transparent;
}

.time-scroll::-webkit-scrollbar {
    width: 6px;
}

.time-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.time-scroll::-webkit-scrollbar-thumb {
    background-color: var(--text-medium);
    border-radius: 3px;
}

.time-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    color: var(--text-light);
}

.time-option:hover {
    background-color: var(--bg-medium);
    font-weight: 700;
    color: var(--accent-primary);
}

.time-option.selected {
    background-color: var(--accent-primary);
    color: white;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
}

.time-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-medium);
    padding: 0 8px;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.login-bg-preview { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background-color: var(--bg-dark); filter: blur(6px) brightness(0.5); transform: scale(1.1); animation: slowPan 40s infinite alternate ease-in-out; }
.login-bg-preview .preview-nav { height: 60px; background: var(--bg-medium); margin: 20px; border-radius: 8px; opacity: 0.5; }
.login-bg-preview .preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 20px; }
.login-bg-preview .preview-card { height: 120px; background: var(--bg-medium); border-radius: 8px; opacity: 0.5; }
.login-bg-preview .preview-main { margin: 20px; height: 300px; background: var(--bg-medium); border-radius: 8px; opacity: 0.5; }

#login-modal .modal-content { max-width: 450px; text-align: center; background: transparent; border: none; box-shadow: none; position: relative; z-index: 1; }
#login-modal .pesty-logo { width: 150px; height: auto; margin-bottom: 10px; animation: pesty-logo-glow 5s infinite ease-in-out; }
#login-mascot { width: 100px; height: auto; margin: 0 auto 15px; }
#login-modal h2 { font-size: 2.2rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
#login-modal h2 .highlight { color: var(--accent-primary); }
#login-modal .login-subtitle { color: var(--text-medium); margin-bottom: 30px; font-size: 1rem; text-shadow: 0 1px 5px rgba(0,0,0,0.5); }
#login-modal .input-with-icon { position: relative; }
#login-modal .input-with-icon svg.input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-medium); }
#login-modal .input-with-icon .spinner {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-medium);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}
#login-modal #access-code { padding-left: 45px; background-color: rgba(26, 26, 26, 0.8); backdrop-filter: blur(5px); }
#login-modal #access-code.shake {
    animation: shake 0.5s;
}
#login-modal .cta-button { margin-top: 10px; }

/* Estilos para pestañas de login */
#login-modal .login-tabs {
    display: flex;
    margin-bottom: 20px;
    background-color: rgba(26, 26, 26, 0.5);
    border-radius: 8px;
    padding: 4px;
    backdrop-filter: blur(5px);
}

#login-modal .login-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#login-modal .login-tab.active {
    background-color: var(--accent-primary);
    color: var(--bg-dark);
    font-weight: 600;
}

#login-modal .login-tab:hover:not(.active) {
    background-color: rgba(52, 211, 153, 0.1);
    color: var(--accent-primary);
}

/* Estilos para formularios de login */
#login-modal .login-form-tab {
    display: none;
}

#login-modal .login-form-tab.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

#login-modal #login-email,
#login-modal #login-password,
#login-modal #login-2fa-code {
    padding-left: 45px;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(5px);
}

#login-modal #login-email.shake,
#login-modal #login-password.shake,
#login-modal #login-2fa-code.shake {
    animation: shake 0.5s;
}

/* Estilos para 2FA */
#login-modal #2fa-group {
    margin-top: 15px;
}

#login-modal .form-help-text {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: 8px;
    text-align: center;
    opacity: 0.8;
}

#login-modal #login-2fa-code {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    font-weight: 600;
}



.plan-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(38, 38, 38, 0.8));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(52, 211, 153, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.plan-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(52, 211, 153, 0.25), 0 0 0 1px rgba(52, 211, 153, 0.1);
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-card.popular {
    border-color: var(--accent-primary);
    box-shadow: 0 15px 35px rgba(52, 211, 153, 0.4);
    background: linear-gradient(145deg, rgba(52, 211, 153, 0.1), rgba(26, 26, 26, 0.95));
}

.plan-card.popular::before {
    opacity: 0.3;
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-light));
    color: var(--bg-dark);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.plan-header h4 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-price {
    margin-bottom: 25px;
    position: relative;
}

.plan-price .currency {
    color: var(--accent-primary);
    font-size: 1.4rem;
    vertical-align: top;
    font-weight: 600;
}

.plan-price .amount {
    color: var(--text-light);
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.plan-price .period {
    color: var(--text-medium);
    font-size: 1rem;
    font-weight: 500;
    margin-left: 5px;
}

/* Modal de Registro de Empresa */
#company-registration-modal .modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.selected-plan-info {
    background-color: var(--accent-primary);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
}

.selected-plan-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: white;
}

.plan-price-display {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 10px 0;
    color: white;
}

.plan-description {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
    color: white;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.payment-section {
    margin: 25px 0;
    padding: 20px;
    background: var(--bg-medium);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.payment-section h3 {
    color: var(--text-primary);
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.payment-info {
    color: var(--text-medium);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.payment-method-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.payment-method-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-medium);
    transform: translateY(-2px);
}

.payment-method-btn.selected {
    border-color: var(--accent-primary);
    background: rgba(52, 211, 153, 0.1);
    color: var(--accent-primary);
}

.payment-method-btn img {
    width: 60px;
    height: 24px;
    object-fit: contain;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-container a {
    color: var(--accent-primary);
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}



/* Responsive para modal de registro */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    #company-registration-modal .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .selected-plan-info {
        padding: 15px;
    }
    
    .plan-price-display {
        font-size: 1.5rem;
    }
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.plan-features li {
    color: var(--text-medium);
    margin-bottom: 12px;
    font-size: 0.95rem;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 1.1rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.plan-card:hover .plan-features li {
    color: var(--text-light);
}

.plan-button {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--bg-medium), var(--bg-light));
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.plan-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.plan-button:hover {
    background-color: var(--accent-primary);
    color: var(--bg-dark);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 211, 153, 0.3);
}

.plan-button:hover::before {
    left: 100%;
}

.plan-card.popular .plan-button {
    background-color: var(--accent-primary);
    color: var(--bg-dark);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.3);
}

.plan-card.popular .plan-button:hover {
    background-color: var(--accent-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 211, 153, 0.4);
}

.subscription-footer {
    text-align: center;
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(38, 38, 38, 0.6));
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.subscription-footer p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.subscription-contact a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.subscription-contact a:hover {
    color: var(--accent-primary-light);
    background: rgba(52, 211, 153, 0.1);
    text-decoration: none;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .subscription-content h3 {
        font-size: 1.8rem;
    }
    
    .subscription-plans {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 5px;
    }
    
    .plan-card {
        padding: 25px 20px;
    }
    
    .plan-price .amount {
        font-size: 2rem;
    }
    
    .plan-features li {
        font-size: 0.9rem;
    }
    
    .plan-button {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    

}

#client-details-modal .modal-content { max-width: 900px; }

.stats-charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 30px; }
.chart-container { background-color: var(--bg-medium); padding: 25px; border-radius: 8px; border: 1px solid var(--border-color); transition: transform 0.3s, box-shadow 0.3s; }
.chart-container:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.chart-container h3 { font-family: var(--font-display); font-size: 1.8rem; text-align: center; margin-bottom: 20px; color: var(--text-medium); font-weight: 500; }
.chart-container.full-width { grid-column: 1 / -1; }

#printable-document-modal .modal-content { max-width: 950px; padding: 20px; }
#printable-document-wrapper { max-height: 75vh; overflow-y: auto; border: 1px solid var(--border-color); border-radius: 5px; }
#printable-document-area { display: block; padding: 20px; background-color: #0a0a0a; }
.report-sheet-container { position: relative; }
.report-sheet-container::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: var(--report-logo-url); background-repeat: no-repeat; background-position: center; background-size: 60%; opacity: 0.08; pointer-events: none; z-index: 0; }
.report-sheet { position: relative; z-index: 1; max-width: 800px; margin: auto; padding: 40px; font-family: 'Poppins', sans-serif; background-color: #1a1a1a; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); color: #e0e0e0; }
.report-page { position: relative; z-index: 1; max-width: 800px; margin: 0 auto 40px auto; padding: 40px; font-family: 'Poppins', sans-serif; background-color: #1a1a1a; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); color: #e0e0e0; min-height: 1000px; page-break-after: always; }
.report-page-break { page-break-before: always; break-before: page; }
.report-page-1 { margin-bottom: 40px; }
.report-page-2 { margin-top: 40px; }
.compact-report { padding: 10px; }
.report-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--accent-primary); padding-bottom: 20px; margin-bottom: 30px; }
.compact-header { padding-bottom: 5px; margin-bottom: 5px; }
.report-header-info { text-align: left; }
.report-header-info h1 { font-family: var(--font-display); font-size: 2.5rem; margin: 0 0 8px 0; line-height: 1.2; color: #ffffff; font-weight: 700; letter-spacing: -0.5px; }
.compact-header .report-header-info h1 { font-size: 1.8rem; }
.report-header-info span { font-size: 1rem; color: #e0e0e0; font-weight: 600; background-color: #2a2a2a; padding: 4px 12px; border-radius: 4px; display: inline-block; border: 1px solid var(--accent-primary); }
.report-logo { height: 70px; max-width: 180px; object-fit: contain; background-color: #2a2a2a; padding: 8px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); border: 1px solid #3a3a3a; }
.report-meta { display: flex; justify-content: space-between; background-color: #2a2a2a; padding: 8px 12px; border-radius: 5px; margin-bottom: 15px; font-size: 0.85rem; border: 1px solid #3a3a3a; }
.report-meta div { color: #e0e0e0; }
.report-meta div strong { color: #ffffff; }
.report-section { margin-bottom: 25px; padding: 20px; background-color: #2a2a2a; border-radius: 8px; border-left: 4px solid var(--accent-primary); border: 1px solid #3a3a3a; }
.compact-section { margin-bottom: 8px; padding: 10px; }
.report-section .section-title h2 { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 15px 0; border-bottom: 2px solid var(--accent-primary); padding-bottom: 10px; color: #ffffff; font-weight: 700; letter-spacing: -0.3px; }
.compact-section .section-title h2 { font-size: 1.2rem; padding-bottom: 3px; margin-bottom: 5px; }
.section-content { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; font-size: 0.95rem; line-height: 1.6; }
.compact-content { gap: 5px; font-size: 0.85rem; }
.section-content .full-span { grid-column: 1 / -1; }
.section-content div { padding: 8px 0; }
.section-content div strong { font-weight: 600; color: #ffffff; display: inline-block; min-width: 140px; }
.section-content div span { color: #e0e0e0; }
.report-section p { color: #e0e0e0; line-height: 1.6; margin: 10px 0; }

/* Estilos mejorados para las recomendaciones */
.recommendations-container {
    padding: 15px;
    margin: 15px 0;
    background-color: #1a1a1a;
    border-radius: 6px;
    border: 1px solid #3a3a3a;
}

.recommendations-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    color: #ffffff;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-primary);
}

.recommendations-header .icon {
    display: none;
}

.recommendations-list {
    line-height: 1.8;
    color: #e0e0e0;
}

.recommendations-list p {
    margin: 10px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
}

.recommendations-list p:before {
    content: "• ";
    position: absolute;
    left: 0;
    color: var(--text-dark);
    font-size: 1rem;
    top: 0;
}

.safety-recommendations .recommendations-header {
    color: var(--text-dark);
}

.safety-recommendations .recommendations-list p:before {
    color: #F87171;
}

.preventive-recommendations {
    /* border-left removed for cleaner PDF appearance */
}

.preventive-recommendations .recommendations-header {
    color: var(--accent-primary);
}

.preventive-recommendations .recommendations-list p:before {
    color: var(--accent-primary);
}
.signature-box { margin-top: 10px; height: 100px; border: 2px solid #3a3a3a; border-radius: 6px; display: flex; justify-content: center; align-items: center; background-color: #1a1a1a; padding: 10px; }
.compact-content .signature-box { height: 60px; margin-top: 2px; }
.signature-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.signature-img { max-height: 80px; width: auto; }
.signature-box.inverted { filter: invert(1) brightness(2); }
.signature-box + p { text-align: center; font-weight: 600; margin-top: 10px; color: #e0e0e0; font-size: 0.9rem; }
.compact-content .signature-box + p { font-size: 0.8rem; margin-top: 2px; }
.report-photos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 20px; }
.compact-section .report-photos-grid { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 3px; }
.report-photos-grid img { width: 100%; height: auto; border-radius: 6px; border: 2px solid #3a3a3a; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); transition: transform 0.2s; }
.report-photos-grid img:hover { transform: scale(1.02); border-color: var(--accent-primary); }
.evidence-img { max-height: 300px; object-fit: cover; width: 100%; }
.report-items-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.85rem; }
.report-items-table th, .report-items-table td { border: 1px solid #3a3a3a; padding: 6px; text-align: left; color: #e0e0e0; }
.report-items-table th { background-color: #2a2a2a; color: #ffffff; font-weight: 600; }
.report-items-table .text-right { text-align: right; }
.report-totals { margin-top: 10px; float: right; width: 100%; max-width: 250px; }
.report-totals table { width: 100%; }
.report-totals td { padding: 5px; color: #e0e0e0; }
.report-totals .label { color: #e0e0e0; text-align: right; }
.report-totals .value { color: #ffffff; text-align: right; font-weight: 600; }
.report-totals .grand-total td { font-size: 1.1rem; font-weight: bold; border-top: 2px solid var(--accent-primary); padding-top: 5px; color: #ffffff; }
.report-totals .grand-total .label { color: #ffffff; }
.report-totals .grand-total .value { color: var(--accent-primary); font-size: 1.2rem; }
.report-footer { text-align:center; margin-top: 40px; padding-top: 20px; border-top: 2px solid #3a3a3a; font-size: 0.9rem; line-height: 1.6; color: #b0b0b0; font-style: italic; }
.compact-footer { margin-top: 5px; font-size: 0.7rem; }

.form-section-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent-secondary); margin-top: 30px; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 5px; }

.signature-pad-placeholder { background-color: var(--bg-light); border: 2px dashed var(--border-color); border-radius: 5px; cursor: pointer; width: 100%; height: 150px; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--text-medium); transition: border-color 0.3s, background-color 0.3s; }
.signature-pad-placeholder:hover { border-color: var(--accent-primary); background-color: var(--bg-dark); }
.signature-pad-placeholder img { max-width: 90%; max-height: 90%; object-fit: contain; }
.signature-pad-placeholder span { font-weight: 600; }
#signature-modal .modal-content { max-width: 700px; }
#signature-canvas { width: 100%; height: 300px; background-color: #fff; border-radius: 5px; cursor: crosshair; }
#signature-modal-footer { display: flex; justify-content: space-between; margin-top: 20px; }
#report-photo-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 10px; background-color: var(--bg-light); padding: 10px; border-radius: 5px; min-height: 50px; }
.photo-preview-item { position: relative; }
.photo-preview-item img { width: 100%; height: 100px; object-fit: cover; border-radius: 4px; }

#day-details-modal .modal-content { max-width: 600px; }
.day-details-list { list-style: none; margin-bottom: 25px; }
.day-details-list li { background-color: var(--bg-light); padding: 15px; border-radius: 5px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; border-left: 4px solid; }
.day-details-list li.service-item { border-color: var(--accent-primary); }
.day-details-list li.reminder-item { border-color: var(--reminder-color); }
.day-details-list .item-info { font-weight: 600; }
.day-details-list .item-info span { display: block; font-weight: normal; font-size: 0.9rem; color: var(--text-medium); }
.day-details-list .item-actions .action-btn { padding: 5px 10px; font-size: 0.8rem; }
#day-details-modal .no-items { text-align: center; color: var(--text-medium); padding: 20px; }

#details-list-modal .modal-content { max-width: 700px; }
.details-list-container { max-height: 60vh; overflow-y: auto; padding-right: 10px; margin-top: 20px; }
.details-list-item { background-color: var(--bg-light); padding: 15px; border-radius: 5px; margin-bottom: 10px; border-left: 4px solid var(--info-color); transition: background-color 0.2s; }
.details-list-item.clickable-service:hover { background-color: var(--bg-light); cursor: pointer; border-left-color: var(--accent-primary); }
.details-list-item h4 { color: var(--text-light); margin-bottom: 5px; font-size: 1.1rem; }
.details-list-item p { color: var(--text-medium); font-size: 0.9rem; margin: 0; line-height: 1.5; }
.details-list-item .status-pill { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.details-list-item .status-pill.pendiente { background-color: var(--accent-secondary); color: var(--bg-dark); }
.details-list-item .status-pill.realizado { background-color: var(--accent-primary); color: var(--bg-dark); }
.details-list-item .status-pill.cancelado { background-color: var(--error-color); color: var(--bg-dark); }

/* Biblioteca de Documentos */
.documents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin-top: 30px; padding: 20px 0; }
.document-card { background-color: var(--bg-medium); border-radius: 12px; border: 2px solid var(--border-color); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; display: flex; flex-direction: column; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.document-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); border-color: var(--accent-primary); }
.document-card-header { padding: 20px; display: flex; align-items: flex-start; gap: 15px; border-bottom: 2px solid var(--border-color); flex-wrap: wrap; background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-light) 100%); }
.document-icon { font-size: 2.5rem; line-height: 1; flex-shrink: 0; }
.document-title-section { flex: 1; min-width: 0; }
.document-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-light); margin: 0 0 5px 0; word-wrap: break-word; }
.document-category { display: inline-block; padding: 4px 12px; background-color: var(--bg-light); color: var(--accent-primary); border-radius: 12px; font-size: 0.85rem; font-weight: 600; }
.document-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; margin-left: auto; }
.document-badge.expired { background-color: rgba(239, 68, 68, 0.2); color: var(--error-color); }
.document-badge.expiring { background-color: rgba(251, 191, 36, 0.2); color: var(--accent-secondary); }
.document-badge.valid { background-color: rgba(52, 211, 153, 0.2); color: var(--accent-primary); }
.document-card-body { padding: 20px; flex: 1; background-color: var(--bg-medium); }
.document-description { color: var(--text-medium); line-height: 1.6; margin-bottom: 15px; }
.document-info { display: flex; flex-direction: column; gap: 8px; }
.document-info-item { color: var(--text-medium); font-size: 0.9rem; }
.document-info-item strong { color: var(--text-light); margin-right: 5px; }
.document-card-actions { padding: 15px 20px; border-top: 2px solid var(--border-color); display: flex; gap: 10px; justify-content: flex-end; background-color: var(--bg-light); }
.document-card-actions .action-btn { flex: 1; max-width: 150px; }

/* Modal de preview de documentos */
#document-preview-modal .modal-content {
    max-width: 90% !important;
    max-height: 90vh !important;
    display: flex;
    flex-direction: column;
}

#document-preview-content {
    flex: 1;
    overflow: auto;
    min-height: 400px;
    max-height: calc(90vh - 200px);
}

#document-preview-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

#document-preview-content iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
}

#alert-modal .modal-content { max-width: 500px; text-align: center; }
#alert-modal-title { margin-bottom: 15px !important; }
#alert-modal-message { color: var(--text-medium); line-height: 1.6; margin-bottom: 30px; }
#alert-modal-footer { display: flex; justify-content: center; gap: 15px; }

#service-info-modal .modal-content { max-width: 550px; }
#service-info-modal .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 25px; margin-bottom: 30px; }
#service-info-modal .info-item { font-size: 1rem; }
#service-info-modal .info-item strong { display: block; color: var(--text-medium); font-weight: 600; margin-bottom: 4px; font-size: 0.9rem; }
#service-info-modal .info-item span { color: var(--text-light); font-weight: 500; }
#service-info-modal .info-item.full-width { grid-column: 1 / -1; }
#service-info-modal .actions-footer { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* Estilos mejorados para el módulo de configuraciones */
#settings-view {
    max-width: 900px;
    margin: 0 auto;
}

#settings-view .form-section-title {
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 8px;
    margin: 30px 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

#settings-view .form-section-title:first-of-type {
    margin-top: 0;
}

#settings-view .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

#settings-view .form-group {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

#settings-view .form-group:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(52, 211, 153, 0.1);
}

#settings-view .form-group.full-width {
    grid-column: 1 / -1;
}

#settings-view .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
}

#settings-view .form-group input,
#settings-view .form-group select,
#settings-view .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-medium);
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#settings-view .form-group input:focus,
#settings-view .form-group select:focus,
#settings-view .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}

/* Estilos para el contenedor de subida de logo */
#settings-view .logo-upload-container {
    width: 100%;
}

#settings-view .logo-input-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

#settings-view .logo-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    color: var(--text-light);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

#settings-view .logo-tab:hover {
    background-color: var(--bg-light);
    color: var(--accent-primary);
}

#settings-view .logo-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background-color: var(--bg-light);
}

#settings-view .logo-input-content {
    position: relative;
}

#settings-view .logo-input-panel {
    display: none;
}

#settings-view .logo-input-panel.active {
    display: block;
}

#settings-view .file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: var(--bg-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

#settings-view .file-upload-area:hover {
    border-color: var(--accent-primary);
    background-color: var(--bg-medium);
}

#settings-view .file-upload-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-weight: 500;
}

#settings-view .file-upload-button svg {
    color: var(--accent-primary);
}

#settings-view .file-upload-info {
    margin-top: 15px;
    color: var(--text-muted);
}

#settings-view .logo-preview {
    width: 200px;
    height: 80px;
    object-fit: contain;
    background-color: var(--bg-medium);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    transition: all 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#settings-view .logo-preview:not(.hidden) {
    border-style: solid;
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(52, 211, 153, 0.2);
}

#settings-view .file-upload-progress {
    margin-top: 15px;
    padding: 10px;
    background-color: var(--bg-light);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

#settings-view .progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--bg-medium);
    border-radius: 3px;
    overflow: hidden;
}

#settings-view .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), #22C55E);
    width: 0%;
    transition: width 0.3s ease;
}

#settings-view input[type="color"] {
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#settings-view input[type="color"]:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#settings-view .cta-button {
    background-color: var(--accent-primary);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.3);
}

#settings-view .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 211, 153, 0.4);
}

#settings-view .cta-button:active {
    transform: translateY(0);
}

/* Responsive para configuraciones */
@media (max-width: 768px) {
    #settings-view .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #settings-view .form-group {
        padding: 15px;
    }
    
    #settings-view .logo-preview {
        width: 100%;
        max-width: 200px;
    }
}

#companies-view .data-table { min-width: 800px; }
#companies-view .access-modules-cell { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#companies-view .access-modules-cell label { font-size: 0.9rem; }
#add-company-form { background-color: var(--bg-medium); padding: 25px; border-radius: 8px; border: 1px solid var(--border-color); margin-bottom: 40px; }


    height: 100%;
    background-color: var(--accent-primary);
    width: 0%;
    transition: width 0.3s ease;
    animation: progress-pulse 2s infinite;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}





#quote-modal .modal-content, #invoice-modal .modal-content { max-width: 950px; }
.line-items-container { margin-top: 20px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.line-items-header { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 50px; gap: 10px; padding: 0 10px; margin-bottom: 5px; color: var(--text-medium); font-weight: 600; font-size: 0.9rem; }
.line-item-row { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 50px; gap: 10px; margin-bottom: 10px; align-items: center; }
.line-item-row input { padding: 8px; font-size: 0.9rem; }
.line-item-total { padding: 8px; font-size: 0.9rem; text-align: right; color: var(--text-light); }
.document-totals { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; }
.document-totals table { width: 100%; max-width: 350px; }
.document-totals td { padding: 8px; font-size: 1.1rem; }
.document-totals .label { color: var(--text-medium); text-align: right; }
.document-totals .value { color: var(--text-light); font-weight: 600; text-align: right; }
.document-totals .grand-total .value { color: var(--accent-primary); font-size: 1.4rem; }

@media print {
    body:not(.pdf-generating) { background-color: #fff !important; color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    body:not(.pdf-generating) .no-print { display: none !important; }
    body:not(.pdf-generating) #printable-document-area { display: block !important; padding: 20px !important; background-color: #0a0a0a !important; }
    body:not(.pdf-generating) #printable-document-wrapper { max-height: none; overflow: visible; border: none; }
    body:not(.pdf-generating) .report-sheet { color: #e0e0e0 !important; background-color: #1a1a1a !important; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important; border: none !important; margin: 0 auto !important; max-width: 800px !important; }
    body:not(.pdf-generating) .report-sheet-container::before { opacity: 0.05; }
    body:not(.pdf-generating) .report-header { border-bottom-color: var(--accent-primary) !important; }
    body:not(.pdf-generating) .report-header-info h1 { color: #ffffff !important; }
    body:not(.pdf-generating) .report-header-info span { color: #e0e0e0 !important; background-color: #2a2a2a !important; border: 1px solid var(--accent-primary) !important; }
    body:not(.pdf-generating) .report-section { background-color: #2a2a2a !important; border: 1px solid #3a3a3a !important; border-left-color: var(--accent-primary) !important; }
    body:not(.pdf-generating) .report-section .section-title h2 { color: #ffffff !important; border-bottom-color: var(--accent-primary) !important; }
    body:not(.pdf-generating) .section-content div strong { color: #ffffff !important; }
    body:not(.pdf-generating) .section-content div span { color: #e0e0e0 !important; }
    body:not(.pdf-generating) .signature-box { border-color: #3a3a3a !important; background-color: #1a1a1a !important; }
    body:not(.pdf-generating) .signature-box img { filter: none !important; }
    body:not(.pdf-generating) .signature-box + p { color: #e0e0e0 !important; }
    body:not(.pdf-generating) .report-footer { color: #b0b0b0 !important; border-top-color: #3a3a3a !important; }
    body:not(.pdf-generating) .recommendations-container { background-color: #1a1a1a !important; border-color: #3a3a3a !important; }
    body:not(.pdf-generating) .recommendations-header { color: #ffffff !important; border-bottom-color: var(--accent-primary) !important; }
    body:not(.pdf-generating) .recommendations-list { color: #e0e0e0 !important; }
    body:not(.pdf-generating) .report-items-table th { background-color: #2a2a2a !important; color: #ffffff !important; border-color: #3a3a3a !important; }
    body:not(.pdf-generating) .report-items-table td { color: #e0e0e0 !important; border-color: #3a3a3a !important; }
    body:not(.pdf-generating) .report-totals td { color: #e0e0e0 !important; }
    body:not(.pdf-generating) .report-totals .grand-total td { color: #ffffff !important; border-top-color: var(--accent-primary) !important; }
    body:not(.pdf-generating) .report-meta { background-color: #2a2a2a !important; border-color: #3a3a3a !important; }
    body:not(.pdf-generating) .report-meta div { color: #e0e0e0 !important; }
    body:not(.pdf-generating) .report-meta div strong { color: #ffffff !important; }
    body:not(.pdf-generating) .signature-box img { filter: none !important; }
    body:not(.pdf-generating) .report-logo { background-color: transparent !important; }
}

@media (max-width: 768px) {
    .view-title { font-size: 2.5rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: auto; }


    .fc .fc-toolbar.fc-header-toolbar { flex-direction: column; gap: 15px; align-items: stretch; text-align: center; }
    .fc .fc-toolbar-title { font-size: 1.8rem !important; }
    .fc .fc-button { padding: 8px 12px; font-size: 0.9rem; }
    .fc-event-main-custom span { font-size: 0.8rem; }
    .fc-event-logo { width: 15px; height: 15px; }
}

/* What's New Panel Styles */
.whats-new-content {
    padding: 0;
}

.whats-new-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.whats-new-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.whats-new-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.whats-new-text {
    flex: 1;
}

.whats-new-text strong {
    display: block;
    color: var(--accent-primary);
    font-size: 1rem;
    margin-bottom: 5px;
}

.whats-new-text p {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

#whats-new-card {
    animation: fadeInUp 0.6s ease-out;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 4px 20px var(--shadow-color);
}

#whats-new-card .dashboard-card-title {
    color: var(--accent-primary);
}

/* Pricing Modal Styles */
#pricing-modal .modal-content {
    max-width: 1200px;
    width: 95%;
}

.pricing-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pricing-card {
    background: var(--bg-medium);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-medium) 0%, rgba(52, 211, 153, 0.05) 100%);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: var(--bg-dark);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.pricing-price .currency {
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 700;
}

.pricing-price .amount {
    font-size: 3rem;
    color: var(--accent-primary);
    font-weight: 900;
    font-family: var(--font-display);
}

.pricing-price .period {
    font-size: 1.2rem;
    color: var(--text-medium);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text-light);
    font-size: 1rem;
    border-bottom: 1px solid var(--bg-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.paypal-button-container {
    margin-top: 20px;
}

.pricing-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.pricing-footer p {
    color: var(--text-medium);
    margin: 10px 0;
    font-size: 0.95rem;
}

/* Opciones de Registro */
.registration-options {
    margin: 20px 0;
    text-align: center;
}

.registration-divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
}

.registration-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.registration-divider span {
    background: var(--bg-dark);
    padding: 0 20px;
    color: var(--text-medium);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.registration-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 25px 0;
}

.button-36 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    margin: 0 auto;
    padding: .9em 2em;
    border: 1px solid #000000;
    border-radius: 25px;
    background-color: #fff;
    color: #000000;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 8px;
}

.button-36:hover {
    border: none;
    background-color: #000000;
    color: #fff;
    font-weight: 600;
}

.registration-btn i {
    font-size: 1.1em;
}

.registration-note {
    color: var(--text-medium);
    font-size: 0.85rem;
    margin: 15px 0 0 0;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .registration-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .button-36 {
        width: 100%;
        max-width: 280px;
    }
}


    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: inherit;
    z-index: 1;
}

.restriction-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--error-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    animation: pulse 2s infinite;
}

/* Animaciones */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive para panel de suscripción */
@media (max-width: 768px) {
    .subscription-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .subscription-actions {
        width: 100%;
        min-width: auto;
    }
}

/* Subscription Modal Styles */
.subscription-features {
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 8px 0;
    color: var(--text-light);
}

.feature-icon {
    margin-right: 12px;
    font-size: 1.2em;
    color: var(--accent-primary);
}

.subscription-plans {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    justify-content: center;
}

.plan-card {
    flex: 1;
    max-width: 200px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--accent-primary);
}

.plan-card.featured {
    border-color: var(--accent-primary);
    background: var(--bg-medium);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: var(--bg-dark);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.plan-card h3 {
    margin: 0 0 15px 0;
    color: var(--text-light);
    font-size: 1.3em;
    font-family: var(--font-display);
}

.plan-price {
    font-size: 2em;
    font-weight: bold;
    color: var(--accent-primary);
    margin: 15px 0;
}

.plan-price span {
    font-size: 0.5em;
    color: var(--text-medium);
    font-weight: normal;
}

.plan-savings {
    color: var(--accent-primary-light);
    font-weight: bold;
    margin: 10px 0;
    font-size: 0.9em;
}

.plan-card .cta-button {
    width: 100%;
    margin-top: 15px;
}


}



.cta-button {
    background: #10B981;
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: auto;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #0F966A;
}

@media (max-width: 992px) {
    .plans-container {
        flex-direction: column;
        align-items: center;
    }
    .plan-card {
        width: 80%;
        max-width: 400px;
    }
    .plan-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 576px) {
    .subscription-modal-content {
        padding: 20px;
    }
    .plan-card {
        width: 100%;
    }
}

.plan-header {
    text-align: center;
    margin-bottom: 20px;
}

.plan-features {
    margin: 20px 0;
}

.plan-features .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    color: var(--text-light);
}

.plan-features .feature-icon {
    color: var(--accent-primary);
    font-size: 0.9rem;
    width: 16px;
    flex-shrink: 0;
}

.subscription-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.subscription-footer p {
    color: var(--text-medium);
    margin: 8px 0;
    font-size: 0.9rem;
}

.subscription-footer i {
        color: var(--accent-primary);
        margin-right: 8px;
    }

/* Modal de Registro */
.registration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.registration-modal.active {
    opacity: 1;
    visibility: visible;
}

.registration-modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 95%;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.registration-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.registration-modal-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.registration-modal-header p {
    font-size: 1rem;
    color: #b0b0b0;
    margin: 0;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #e0e0e0;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #252525;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.form-group input::placeholder {
    color: #888;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.register-button {
    background: #10B981;
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.register-button:hover {
    background: #0F966A;
}

.divider {
    position: relative;
    text-align: center;
    margin: 10px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #444;
}

.divider span {
    background: #1a1a1a;
    padding: 0 15px;
    color: #888;
    font-size: 0.9rem;
}

.google-register-button {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.google-register-button:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.google-icon {
    width: 20px;
    height: 20px;
}

@media (max-width: 576px) {
    .registration-modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .registration-modal-header h2 {
        font-size: 1.6rem;
    }
}




/* Neon Checkbox Styles - Updated */
.neon-checkbox-wrapper {
    --checkbox-size: 25px;
    --checkbox-color: #00ff88;
    --checkbox-shadow: rgba(0, 255, 136, 0.3);
    --checkbox-border: rgba(0, 255, 136, 0.7);
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    padding: 10px;
    margin-bottom: 8px;
}

.neon-checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.neon-checkbox-wrapper .neon-checkmark {
    position: relative;
    width: var(--checkbox-size);
    height: var(--checkbox-size);
    border: 2px solid var(--checkbox-border);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 15px var(--checkbox-shadow);
    overflow: hidden;
    flex-shrink: 0;
}

.neon-checkbox-wrapper .neon-checkmark::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--checkbox-color), #00ffcc);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scale(0) rotate(-45deg);
}

.neon-checkbox-wrapper input:checked ~ .neon-checkmark::before {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.neon-checkbox-wrapper .neon-checkmark svg {
    width: 0;
    height: 0;
    color: #1a1a1a;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.neon-checkbox-wrapper input:checked ~ .neon-checkmark svg {
    width: 18px;
    height: 18px;
    transform: rotate(360deg);
}

.neon-checkbox-wrapper:hover .neon-checkmark {
    border-color: var(--checkbox-color);
    transform: scale(1.1);
    box-shadow:
        0 0 20px var(--checkbox-shadow),
        0 0 40px var(--checkbox-shadow),
        inset 0 0 10px var(--checkbox-shadow);
}

.neon-checkbox-wrapper input:checked ~ .neon-checkmark {
    animation: pulse 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--checkbox-shadow);
    }
    50% {
        transform: scale(0.9);
        box-shadow:
            0 0 30px var(--checkbox-shadow),
            0 0 50px var(--checkbox-shadow);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--checkbox-shadow);
    }
}

.neon-checkbox-wrapper .neon-label {
    margin-left: 15px;
    font-family: "Segoe UI", sans-serif;
    color: var(--checkbox-color);
    font-size: 16px;
    text-shadow: 0 0 10px var(--checkbox-shadow);
    opacity: 0.9;
    transition: all 0.3s;
}

.neon-checkbox-wrapper:hover .neon-label {
    opacity: 1;
    transform: translateX(5px);
}

/* Glowing dots animation */
.neon-checkbox-wrapper::after,
.neon-checkbox-wrapper::before {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--checkbox-color);
    opacity: 0;
    transition: all 0.5s;
}

.neon-checkbox-wrapper::before {
    left: -10px;
    top: 50%;
}

.neon-checkbox-wrapper::after {
    right: -10px;
    top: 50%;
}

.neon-checkbox-wrapper:hover::before {
    opacity: 1;
    transform: translateX(-10px);
    box-shadow: 0 0 10px var(--checkbox-color);
}

.neon-checkbox-wrapper:hover::after {
    opacity: 1;
    transform: translateX(10px);
    box-shadow: 0 0 10px var(--checkbox-color);
}

/* Special styling for other pest option */
.neon-checkbox-wrapper.other-pest-option {
    grid-column: 1 / -1;
    align-items: center;
    gap: 5px;
}

.neon-checkbox-wrapper.other-pest-option input[type="text"] {
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.neon-checkbox-wrapper.other-pest-option input[type="text"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.neon-checkbox-wrapper.other-pest-option input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* Mejora de contraste para inputs de fecha y hora nativos */
input[type="date"], input[type="time"], input[type="datetime-local"] {
    font-weight: 600;
    color: #ffffff !important;
}

/* Webkit pseudo-elements para mejorar contraste de números */
input[type="date"]::-webkit-datetime-edit-text,
input[type="time"]::-webkit-datetime-edit-text,
input[type="datetime-local"]::-webkit-datetime-edit-text {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

input[type="date"]::-webkit-datetime-edit-year-field,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="time"]::-webkit-datetime-edit-hour-field,
input[type="time"]::-webkit-datetime-edit-minute-field,
input[type="datetime-local"]::-webkit-datetime-edit-year-field,
input[type="datetime-local"]::-webkit-datetime-edit-month-field,
input[type="datetime-local"]::-webkit-datetime-edit-day-field,
input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
input[type="datetime-local"]::-webkit-datetime-edit-minute-field {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background-color: transparent;
}

/* Estilos para el calendario desplegable */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.2);
    cursor: pointer;
}



.stock-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stock-status.normal {
    background-color: rgba(52, 211, 153, 0.2);
    color: var(--accent-primary);
}

.stock-status.low {
    background-color: rgba(251, 191, 36, 0.2);
    color: var(--accent-secondary);
}

.stock-status.out {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

.expiry-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.expiry-status.fresh {
    background-color: rgba(52, 211, 153, 0.2);
    color: var(--accent-primary);
}

.expiry-status.expiring {
    background-color: rgba(251, 191, 36, 0.2);
    color: var(--accent-secondary);
}

.expiry-status.expired {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

.expiry-status.no-expiry {
    background-color: rgba(163, 163, 163, 0.2);
    color: var(--text-medium);
}

/* ============================================
   RESPONSIVE PARA MÓVILES
   ============================================ */

@media (max-width: 768px) {
    /* Ajustes generales */
    html {
        font-size: 14px;
    }
    
    body {
        font-size: 0.9rem;
    }
    
    /* Header responsive */
    .header {
        padding: 12px 15px;
        flex-wrap: wrap;
    }
    
    .logo-img {
        height: 35px;
        max-width: 120px;
    }
    
    .header-nav-links {
        gap: 10px;
        font-size: 0.85rem;
    }
    
    .header-nav-links span,
    .header-nav-links a {
        font-size: 0.85rem;
    }
    
    /* Container */
    .container {
        width: 100%;
        padding: 15px;
        padding-top: 80px;
    }
    
    /* Navegación móvil */
    .main-nav {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
        margin-bottom: 20px;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .main-nav-btn {
        width: 100%;
        padding: 12px 15px;
        font-size: 0.9rem;
        justify-content: flex-start;
    }
    
    /* Títulos */
    .view-title {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }
    
    .view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .view-header .cta-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    /* Toolbar */
    .toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .toolbar input,
    .toolbar select,
    .toolbar label {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .toolbar .custom-select-container {
        width: 100%;
        min-width: auto;
    }
    
    /* Tablas responsive */
    .data-table {
        min-width: 600px;
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .table-wrapper {
        margin: 0 -15px;
        border-radius: 0;
        padding: 5px;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card .stat-title {
        font-size: 0.9rem;
    }
    
    .stat-card .stat-value {
        font-size: 2rem;
    }
    
    /* Dashboard grid */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    
    .dashboard-card {
        padding: 15px;
    }
    
    .dashboard-card-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .dashboard-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 0;
    }
    
    .dashboard-list-item .item-side-info {
        text-align: left;
        width: 100%;
    }
    
    /* Modales */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        padding: 20px 15px !important;
        margin: 10px;
        max-height: 90vh;
    }
    
    .modal-close {
        font-size: 2rem;
        top: 10px;
        right: 15px;
    }
    
    /* Formularios */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    /* Botones */
    .cta-button {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        margin: 3px;
    }
    
    /* Login modal */
    #login-modal .modal-content {
        padding: 20px 15px !important;
    }
    
    .login-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .login-tab {
        width: 100%;
        padding: 12px;
    }
    
    /* Calendar */
    #calendar-container {
        padding: 10px;
    }
    
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .fc .fc-toolbar-title {
        font-size: 1.5rem !important;
    }
    
    .fc .fc-button {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    /* Charts */
    .stats-charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .chart-container h3 {
        font-size: 1.3rem;
    }
    
    /* Service details */
    .service-details-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    /* Line items */
    .line-items-container {
        overflow-x: auto;
    }
    
    .line-items-header {
        min-width: 600px;
    }
    
    .line-item {
        min-width: 600px;
    }
    
    /* Document totals */
    .document-totals {
        width: 100%;
    }
    
    .document-totals table {
        width: 100%;
        max-width: 100%;
    }
    
    /* Pest library */
    .pest-library-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Settings */
    .logo-upload-container {
        flex-direction: column;
    }
    
    .file-upload-area {
        width: 100%;
    }
    
    /* Registration modal */
    .registration-modal-content {
        padding: 20px 15px !important;
    }
    
    .registration-form {
        padding: 0;
    }
}

/* Móviles pequeños (menos de 480px) */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .header {
        padding: 10px 12px;
    }
    
    .logo-img {
        height: 30px;
        max-width: 100px;
    }
    
    .container {
        padding: 10px;
        padding-top: 70px;
    }
    
    .view-title {
        font-size: 1.5rem !important;
    }
    
    .main-nav-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.8rem;
    }
    
    .modal-content {
        padding: 15px 10px !important;
    }
    
    .data-table {
        min-width: 500px;
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Ajustes para orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        padding: 8px 15px;
    }
    
    .container {
        padding-top: 60px;
    }
    
    .main-nav {
        max-height: 40vh;
    }
    
    .modal-content {
        max-height: 85vh;
    }
}

/* Prevenir zoom en inputs en iOS */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    select,
    textarea {
        font-size: 16px !important;
    }
    
    /* Mejoras adicionales para móviles */
    .form-section-title {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }
    
    /* Ajustar line items en móviles */
    .line-items-header,
    .line-item {
        font-size: 0.85rem;
    }
    
    .line-item input,
    .line-item select {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    /* Ajustar reportes */
    .report-sheet {
        padding: 15px !important;
    }
    
    .report-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .report-header-info h1 {
        font-size: 1.5rem !important;
    }
    
    /* Ajustar signature pad */
    #signature-canvas {
        width: 100% !important;
        height: 200px !important;
    }
    
    /* Mejorar scroll en móviles */
    .table-wrapper {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ajustar info grid */
    .info-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* Ajustar actions footer */
    .actions-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .actions-footer .action-btn {
        width: 100%;
        margin: 0;
    }
    
    /* Ajustar document cards */
    .document-card {
        padding: 0 !important;
    }
    
    .document-card-header {
        padding: 15px !important;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .document-badge {
        margin-left: 0 !important;
        margin-top: 10px;
    }
    
    .document-card-body {
        padding: 15px !important;
    }
    
    .document-card-actions {
        padding: 12px 15px !important;
        flex-direction: column;
        gap: 8px;
    }
    
    .document-card-actions .action-btn {
        width: 100%;
        max-width: 100% !important;
    }
    
    .documents-grid {
        gap: 20px;
        padding: 15px 0;
    }
    
    .document-card {
        margin-bottom: 15px;
    }
    
    /* Modal de preview en móviles */
    #document-preview-modal .modal-content {
        max-width: 95% !important;
        max-height: 95vh !important;
        padding: 15px !important;
    }
    
    #document-preview-content {
        min-height: 300px;
        max-height: calc(95vh - 150px);
    }
    
    #document-preview-content iframe {
        min-height: 400px;
    }
    
    /* Mejorar login modal en móviles */
    #login-modal .modal-content {
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
    
    /* Ajustar welcome message */
    #welcome-message {
        font-size: 0.85rem;
        word-break: break-word;
    }
    
    /* Menú hamburguesa para móviles */
    .mobile-menu-toggle {
        display: block !important;
        background: none;
        border: none;
        color: var(--text-light);
        font-size: 1.8rem;
        cursor: pointer;
        padding: 8px 12px;
        margin-left: auto;
        z-index: 1001;
        line-height: 1;
    }
    
    .mobile-menu-toggle.hidden {
        display: none !important;
    }
    
    .main-nav {
        position: fixed !important;
        top: 60px !important;
        left: -100% !important;
        width: 80% !important;
        max-width: 300px !important;
        height: calc(100vh - 60px) !important;
        background: var(--bg-medium) !important;
        border-right: 2px solid var(--accent-primary) !important;
        z-index: 1002 !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
        padding: 20px 15px !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5) !important;
        display: block !important;
    }
    
    .main-nav.mobile-open {
        left: 0 !important;
    }
    
    .main-nav-btn {
        width: 100% !important;
        text-align: left !important;
        padding: 15px 12px !important;
        border-radius: 8px !important;
        margin-bottom: 8px !important;
        justify-content: flex-start !important;
        background-color: var(--bg-light) !important;
        border: 1px solid var(--border-color) !important;
        font-size: 0.95rem !important;
        min-height: 48px !important;
    }
    
    .main-nav-btn:hover,
    .main-nav-btn.active {
        background-color: var(--accent-primary) !important;
        color: var(--bg-dark) !important;
        border-color: var(--accent-primary) !important;
    }
    
    /* Overlay para cerrar menú */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1001;
        backdrop-filter: blur(2px);
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    /* Ajustar header en móviles */
    .header {
        flex-wrap: nowrap;
    }
    
    .header-nav-links {
        order: 3;
        flex: 1;
        justify-content: flex-end;
    }
    
    /* Ocultar navegación desktop en móviles */
    .desktop-nav {
        display: none !important;
    }
    
    /* Asegurar que el contenedor no oculte el menú */
    .container {
        position: relative;
        z-index: 1;
    }
}

/* Mostrar navegación desktop en pantallas grandes */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .main-nav {
        position: static !important;
        left: auto !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        background: var(--bg-medium);
        border-right: none;
        padding: 10px;
    }
    
    .main-nav-btn {
        width: auto;
        text-align: center;
    }
    
    .nav-overlay {
        display: none !important;
    }
}