:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #2563eb;
    --dark-color: #1e40af;
    --light-color: #93c5fd;
    --text-color: #333;
    --light-text: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 80px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: var(--light-text);
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    justify-content: space-between;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
a {
    color: white;
}
.responsive-esip {
    width: 60px;
}
.responsive-esip2 {
    width: 80px !important
}


.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--accent-color);
}

.menu-links {
    display: flex;
    gap: 1.5rem;
	margin: 0 3rem;
}

.menu-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-links a:hover, .menu-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.header-right a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.menu-btn {
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: none;
    transition: var(--transition);
}

.menu-btn:hover {
    transform: scale(1.1);
}

/* Sidebar */
nav {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    transition: var(--transition);
    z-index: 2000;
    padding-top: 100px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

nav.active {
    left: 0;
}

nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem 2rem;
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

nav a:hover, nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-color);
    padding-left: 2.5rem;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--light-text);
    transition: var(--transition);
}

.close-btn:hover {
    transform: rotate(90deg);
}

/* Contenido principal */
.main-content {
    min-height: calc(100vh - 180px);
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Secciones */
.section {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-description {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Formularios */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Botones */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background-color: #dc2626;
    color: white;
}

.btn-danger:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Tablas */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Mapa */
#map {
    height: 500px;
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

.map-filters, .map-heatmap-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-end; /* Alinea los elementos al final */
}

.map-filters .form-group, .map-heatmap-controls .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}
/* Estilo para que el label estÃ© siempre arriba */
.map-filters .form-group label, .map-heatmap-controls .form-group label {
    align-self: flex-start;
}


.map-legend {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.map-legend h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.legend-color.small {
    background-color: #3b82f6;
}

.legend-color.medium {
    width: 25px;
    height: 25px;
    background-color: #2563eb;
}

.legend-color.large {
    width: 30px;
    height: 30px;
    background-color: #1e40af;
}

/* Estilo para el Ã­cono de los marcadores de puertos (Kilos) */
.custom-icon div {
    font-size: 0.8em; /* Ajusta el tamaÃ±o de la fuente dentro del cÃ­rculo */
}

/* Nueva entrada para la leyenda del mapa de calor */
.legend-heatmap-color {
    width: 30px; /* Ancho para representar el Ã¡rea de calor */
    height: 15px; /* Altura */
    background: linear-gradient(to right, blue, lime, red); /* El gradiente del heatmap */
    border-radius: 3px;
}

/* Nueva entrada para la leyenda de puntos de clic del heatmap */
.legend-point-hover {
    width: 10px; /* TamaÃ±o del punto */
    height: 10px; /* Altura del punto */
    background-color: #ff5733; /* Color del cÃ­rculo pequeÃ±o que representa el punto de clic */
    border-radius: 50%;
    opacity: 0.7;
}

/* Estilo del marcador de los clics del heatmap (el cÃ­rculo pequeÃ±o) */
.custom-heatmap-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* EstadÃ­sticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-color);
    font-weight: 500;
}

/* Slider */
.hero-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: white;
    transform: scale(1.3);
}



/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: var(--light-text);
    padding: 3rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo i {
    color: var(--accent-color);
}

.footer-description {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

.footer-links a:hover {
    color: var(--accent-color);
    opacity: 1;
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-info i {
    color: var(--accent-color);
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--light-text);
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* BotÃ³n de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

/* Nuevas caracterÃ­sticas */
.data-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.data-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.data-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

.data-card ul {
    list-style-type: none;
}

.data-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.data-card li:last-child {
    border-bottom: none;
}

.data-card .badge {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.report-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.report-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.report-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.report-card p {
    margin-bottom: 1.5rem;
    color: #555;
}

.date-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.date-filter .form-group {
    flex: 1;
    margin-bottom: 0;
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-filters .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.search-filters .search-input {
    flex: 2;
}

/* Responsive */
@media (max-width: 992px) {
    .header-right {
        display: none;
    }
    
    .menu-btn {
        display: block;
    }
    
    .menu-links {
        display: none;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .section {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-slider {
        height: 350px;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .date-filter {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .map-filters, .map-heatmap-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .map-filters .form-group, .map-heatmap-controls .form-group {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-slider {
        height: 300px;
    }
    
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .search-filters .form-group {
        width: 100%;
    }
}