:root {
    --bg-dark: #0d0d0d;
    --bg-card: rgba(26, 26, 26, 0.85);
    --text-main: #f4f4f4;
    --text-muted: #cccccc;
    --accent: #d4af37; 
    --font-titles: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Mantiene el fondo quieto */
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
}

/* --- MENÚ SUPERIOR --- */
.site-header {
    background: rgba(13, 13, 13, 0.95);
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}
.header-container {
    width: 90%; max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.brand { font-family: var(--font-titles); font-size: 1.5rem; color: #fff; text-decoration: none; font-weight: bold; letter-spacing: 2px;}
.top-nav { display: flex; gap: 1.5rem; flex-wrap: wrap;}
.top-nav a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; transition: color 0.3s;}
.top-nav a:hover, .top-nav a.active-link { color: var(--accent); }

/* --- CONTENEDOR PRINCIPAL --- */
main { width: 90%; max-width: 1000px; margin: 3rem auto; min-height: 80vh; }

/* Ocultar secciones por defecto, solo mostrar la activa */
.view-section { display: none; animation: fadeIn 0.4s ease-in-out; }
.view-section.active-view { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- ESTILOS DE TEXTO --- */
h1 { font-family: var(--font-titles); font-size: 3.5rem; text-transform: uppercase; margin-bottom: 0.5rem;}
h2 { font-family: var(--font-body); font-size: 1.2rem; color: var(--accent); margin-bottom: 1.5rem; font-weight: 300; text-transform: uppercase; letter-spacing: 2px;}
.section-title { font-family: var(--font-titles); font-size: 2.5rem; border-bottom: 1px solid #444; padding-bottom: 0.5rem; color: #fff;}
p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.05rem; }

/* Cajas de contenido con fondo translúcido para leer mejor */
.content-box { background: var(--bg-card); padding: 3rem; border-radius: 8px; border: 1px solid #333; backdrop-filter: blur(5px);}

/* --- LOS CUADRADITOS (GRID MENU) --- */
.grid-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 3rem;}
.grid-card {
    background: var(--bg-card); border: 1px solid #444; border-radius: 8px;
    padding: 2.5rem 1.5rem; text-align: center; cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.grid-card h3 { font-family: var(--font-titles); font-size: 1.4rem; color: #fff; margin-bottom: 0.5rem; }
.grid-card p { font-size: 0.85rem; margin: 0; color: var(--accent); }
.grid-card:hover { transform: translateY(-5px); border-color: var(--accent); background: rgba(26, 26, 26, 1); }

/* --- BOTONES Y ENLACES --- */
.btn-primary, .btn-secondary {
    display: inline-block; padding: 12px 24px; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px;
    border: 1px solid var(--accent); color: var(--accent); text-decoration: none; border-radius: 4px; transition: all 0.3s; margin-top: 1rem; margin-right: 1rem;
}
.btn-primary:hover, .btn-secondary:hover { background: var(--accent); color: #000; }
.project-card { margin-bottom: 2.5rem; border-bottom: 1px dashed #444; padding-bottom: 2rem;}
.stories-list { list-style: none; }
.stories-list li { margin-bottom: 1.5rem; }
.contact-grid p { margin-bottom: 1rem;}
.contact-grid a { color: var(--accent); text-decoration: none;}
.contact-grid a:hover { color: #fff;}

/* Adaptación a móviles */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .top-nav { justify-content: center; gap: 1rem; }
    .content-box { padding: 1.5rem; }
}
/* --- ESTILOS DE IMÁGENES --- */
.profile-img { width: 100%; max-width: 250px; height: auto; border-radius: 8px; margin: 1rem 0 2rem 0; display: block; border: 1px solid #444; }
.project-logo { width: 100%; max-width: 200px; height: auto; margin: 1rem 0 2rem 0; display: block; }
.project-gallery { display: flex; gap: 1rem; margin: 1.5rem 0 2rem 0; flex-wrap: wrap; }
.project-img { width: calc(50% - 0.5rem); min-width: 250px; height: auto; border-radius: 4px; object-fit: cover; border: 1px solid #333; }