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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    padding: 0;
    color: #333;
    overflow: hidden;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
    color: #2c3e50;
    padding: 20px;
    font-weight: 300;
    font-size: 2em;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    margin: 0;
    flex-shrink: 0;
}

#cy {
    flex: 1;
    width: 100%;
    position: relative;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
}

#controls {
    position: absolute;
    top: 80px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#controls button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    min-width: 100px;
    margin-bottom: 5px;
}

#controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#controls button:active {
    transform: translateY(0);
}

/* Cytoscape.js custom node styles */
#cy node {
    rx: 75px !important;
    ry: 75px !important;
    stroke-linejoin: round !important;
}

#cy node[shape="round-rectangle"] {
    rx: 75px !important;
    ry: 75px !important;
}

/* Estilos para los tooltips de información */
.node-info {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: pre-line;
    z-index: 1000;
    max-width: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
}

.node-info-header {
    font-weight: bold;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 4px;
}

.node-info-detail {
    margin: 4px 0;
    opacity: 0.9;
}

.node-info-photo {
    color: #4CAF50;
    margin-top: 8px;
    font-style: italic;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5em;
        padding: 15px;
    }
    
    #controls {
        top: 70px;
        left: 10px;
    }
    
    #controls button {
        font-size: 12px;
        padding: 8px 12px;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.2em;
        padding: 10px;
    }
    
    #controls {
        top: 60px;
        left: 5px;
    }
}