* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, 'Segoe UI', 'Arimo', sans-serif;
}

body {
    background: #f0f2f5;
    padding: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 32px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

/* Header responsive */
.header-fecha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-fecha h1 {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .header-fecha {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-fecha h1 {
        font-size: 1.3rem;
    }
}

.subtitulo {
    color: #4b5563;
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Controles de fecha */
.fecha-control {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 60px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .fecha-control {
        width: 100%;
        justify-content: center;
    }
}

.fecha-control label {
    font-weight: 600;
    color: #1e293b;
}

.fecha-control input {
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 40px;
}

/* Indicadores responsivos */
.indicadores {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    flex: 1;
    text-align: center;
    min-width: 120px;
}

.card span {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    color: #1e293b;
}

/* Estadísticas responsivas */
.estadisticas {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 16px;
    flex: 1;
    text-align: center;
    min-width: 100px;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Secciones */
.seccion {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.seccion h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

/* Formulario responsive */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.full-width {
    width: 100%;
}

input, select, button {
    padding: 0.75rem 1rem;
    border-radius: 60px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
}

button {
    background: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

button:hover {
    background: #2563eb;
}

button:active {
    transform: scale(0.98);
}

/* Items de bitácora responsive */
.item_bitacora {
    background: #f1f5f9;
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.item_bitacora > div:first-child {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 640px) {
    .item_bitacora {
        flex-direction: column;
        align-items: stretch;
    }
    
    .item_bitacora button {
        width: 100%;
    }
}

.btn_disponible {
    background: #10b981;
}

.btn_disponible:hover {
    background: #059669;
}

.btn-completado {
    background: #d1d5db;
    cursor: not-allowed;
}

/* Ajustes para móvil muy pequeño */
@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }
    
    .container {
        padding: 1rem;
        border-radius: 24px;
    }
    
    .card span {
        font-size: 1.4rem;
    }
    
    .stat-num {
        font-size: 1.2rem;
    }
    
    .seccion {
        padding: 1rem;
    }
}

/* Sección de fotos */
.info-box {
    background: #e0f2fe;
    padding: 0.75rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.foto-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.foto-item .delete-foto {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/*----------------------------------------------------------------------------------15/06/2026*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, "Segoe UI", "Arimo", sans-serif;
}

body {
    background: #f0f2f5;
    padding: 0.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    padding: 1rem;
}

/* Header responsive */
.header-fecha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-fecha h1 {
    font-size: 1.3rem;
}

@media (max-width: 640px) {
    .header-fecha {
        flex-direction: column;
        align-items: stretch;
    }
    .header-fecha h1 {
        font-size: 1.2rem;
    }
}

.subtitulo {
    color: #4b5563;
    border-left: 4px solid #3b82f6;
    padding-left: 0.75rem;
    margin-top: 0.25rem;
    font-size: 0.8rem;
}

/* Fecha control */
.fecha-control {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 60px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .fecha-control {
        width: 100%;
        justify-content: center;
    }
}

.fecha-control input {
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 40px;
    border: 1px solid #cbd5e1;
}

/* Indicadores - apilados en móvil */
.indicadores {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    flex: 1;
    text-align: center;
    min-width: 120px;
}

@media (max-width: 480px) {
    .card {
        min-width: calc(50% - 0.5rem);
        flex: none;
        width: calc(50% - 0.5rem);
    }
}

.card span {
    font-size: 1.6rem;
    font-weight: 800;
    display: block;
    color: #1e293b;
}

/* Secciones */
.seccion {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.seccion h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

/* Formulario */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.full-width {
    width: 100%;
}

input, select, button {
    padding: 0.75rem 1rem;
    border-radius: 60px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
}

button {
    background: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

button:hover {
    background: #2563eb;
}

/* Items de bitácora */
.item_bitacora {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.item_bitacora > div:first-child {
    flex: 1;
    min-width: 180px;
}

@media (max-width: 640px) {
    .item_bitacora {
        flex-direction: column;
        align-items: stretch;
    }
    .item_bitacora button {
        width: 100%;
    }
}

.btn_disponible {
    background: #10b981;
}

.btn_disponible:hover {
    background: #059669;
}

.btn-completado {
    background: #d1d5db;
    cursor: not-allowed;
}

/* Navbar responsive */
.navbar {
    background: #1e293b;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .nav-links {
        flex-direction: column;
        gap: 0.25rem;
    }
}

.nav-item {
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    transition: 0.2s;
    display: block;
    text-align: center;
}

@media (max-width: 640px) {
    .nav-item {
        text-align: left;
    }
}

.nav-item:hover {
    background: #334155;
    color: white;
}

.nav-item.active {
    background: #3b82f6;
    color: white;
}

.nav-item.logout {
    color: #f87171;
}

.nav-item.logout:hover {
    background: #7f1d1d;
    color: white;
}

/* Info box */
.info-box {
    background: #e0f2fe;
    padding: 0.75rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

/* Galería de fotos */
.foto-item {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

@media (max-width: 480px) {
    .foto-item {
        width: 60px;
        height: 60px;
    }
}

.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.foto-item .delete-foto {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


/* Mejoras adicionales para móvil */
@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }
    
    .seccion {
        padding: 0.75rem;
    }
    
    .seccion h2 {
        font-size: 1rem;
    }
    
    input, select, button {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 0.5rem;
    }
    
    .card span {
        font-size: 1.3rem;
    }
    
    .header-fecha h1 {
        font-size: 1.1rem;
    }
}