/* styles.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* --- ESTILOS PARA LA PORTADA (INDEX) --- */
.portada-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.portada-container h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

.portada-container .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.indice-lista {
    list-style: none;
}

.indice-lista li {
    border-bottom: 1px solid #eee;
}

.indice-lista a {
    display: block;
    padding: 15px 10px;
    text-decoration: none;
    color: #0056b3;
    font-size: 1.1em;
    transition: background 0.3s;
}

.indice-lista a:hover {
    background-color: #f0f7ff;
    color: #003d82;
}

/* --- ESTILOS PARA EL VISOR (VIEWER) --- */
.layout-container {
    display: flex;
    height: 100vh; /* Ocupa toda la altura de la pantalla */
}

/* El menú lateral */
.sidebar {
    width: 280px; /* Ancho fijo, no cambia */
    flex-shrink: 0; /* Evita que se encoja */
    background-color: #2c3e50;
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Permite scroll si hay muchos puntos */
}

.sidebar-header {
    padding: 20px;
    background-color: #1a252f;
    text-align: center;
    border-bottom: 1px solid #34495e;
}

.sidebar-header h2 {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.sidebar-header a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9em;
}

.sidebar-header a:hover {
    text-decoration: underline;
}

.sidebar-nav {
    list-style: none;
    padding: 10px 0;
}

.sidebar-nav li a {
    display: block;
    padding: 12px 20px;
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.95em;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar-nav li a:hover, 
.sidebar-nav li a.active {
    background-color: #34495e;
    color: #fff;
    border-left: 3px solid #3498db;
}

/* El área de contenido (iframe) */
.content-area {
    flex-grow: 1;
    background-color: #fff;
    height: 100%;
}

.content-area iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* --- DISEÑO RESPONSIVO (Móviles) --- */
@media (max-width: 768px) {
    .layout-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 250px; /* En móvil, el menú ocupa solo la parte superior */
    }
    .content-area {
        height: calc(100vh - 250px);
    }
}