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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0099dd;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* Página de Inicio */
.home-page {
    text-align: center;
    padding: 60px 40px;
}

.logo {
    font-size: 48px;
    font-weight: bold;
    color: #0099dd;
    margin-bottom: 20px;
}

.counter-container {
    margin: 40px 0;
    padding: 40px;
    background: #ff8c00;
    border-radius: 15px;
    color: white;
}

.counter-label {
    font-size: 24px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.counter-number {
    font-size: 72px;
    font-weight: bold;
    animation: pulse 2s ease-in-out infinite;
}

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

.nav-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.nav-button {
    padding: 25px;
    background: white;
    border: 3px solid #0099dd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #0099dd;
    font-weight: bold;
    font-size: 18px;
}

.nav-section {
    flex: 0.6;
    padding: 25px;
    background: white;
    border: 3px solid #0099dd;
    border-radius: 12px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #0099dd;
    margin-bottom: 10px;
}

.section-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-button-trastero {
    padding: 10px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: #0099dd;
    font-weight: bold;
}

.nav-button-trastero:hover {
    background: #ff8c00;
    color: white;
    transform: none;
    box-shadow: none;
}

.nav-buttons-group {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.nav-button-small {
    padding: 20px;
    font-size: 16px;
}

.nav-button:hover {
    background: #ff8c00;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
}

/* Header común para páginas internas */
.header {
    background: linear-gradient(135deg, #0099dd 0%, #ff8c00 100%);
    padding: 20px 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 28px;
}

.back-button {
    padding: 10px 20px;
    background: white;
    color: #0099dd;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.back-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* Filtros y controles */
.controls {
    padding: 30px 40px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-bar {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border 0.3s;
}

.search-bar:focus {
    outline: none;
    border-color: #0099dd;
}

.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-primary {
    padding: 12px 24px;
    background: #0099dd;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #0077bb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 221, 0.3);
}

.btn-danger {
    padding: 8px 16px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    padding: 8px 16px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-success:hover {
    background: #229954;
}

/* Lista de items */
.content {
    padding: 40px;
}

.item-list {
    display: grid;
    gap: 20px;
}

.item-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.item-card:hover {
    border-color: #0099dd;
    box-shadow: 0 5px 20px rgba(0, 153, 221, 0.15);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.item-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.item-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-occupied {
    background: #e74c3c;
    color: white;
}

.status-free {
    background: #27ae60;
    color: white;
}

.status-unpaid {
    background: #ff8c00;
    color: white;
}

.item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.item-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

.form-input:focus {
    outline: none;
    border-color: #0099dd;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Form Container */
.form-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Detail Sections */
.detail-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #0099dd;
    margin-bottom: 15px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

textarea.form-input {
    resize: vertical;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-primary {
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-buttons {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .item-details {
        grid-template-columns: 1fr;
    }
}
