/* --- ESTILOS GENERALES --- */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding-top: 70px; /* Espacio para el menú fijo */
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* --- ENCABEZADO Y MENÚ --- */
header {
    background-color: #0d2b4f; /* Azul Corporativo Oscuro */
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap; /* Permite que baje si no cabe */
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 500;
    transition: background-color 0.3s;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

nav a.cta-button {
    background-color: #ffcc00; /* Dorado Artístico */
    color: #0d2b4f;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: bold;
}

nav a.cta-button:hover {
    background-color: #e6b800;
}

/* --- SECCIONES PRINCIPALES --- */
section {
    padding: 60px 5%;
    max-width: 1200px; /* Un poco más ancho para la galería */
    margin: 40px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- TIPOGRAFÍA --- */
h1 {
    font-size: 2.5em;
    color: #0d2b4f;
    margin-bottom: 10px;
}

h2 {
    color: #0d2b4f;
    border-bottom: 3px solid #ffcc00;
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

h3 {
    color: #444;
    margin-bottom: 15px;
}

/* --- HERO BANNER (PORTADA) --- */
.hero-banner {
    text-align: center;
    background: linear-gradient(135deg, #0d2b4f 0%, #1a4a80 100%);
    color: white;
    padding: 80px 20px;
}

.hero-banner h1, .hero-banner h2, .hero-banner p {
    color: white; /* Forzar blanco en el banner */
}

/* --- SECCIÓN ACERCA DE (BIOGRAFÍA) --- */
.bio-container {
    overflow: hidden; /* Limpia los flotados */
}

.perfil-img {
    transition: transform 0.3s ease;
}

.perfil-img:hover {
    transform: scale(1.02);
}

/* --- GALERÍA DE ARTE (GRID SYSTEM) --- */
.categoria-arte {
    margin-bottom: 80px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.categoria-arte:last-child {
    border-bottom: none;
}

.galeria-grid {
    display: grid;
    /* Mágico: crea columnas automáticas de mínimo 250px */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.obra-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.obra-card:hover {
    transform: translateY(-5px); /* Se levanta un poco */
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.obra-card img {
    width: 100%;
    height: 250px; /* Altura uniforme para todas las fotos */
    object-fit: cover; /* Recorta para llenar el cuadro sin deformar */
    display: block;
}

/* --- SERVICIOS --- */
.servicios-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.servicio-item {
    flex: 1;
    min-width: 300px;
    background: #f9f9f9;
    padding: 20px;
    border-left: 5px solid #0d2b4f;
    border-radius: 4px;
}

/* --- FOOTER --- */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    font-size: 0.9em;
}

/* --- RESPONSIVE (CELULARES) --- */
@media (max-width: 768px) {
    /* Menú vertical */
    nav {
        flex-direction: column;
    }
    
    nav a {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    nav a.cta-button {
        margin: 10px 0 0 0;
        width: auto;
        padding: 10px 20px;
    }

    /* Ajuste de imagen de perfil */
    .perfil-img {
        float: none !important;
        display: block;
        margin: 0 auto 20px auto !important;
        width: 70% !important;
        max-width: 300px;
    }

    .bio-container {
        text-align: center;
    }

    /* Títulos más pequeños */
    h1 {
        font-size: 1.8em;
    }
    
    section {
        padding: 40px 5%;
    }
}