/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #222;
    background: #fff;
    line-height: 1.5;
}

/* Contenedor centrado */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header / navegación */
.header {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.logo a {
    font-size: 1.4rem;
    font-weight: bold;
    color: #111;
    text-decoration: none;
}
.nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}
.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}
.nav a:hover {
    color: #000;
}

/* Hero / sección de portada con imagen de fondo */
.hero {
    height: 60vh;
    background: url('imagenesss/portada.jpeg') center/cover no-repeat;
    position: relative;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-content {
    color: #fff;
    text-align: center;
}
.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}
.hero-content p {
    font-size: 1.2rem;
}

/* Secciones generales */
.section {
    padding: 60px 0;
}
.section h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: #111;
}
.section p {
    font-size: 1rem;
    color: #444;
    max-width: 800px;
    margin-bottom: 16px;
}

/* Galería de proyectos en grid */
.proyectos .grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.thumb {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.thumb img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.thumb:hover img {
    transform: scale(1.05);
}
.thumb .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 12px;
    width: 100%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: #f8f9fa;
    text-align: center;
    padding: 32px 0;
    color: #555;
    font-size: 0.9rem;
}

/* Botones para proyectos individuales */
.links {
    margin-top: 30px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.links a {
    background: #111;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
.links a:hover {
    background: #333;
}

/* Página de proyecto individual */
.project-header {
    padding: 40px 0 20px 0;
    text-align: center;
}
.project-header h1 {
    font-size: 2.4rem;
    color: #111;
}
.project-content {
    padding: 20px 0;
}
.project-content p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Imagen del proyecto */
.project-image {
    width: 70%;        /* reduce tamaño al 30% del contenedor */
    max-width: 500px;  /* tamaño máximo */
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Contenedor específico del proyecto final */
#proyecto-final .thumb {
    width: 50%;        /* aumenta el ancho del contenedor */
    max-width: 500px;  /* tamaño máximo opcional */
    margin: 0 auto;    /* centra el contenedor dentro del grid */
}

/* Imagen dentro del proyecto final */
.proyecto-final {
    width: 100%;       /* ocupa todo el ancho del contenedor */
    height: auto;
    display: block;
    border-radius: 8px;
}


