/* Estilos globales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
    padding: 0 8%;
}

/* Encabezado y Navegación */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: #666;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #000;
}

/* Sección Hero */
.hero {
    padding: 6rem 0 4rem 0;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: #555;
    font-weight: 300;
}

/* Grilla de Proyectos */
.proyectos-seccion {
    padding: 4rem 0;
}

.proyectos-seccion h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 0.5rem;
}

.grid-proyectos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.tarjeta-proyecto {
    cursor: pointer;
}

.imagen-placeholder {
    width: 100%;
    height: 260px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.tarjeta-proyecto h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

.ubicacion {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.descripcion {
    font-size: 0.95rem;
    color: #444;
}
/* Opción A: Mantener recubrimiento pero hacer el contenedor más alto */
.imagen-proyecto {
   /* Configuración para mostrar las láminas e imágenes completas */
    width: 100%;
    height: auto; /* El alto se calcula automáticamente sin recortar bordes */
    display: block;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}
/* Estilos para expedientes de proyecto */
.enlace-tarjeta {
    text-decoration: none;
    color: inherit;
    display: block;
}

.expediente-proyecto {
    padding: 3rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.encabezado-proyecto h1 {
    font-size: 2.5rem;
    font-weight: 300;
}

.subtitulo-proyecto {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.meta-datos {
    display: flex;
    gap: 3rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.imagen-expediente-principal {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 3rem;
}

.texto-memoria {
    max-width: 700px;
    margin-bottom: 4rem;
}

.texto-memoria h2, .galeria-detalles h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.grid-expediente {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.grid-expediente img {
    width: 100%;
    border-radius: 4px;
}
/* Forzar la cuadrícula a dividirse en columnas ordenadas */
.grid-proyectos {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas de igual tamaño */
    gap: 2.5rem;
    align-items: start;
}

/* Limitar el tamaño de las imágenes para que no se expandan */
.imagen-proyecto {
    width: 100%;
    max-height: 320px; /* Limita la altura para que no ocupe toda la pantalla */
    object-fit: cover; /* Mantiene la proporción estética de la tarjeta */
    object-position: top; /* Prioriza mostrar la parte superior de la lámina */
    border-radius: 4px;
    margin-bottom: 1rem;
    display: block;
}

/* Ajuste para pantallas pequeñas o celulares */
@media (max-width: 768px) {
    .grid-proyectos {
        grid-template-columns: 1fr;
    }
}
/* Estilos para las vistas de proyectos individuales */
.expediente-proyecto {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0 6rem 0;
}

.encabezado-proyecto h1 {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.subtitulo-proyecto {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.meta-datos {
    display: flex;
    gap: 3rem;
    padding: 1.2rem 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 3rem;
    font-size: 0.95rem;
    color: #444;
}

.imagen-expediente {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 3.5rem;
    display: block;
}

.texto-memoria {
    max-width: 680px;
    margin-bottom: 4rem;
}

.texto-memoria h2, .galeria-detalles h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.texto-memoria p {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
}

.grid-expediente {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.grid-expediente img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Estilos para las secciones Sobre Mí y Contacto al pie de la página principal */
.seccion-info {
    padding: 4rem 0;
    border-top: 1px solid #e5e5e5;
    max-width: 650px;
}

.seccion-info h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
}

.seccion-info p {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.7;
}

.datos-contacto {
    margin-top: 1.5rem;
}

.datos-contacto p {
    margin-bottom: 0.5rem;
}
