/* Variables globales */
:root {
    --color-primario: #2c3e50;
    --color-secundario: #3498db;
    --color-texto: #333;
    --color-fondo: #f5f6fa;
    --espaciado: 2rem;
    --border-radius: 8px;
    --sombra: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    background-color: var(--color-fondo);
    color: var(--color-texto);
}

.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--espaciado);
}

/* Header */
header {
    text-align: center;
    padding: var(--espaciado);
    margin-bottom: var(--espaciado);
    background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
    border-radius: var(--border-radius);
    color: white;
}

header h1 {
    margin-bottom: 0.5rem;
}

header h2 {
    margin-bottom: 0.3rem;
    color: #1fb487;
}

header h3 {
    font-size: 1.1rem;
}

/* Secciones */
.objetivo,
.imagenes,
.videos,
.pdfs {
    background: white;
    padding: var(--espaciado);
    margin-bottom: var(--espaciado);
    border-radius: var(--border-radius);
    box-shadow: var(--sombra);
}

h2 {
    color: var(--color-primario);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-secundario);
}

/* Galerías */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.galeria img,
.galeria video {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.galeria img:hover,
.galeria video:hover {
    transform: scale(1.05);
}

/* Nuevos estilos para las imágenes de cableado */
.imagen-cableado {
    width: 300px; /* Ancho fijo en lugar de porcentaje */
    height: auto; /* Altura automática para mantener la proporción */
    display: block;
    margin: 20px auto;
    object-fit: contain; /* Asegura que la imagen mantenga su proporción */
}

/* Estilo para contenedor de imagen si necesitas más control */
.contenedor-imagen {
    text-align: center;
    margin: 20px 0;
}

/* PDFs */
.lista-documentos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lista-documentos a {
    color: var(--color-secundario);
    text-decoration: none;
    padding: 0.8rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.lista-documentos a:hover {
    background: var(--color-secundario);
    color: white;
    padding-left: 1.5rem;
}

.documento-pdf {
    margin-bottom: 1.5rem;
}

.descripcion-pdf {
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.lista-documentos {
    padding: 1rem;
}

.lista-documentos a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.lista-documentos a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --espaciado: 1rem;
    }

    .galeria {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 1.8rem;
    }

    header h2 {
        font-size: 1.4rem;
    }

    header h3 {
        font-size: 1rem;
    }
    .imagen-cableado {
        width: 250px;
    } 
}