/* --- VARIABLES --- */
:root {
    --brand-dark: #1e2a4a;   /* Azul Corporativo */
    --brand-accent: #e7c1c5; /* Rosa Sutil */
    --text-body: #4a4a4a;    /* Gris Lectura */
    --bg-light: #fcfcfc;
    --border: #e0e0e0;
}

/* --- RESET & BASES --- */
/* Eliminé propiedades conflictivas para limpiar advertencias */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Manrope', sans-serif; 
    color: var(--text-body); 
    background: #ffffff; 
    line-height: 1.6; 
}

/* --- UTILIDADES --- */
.container-narrow { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }
.center { text-align: center; }

/* --- HEADER --- */
#main-header { 
    height: auto; 
    min-height: 80px; 
    position: sticky; 
    top: 0; 
    background: rgba(255,255,255,0.98); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); 
    z-index: 1000; 
    padding: 15px 0;
}
.header-container { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; }

/* Marca */
a.brand-link { text-decoration: none; color: var(--brand-dark); display: flex; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 42px; width: auto; display: block; }
.brand-info { display: flex; flex-direction: column; justify-content: center; }
.brand-info .name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1rem; line-height: 1.1; color: var(--brand-dark); }
.brand-info .tagline { font-size: 0.65rem; color: #666; letter-spacing: 0.5px; }

/* --- NAVEGACIÓN --- */
.main-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Botones del menú: Especificidad alta para evitar !important */
#main-header .main-nav a { 
    display: inline-block;
    padding: 8px 18px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid var(--brand-dark);
    color: var(--brand-dark);
}

#main-header .main-nav a:hover { 
    background: var(--brand-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- HERO --- */
#hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; max-width: 1100px; margin: 0 auto; padding: 80px 24px; }
.hero-content { flex: 1.5; min-width: 320px; }
.hero-visual { flex: 1; min-width: 300px; text-align: center; }
.kicker { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: #888; display: block; margin-bottom: 15px; }

#hero h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: 4.5rem; 
    line-height: 1; 
    margin-bottom: 25px; 
    color: var(--brand-dark);
}

.subcopy { font-size: 1.2rem; margin-bottom: 35px; color: var(--text-body); max-width: 500px; }
.chips-group { display: flex; gap: 10px; margin-bottom: 30px; }
.chip { font-size: 0.75rem; background: #f0f2f5; padding: 5px 12px; border-radius: 20px; color: var(--brand-dark); font-weight: 600; }
.hero-img { width: 320px; height: 320px; object-fit: cover; border-radius: 50%; border: 6px solid var(--brand-accent); box-shadow: 0 15px 35px rgba(231, 193, 197, 0.4); }
.lema { display: flex; align-items: center; gap: 12px; font-family: 'Playfair Display', serif; font-style: italic; color: var(--brand-dark); }

/* --- ENFOQUE & MURAL --- */
.statement-box {
    background-color: var(--bg-light);
    border-left: 5px solid var(--brand-accent);
    padding: 40px;
    margin-bottom: 80px;
    border-radius: 0 8px 8px 0;
}
.statement-text { font-family: 'Playfair Display', serif; font-size: 1.6rem; line-height: 1.4; color: var(--brand-dark); font-style: italic; }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.meta-tag { font-size: 0.7rem; font-weight: 700; color: var(--brand-accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; display: block; }

/* El Mural con Resplandor Rosa (Código limpio) */
.mural-grid {
    display: flex; align-items: center; gap: 50px;
    background: #ffffff; padding: 40px; border-radius: 12px;
    border: 1px solid rgba(231, 193, 197, 0.4);
    box-shadow: 0 20px 50px rgba(231, 193, 197, 0.35);
}
.mural-img-box { flex: 1; }
.mural-img { width: 100%; height: auto; border-radius: 8px; display: block; }
.mural-text-box { flex: 1; text-align: left; }
.mural-text-box h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--brand-dark); margin-bottom: 20px; line-height: 1.3; }
.principles-list { list-style: none; padding: 0; }
.principles-list li { margin-bottom: 10px; color: var(--text-body); font-size: 0.95rem; }
.principles-list li strong { color: var(--brand-dark); }

/* --- PROYECTOS (Compactos) --- */
.section-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 60px; color: var(--brand-dark); }
.projects-list { display: flex; flex-direction: column; gap: 30px; }

.project-card { 
    display: flex; background: #ffffff; border: 1px solid var(--border); 
    border-radius: 8px; overflow: hidden; align-items: center; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.02); 
    transition: transform 0.3s;
    height: 220px; /* Altura Fija para escritorio */
}
.project-card:hover { transform: translateY(-3px); border-color: var(--brand-accent); }

.project-img-box { flex: 0 0 300px; height: 100%; border-right: 1px solid var(--border); position: relative; }
.project-img-box img { width: 100%; height: 100%; object-fit: cover; }

.project-info { flex: 1; padding: 20px 30px; display: flex; flex-direction: column; justify-content: center; }
.project-info h3 { font-family: 'Playfair Display', serif; font-size: 1.35rem; margin-bottom: 8px; color: var(--brand-dark); line-height: 1.2; }
.project-info p { font-size: 0.9rem; line-height: 1.5; margin-bottom: 0; color: var(--text-body); }

/* --- CONTACTO --- */
.contact-card { 
    background: #ffffff; border: 1px solid var(--border); padding: 60px 40px; 
    border-radius: 12px; text-align: center; border-top: 6px solid var(--brand-accent); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}
.contact-card h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin-bottom: 30px; color: var(--brand-dark); }
.contact-actions { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* --- BOTONES GENERALES --- */
.btn { padding: 12px 24px; text-decoration: none; border-radius: 4px; font-weight: 700; font-size: 0.85rem; display: inline-block; transition: 0.3s; }
.btn-primary { background: var(--brand-dark); color: #ffffff; border: 1px solid var(--brand-dark); }
.btn-primary:hover { background: transparent; color: var(--brand-dark); }
.btn-outline { border: 1px solid var(--border); color: var(--brand-dark); }
.btn-outline:hover { border-color: var(--brand-dark); }

.footer { padding: 60px 0; border-top: 1px solid var(--border); text-align: center; font-size: 0.8rem; color: #888; }

/* --- BOTÓN FLOTANTE --- */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--brand-dark); color: #ffffff;
    width: 45px; height: 45px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); z-index: 2000; transition: 0.3s;
}
.back-to-top:hover { background: var(--brand-accent); transform: translateY(-3px); }

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
    .header-container { flex-direction: column; gap: 15px; }
    .main-nav { justify-content: center; width: 100%; }
    
    #main-header .main-nav a { padding: 10px 20px; width: auto; font-size: 0.7rem; }
    
    #hero h1 { font-size: 3.5rem; }
    
    /* Proyectos se apilan en móvil */
    .project-card { flex-direction: column; height: auto; }
    .project-img-box { flex: 0 0 200px; width: 100%; height: 200px; border-right: none; border-bottom: 1px solid var(--border); }
    .project-info { padding: 25px 20px; }
    
    .mural-grid { flex-direction: column; text-align: center; }
    .mural-text-box { text-align: center; }
}