/* =========================================
   SYS.GLOBALS
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --sys-bg: #ffffff;
    --sys-fg: #000000;
    --sys-header-bg: #e0e0e0;
    --sys-font-mono: 'Space Mono', 'Courier New', Courier, monospace;
}

body.sys-body { background: var(--sys-bg); color: var(--sys-fg); font-family: var(--sys-font-mono); margin: 0; padding: 0; }

/* HEADER */
#sys-header-main { background: var(--sys-header-bg); padding: 1rem 2rem; }
.sys-header-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; }
.sys-logo { max-width: 150px; filter: brightness(0); display: block; }
#sys-nav-main .sys-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
#sys-nav-main .sys-menu a { color: var(--sys-fg); text-decoration: none; font-weight: normal; font-size: 0.9rem; }
#sys-nav-main .sys-menu a:hover { text-decoration: underline; }

/* INTRO HERO Y CARRUSEL */
.sys-hero-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--sys-header-bg); /* Fallback */
}
.sys-carousel-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.sys-slide { 
    position: absolute; inset: 0; 
    background-size: cover; background-position: center; 
    opacity: 0; transition: opacity 1.5s ease-in-out; 
}
.sys-slide.active { opacity: 1; }
.sys-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.65); z-index: 1; }
.sys-hero-content { position: relative; z-index: 2; color: #ffffff; text-align: center; max-width: 800px; padding: 0 20px; }
.sys-hero-content h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: normal; margin: 0; line-height: 1.3;}

/* PROYECTOS GRILLA 4 FULL WIDTH */
.sys-section-full { width: 100%; }
.sys-projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .sys-projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .sys-projects-grid { grid-template-columns: 1fr; } }

.sys-project-card { aspect-ratio: 1; border: 1px solid transparent; }
.sys-dashed-placeholder { border: 1px dashed var(--sys-fg); margin: -1px 0 0 -1px; }

.sys-thumb-wrapper {
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}

.sys-project-hover {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.85); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.sys-thumb-wrapper:hover .sys-project-hover { opacity: 1; }
.sys-project-hover h3 { font-size: 1rem; font-weight: normal; margin: 0 0 15px 0; text-align: center; padding: 0 10px;}
.sys-btn-link { color: #fff; border: 1px solid #fff; padding: 5px 15px; text-decoration: none; font-size: 0.8rem; }
.sys-btn-link:hover { background: #fff; color: #000; }

.sys-load-more-container { text-align: center; padding: 3rem 0; border-bottom: 1px dashed var(--sys-fg); }
#sys-btn-load-more { background: transparent; border: none; font-size: 3rem; cursor: pointer; color: var(--sys-fg); transition: transform 0.2s; font-family: var(--sys-font-mono); line-height: 1;}
#sys-btn-load-more:hover { transform: scale(1.2); }

/* SERVICIOS */
.sys-section-contained { max-width: 1200px; margin: 4rem auto; padding: 0 2rem; }
.sys-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; }
.sys-service-box h3 { font-weight: bold; font-size: 1rem; border-bottom: 1px dashed var(--sys-fg); padding-bottom: 10px; margin-top: 0; }
.sys-list { list-style: none; padding: 0; margin: 15px 0 0 0; }
.sys-list li { font-size: 0.9rem; margin-bottom: 8px; line-height: 1.4; opacity: 0.8; }

/* FOOTER */
#sys-footer-main { background-color: #040404; color: #ffffff; padding: 2rem; }
.sys-footer-container { 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1400px; 
    margin: 0 auto; 
    gap: 1rem; 
    text-align: center; 
}
@media (min-width: 768px) {
    .sys-footer-container { flex-direction: row; text-align: left; }
    .sys-footer-right { text-align: right; }
}
#sys-footer-main p { margin: 5px 0; font-size: 0.9rem; margin-bottom: 0;}
#sys-footer-main a { color: #ffffff; text-decoration: none; transition: opacity 0.2s; }
#sys-footer-main a:hover { opacity: 0.7; text-decoration: underline; }