.cameras-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 50px 0;  /* Reducido de 60px */
}

.cameras-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.cameras-header {
    text-align: center;
    margin-bottom: 40px;  /* Reducido de 48px */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 35px 40px;  /* Reducido de 50px verticalmente */
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.cameras-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.cameras-title {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;  /* Reducido de 16px */
}

.cameras-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 12px;
    line-height: 1.7;
}

.cameras-subtitle {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Ocultar textos en móvil */
@media (max-width: 768px) {
    .cameras-description,
    .cameras-subtitle {
        display: none;
    }
}

/* Mapa Leaflet */
.map-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.map-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 32px;
}

#map {
    height: 600px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
}

/* Estilos para marcadores personalizados de Leaflet */
.camera-marker-icon {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.camera-marker-icon:hover {
    background: linear-gradient(135deg, #ef4444, #f97316);
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.7);
}

.camera-marker-icon::after {
    content: '📹';
    font-size: 14px;
}

/* Popup personalizado */
.leaflet-popup-content-wrapper {
    background: white;
    color: #2c3e50;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 0;
    min-width: 200px;
}

.popup-camera-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 2px solid #e9ecef;
    color: #2c3e50;
}

.popup-camera-state {
    font-size: 0.875rem;
    color: #6c757d;
    padding: 8px 16px;
}

.popup-camera-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 12px 12px;
    transition: all 0.3s ease;
}

.popup-camera-button:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.leaflet-popup-tip {
    background: white;
}

/* Lista de cámaras */
.cameras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.article-grid-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 32px;
}

.camera-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.camera-card:hover {
    transform: translateY(-8px);
    border-color: #667eea;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.camera-thumbnail {
    position: relative;
    padding-top: 66.67%;
    background: #000;
    overflow: hidden;
}

.camera-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.camera-card:hover .camera-thumbnail img {
    transform: scale(1.1);
}

.camera-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(102, 126, 234, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.camera-card:hover .camera-play-overlay {
    background: rgba(118, 75, 162, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.camera-info {
    padding: 20px;
}

.camera-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
}

.camera-location {
    font-size: 0.9375rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.camera-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #667eea;
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
}

.modal-info {
    padding: 24px;
    background: white;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.modal-location {
    font-size: 1.0625rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .cameras-title {
        font-size: 2rem;
    }
    
    .map-section {
        padding: 24px;
    }
    
    #map {
        height: 400px;
    }
    
    .cameras-grid {
        grid-template-columns: 1fr;
    }
}
