/* =========================================
   ONYX REALTY | DARK LUXURY STYLE
   ========================================= */

:root {
    --bg: #0a0a0a;       /* Negro Profundo */
    --card-bg: #141414;  /* Gris Muy Oscuro */
    --text: #ffffff;
    --text-muted: #888888;
    --border: #333333;
    
    --font-display: 'Bodoni Moda', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* --- NAVBAR --- */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 30px 0; mix-blend-mode: difference; /* Efecto interesante sobre fotos */
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.brand { font-size: 1.5rem; letter-spacing: 5px; font-weight: 700; }
.tm { font-size: 0.6rem; vertical-align: top; }

.menu-trigger { cursor: pointer; width: 40px; height: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.line { width: 100%; height: 1px; background: white; transition: 0.3s; }
.menu-trigger:hover .line:nth-child(2) { width: 70%; }

.btn-outlined {
    border: 1px solid white; padding: 10px 30px; font-size: 0.8rem; letter-spacing: 2px;
}
.btn-outlined:hover { background: white; color: black; }

/* MENÚ OVERLAY */
.menu-overlay {
    position: fixed; inset: 0; background: var(--bg); z-index: 900;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transform: translateY(-100%); transition: 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}
.menu-overlay.active { transform: translateY(0); }
.m-link { font-family: var(--font-display); font-size: 3rem; margin: 10px 0; color: var(--text-muted); }
.m-link:hover { color: white; font-style: italic; }

/* --- HERO --- */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.1); transition: 5s; }
.hero:hover .hero-bg img { transform: scale(1.05); filter: grayscale(0%); } /* Efecto de color al pasar mouse */

.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); z-index: -1; }

.hero-text { text-align: center; z-index: 1; }
.subtitle { font-size: 0.8rem; letter-spacing: 4px; margin-bottom: 20px; color: rgba(255,255,255,0.8); }
.hero h1 { font-size: clamp(4rem, 8vw, 8rem); line-height: 0.9; margin-bottom: 50px; }
.italic { font-style: italic; font-weight: 700; }

.scroll-down {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0.7;
}
.scroll-down span { font-size: 0.7rem; letter-spacing: 2px; }
.line-down { width: 1px; height: 50px; background: white; }

/* --- COLECCIÓN --- */
.section-dark { padding: 120px 0; border-top: 1px solid var(--border); }
.section-head {
    display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 80px;
}
.section-head h2 { font-size: 2.5rem; letter-spacing: -1px; }

.filter-tabs button {
    background: none; border: none; color: var(--text-muted); font-size: 0.9rem;
    letter-spacing: 2px; margin-left: 30px; cursor: pointer; position: relative;
}
.filter-tabs button.active { color: white; }
.filter-tabs button.active::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 1px; background: white;
}

.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px;
}

.art-card { cursor: pointer; }
.art-img { position: relative; height: 500px; overflow: hidden; margin-bottom: 20px; }
.art-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; filter: grayscale(30%); }
.art-card:hover .art-img img { transform: scale(1.05); filter: grayscale(0%); }

.overlay-info {
    position: absolute; bottom: 20px; left: 20px; z-index: 2;
}
.overlay-info h3 { font-size: 1.5rem; margin-bottom: 5px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.overlay-info p { font-family: var(--font-body); font-size: 1rem; }

.art-details {
    display: flex; justify-content: space-between; font-size: 0.8rem; letter-spacing: 1px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 15px;
}
.separator { opacity: 0.3; }

.view-more-container { text-align: center; margin-top: 80px; }
.text-link { font-size: 0.9rem; letter-spacing: 2px; border-bottom: 1px solid white; padding-bottom: 5px; }

/* --- SERVICIOS --- */
.section-border { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 100px 0; }
.service-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.srv-title h2 { font-size: 3rem; }

.srv-item {
    border-top: 1px solid var(--border); padding: 40px 0;
    display: grid; grid-template-columns: 50px 1fr 1fr; align-items: baseline;
    transition: 0.3s;
}
.srv-item:hover { padding-left: 20px; background: rgba(255,255,255,0.02); }

.num { color: var(--text-muted); font-family: var(--font-display); }
.srv-item h3 { font-size: 1.5rem; }
.srv-item p { color: var(--text-muted); font-size: 0.95rem; }

/* --- CONTACTO --- */
.contact-section { padding: 150px 0; text-align: center; }
.pre-header { color: var(--text-muted); letter-spacing: 3px; font-size: 0.8rem; margin-bottom: 20px; }
.contact-center h2 { font-size: 4rem; margin-bottom: 60px; line-height: 1; }

.contact-grid { display: flex; justify-content: center; gap: 40px; margin-bottom: 80px; }
.c-box {
    border: 1px solid var(--border); padding: 40px; width: 200px;
    display: flex; flex-direction: column; align-items: center; gap: 15px;
    transition: 0.3s;
}
.c-box:hover { border-color: white; background: white; color: black; }
.c-box i { font-size: 2rem; }
.c-box span { font-size: 0.8rem; letter-spacing: 2px; }

.dark-form { max-width: 500px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.dark-form input {
    background: transparent; border: none; border-bottom: 1px solid var(--border);
    padding: 15px 0; color: white; font-family: var(--font-body); outline: none;
    text-align: center; font-size: 1.1rem;
}
.dark-form input:focus { border-color: white; }
.dark-form button {
    margin-top: 30px; background: white; color: black; border: none; padding: 15px 40px;
    font-weight: 700; letter-spacing: 1px; cursor: pointer; transition: 0.3s;
}
.dark-form button:hover { background: #ccc; }

/* FOOTER */
footer { padding: 50px 0; }
.footer-content { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.8rem; letter-spacing: 1px; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .container { padding: 0 20px; }
    .hero h1 { font-size: 3.5rem; }
    
    .gallery-grid { grid-template-columns: 1fr; }
    .art-img { height: 350px; }
    
    .service-layout { grid-template-columns: 1fr; }
    .srv-item { grid-template-columns: 1fr; gap: 15px; }
    
    .contact-center h2 { font-size: 2.5rem; }
    .contact-grid { flex-direction: column; align-items: center; gap: 20px; }
    .c-box { width: 100%; padding: 20px; flex-direction: row; justify-content: center; }
}