@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary: #4D8B68;
    --secondary: #3A6B4F;
    --light: #E8F5E9;
    --dark: #2C3E50;
    --gray: #95a5a6;
    --success: #2e7d32;
    --warning: #f57c00;
    --error: #d32f2f;
    --info: #1976d2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #e6f7e6;
    background-image: url('../img/ProyectoColibrilogo.png');
    background-size: 40%;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* HEADER STYLES */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: white;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    transition: transform 0.3s ease-in-out;
    display: block;
}

.logo:hover {
    transform: scale(1.1);
}

nav ul {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding: 10px;
    transition: 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: #6aa16a;
}

nav ul li a.active {
    border-bottom: 3px solid #6aa16a;
}

/* CONTAINER STYLES */
.container {
    width: 100%;
    max-width: 1400px;
    margin-top: 100px;
    padding: 20px;
}

.titulo-seccion {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #408053, #034626);
    color: white;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.titulo-seccion h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.titulo-seccion p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* STATS DASHBOARD */


.statis-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 500;
}

/* LOCATIONS GRID */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.location-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-card:hover::before {
    opacity: 1;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.location-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    flex: 1;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 500;
}

.location-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.bottle-stat {
    text-align: center;
}

.bottle-stat.total {
    border-left: 2px solid #f0f0f0;
    padding-top: 15px;
}

.bottle-count {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.bottle-count.textoss {
    color: #4d8b687e;
}

.bottle-label {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.capacity-bar {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--primary));
    border-radius: 4px;
    transition: width 0.8s ease;
}

.capacity-text {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 600;
}

.next-collection {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
}

.next-collection .overdue {
    color: var(--error);
    background-color: #ffebee;
}

.next-collection .urgent {
    color: var(--warning);
    background-color: #fff3e0;
}

.next-collection .scheduled {
    color: var(--success);
    background-color: var(--light);
}

.click-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 15px;
    opacity: 0.7;
    font-weight: 500;
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fefefe;
    margin: 3% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.close {
    color: white;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.close:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.detail-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--primary);
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.detail-section h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

.detail-item {
    margin-bottom: 12px;
    line-height: 1.6;
}

.detail-item strong {
    color: var(--dark);
    font-weight: 600;
}

.capacity-detail {
    space-y: 15px;
}

.capacity-item {
    margin-bottom: 20px;
}

.capacity-item span {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--primary));
    border-radius: 6px;
    transition: width 0.8s ease;
}

.percentage {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 700;
}

.historial-table {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.historial-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.historial-table th {
    background: var(--primary);
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.historial-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.historial-table tr:hover {
    background-color: #f8f9fa;
}

.no-data {
    text-align: center;
    padding: 60px 40px;
    color: var(--primary);
}

.no-data-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-data h3 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger.active .line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* FOOTER */
footer {
    width: 100%;
    background-color: #034626;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.redes-sociales {
    margin-top: 15px;
}

.social-icon {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--light);
    text-decoration: underline;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    header {
        padding: 10px 15px;
        min-height: 70px;
    }
    
    .logo {
        height: 40px;
    }
    
    .logo-container {
        z-index: 1001;
    }
    
    .hamburger {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 1000;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .container {
        margin-top: 80px;
        padding: 15px;
    }
    
    .titulo-seccion h1 {
        font-size: 2rem;
    }
    
    .titulo-seccion p {
        font-size: 1rem;
    }
    
    .stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .location-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .historial-table {
        font-size: 0.8rem;
    }
    
    .historial-table th,
    .historial-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .stats-dashboard {
        grid-template-columns: 1fr;
    }
    
    .titulo-seccion {
        padding: 30px 20px;
    }
    
    .titulo-seccion h1 {
        font-size: 1.8rem;
    }
    
    .location-card {
        padding: 20px;
    }
    
    .bottle-count {
        font-size: 1.8rem;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
}