/* ============================================
   HB TALLER ARQUITECTÓNICO - STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --color-negro: #0a0a0a;
    --color-blanco: #ffffff;
    --color-gris-claro: #f5f5f5;
    --color-gris: #888888;
    --color-gris-oscuro: #1a1a1a;
    --color-acento: #c8a96e;
    --color-acento-hover: #b8954e;
    --font-principal: 'Inter', sans-serif;
    --font-display: 'Montserrat', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-principal);
    font-weight: 300;
    color: var(--color-negro);
    background: var(--color-blanco);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--color-acento);
    color: var(--color-blanco);
}

/* ---- PRELOADER ---- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--color-negro);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}
.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}
.preloader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s ease-in-out infinite;
}
.preloader-logo img {
    height: 60px;
    width: auto;
}
@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ---- NAVBAR ---- */
.navbar-eje {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1.5rem 3rem;
    transition: var(--transition);
}
.navbar-eje.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 3rem;
}
.navbar-brand-eje {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.navbar-brand-eje img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}
.navbar-eje.scrolled .navbar-brand-eje img {
    height: 40px;
}

/* Hamburger */
.menu-toggle {
    width: 35px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 10001;
}
.menu-toggle span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-blanco);
    transition: var(--transition);
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { bottom: 0; }
.menu-toggle.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { bottom: 11px; transform: rotate(-45deg); }

/* Fullscreen Menu */
.fullscreen-menu {
    position: fixed;
    inset: 0;
    background: var(--color-negro);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}
.fullscreen-menu nav a {
    display: block;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-blanco);
    text-decoration: none;
    padding: 0.3rem 0;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}
.fullscreen-menu.active nav a {
    opacity: 1;
    transform: translateY(0);
}
.fullscreen-menu nav a:nth-child(1) { transition-delay: 0.1s; }
.fullscreen-menu nav a:nth-child(2) { transition-delay: 0.15s; }
.fullscreen-menu nav a:nth-child(3) { transition-delay: 0.2s; }
.fullscreen-menu nav a:nth-child(4) { transition-delay: 0.25s; }
.fullscreen-menu nav a:nth-child(5) { transition-delay: 0.3s; }
.fullscreen-menu nav a:hover {
    color: var(--color-acento);
    padding-left: 1rem;
}
.menu-contact-info {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    right: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: end;
}
.menu-contact-info a {
    color: var(--color-gris);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}
.menu-contact-info a:hover { color: var(--color-acento); }

/* ---- HERO ---- */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--color-negro);
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
    transform: scale(1.05);
    animation: heroZoom 12s ease forwards;
}
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}
@keyframes heroZoom {
    to { transform: scale(1); }
}
.hero-content {
    position: absolute;
    bottom: 15%;
    left: 5%;
    z-index: 10;
    color: var(--color-blanco);
    max-width: 700px;
}
.hero-content h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s 0.5s forwards;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4);
}
.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s 0.7s forwards;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
.hero-scroll {
    position: absolute;
    bottom: 3rem;
    right: 5%;
    color: var(--color-blanco);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.hero-scroll::after {
    content: '';
    width: 1px;
    height: 60px;
    background: var(--color-blanco);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.3); opacity: 0.3; }
}
.hero-counter {
    position: absolute;
    bottom: 3rem;
    left: 5%;
    color: var(--color-blanco);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    z-index: 10;
}

/* ---- SECTIONS ---- */
.section {
    padding: 8rem 0;
}
.section-dark {
    background: var(--color-negro);
    color: var(--color-blanco);
}
.section-gray {
    background: var(--color-gris-claro);
}
.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gris);
    margin-bottom: 1.5rem;
    display: block;
}
.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}
.section-title-sm {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.divider {
    width: 60px;
    height: 2px;
    background: var(--color-acento);
    margin-bottom: 2rem;
}

/* ---- PROJECTS ---- */
.project-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}
.project-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-card:hover img {
    transform: scale(1.05);
}
.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: var(--transition);
}
.project-card:hover .project-card-overlay {
    background: linear-gradient(transparent 20%, rgba(0,0,0,0.85));
}
.project-card-category {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-acento);
    margin-bottom: 0.5rem;
}
.project-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-blanco);
    margin: 0;
}
.project-card-location {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.3rem;
}
.project-card-tall img { height: 500px; }
.project-card-wide img { height: 350px; }

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}
.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid #ddd;
    background: transparent;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-principal);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--color-negro);
    color: var(--color-blanco);
    border-color: var(--color-negro);
}

/* ---- SERVICES ---- */
.service-card {
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    height: 100%;
}
.service-card:hover {
    border-color: var(--color-acento);
    transform: translateY(-5px);
}
.service-card i {
    font-size: 2.5rem;
    color: var(--color-acento);
    margin-bottom: 1.5rem;
    display: block;
}
.service-card h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.service-card p {
    font-size: 0.9rem;
    color: var(--color-gris);
    line-height: 1.7;
}

/* ---- ABOUT ---- */
.about-stat {
    text-align: center;
    padding: 2rem 1rem;
}
.about-stat h3 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-acento);
    margin-bottom: 0.5rem;
}
.about-stat p {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gris);
}

/* ---- TEAM ---- */
.team-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}
.team-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition);
}
.team-card:hover img {
    filter: grayscale(0%);
}
.team-info {
    padding: 1.2rem 0;
}
.team-info h5 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.team-info p {
    font-size: 0.8rem;
    color: var(--color-gris);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---- CONTACT ---- */
.contact-form .form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    border-radius: 0;
    color: var(--color-blanco);
    padding: 1rem 0;
    font-size: 0.95rem;
    transition: var(--transition);
}
.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--color-acento);
}
.contact-form .form-control::placeholder {
    color: var(--color-gris);
}
.contact-form textarea.form-control {
    min-height: 120px;
    resize: none;
}

/* ---- BUTTONS ---- */
.btn-eje {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: var(--color-acento);
    color: var(--color-blanco);
    border: none;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-principal);
}
.btn-eje:hover {
    background: var(--color-acento-hover);
    color: var(--color-blanco);
    transform: translateY(-2px);
}
.btn-eje-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--color-blanco);
    border: 1px solid var(--color-blanco);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
    font-family: var(--font-principal);
}
.btn-eje-outline:hover {
    background: var(--color-blanco);
    color: var(--color-negro);
}

/* ---- FOOTER ---- */
.footer {
    background: var(--color-negro);
    color: var(--color-blanco);
    padding: 5rem 0 2rem;
}
.footer-brand {
    margin-bottom: 1rem;
}
.footer-brand img {
    height: 40px;
    width: auto;
}
.footer a {
    color: var(--color-gris);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}
.footer a:hover { color: var(--color-acento); }
.footer h6 {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gris);
    margin-bottom: 1.2rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    margin-top: 3rem;
    font-size: 0.8rem;
    color: var(--color-gris);
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--color-blanco);
    margin-right: 0.5rem;
    transition: var(--transition);
    font-size: 1rem;
}
.footer-social a:hover {
    background: var(--color-acento);
    border-color: var(--color-acento);
}

/* ---- PROJECT DETAIL ---- */
.project-hero {
    height: 70vh;
    position: relative;
    overflow: hidden;
}
.project-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 3rem 0;
}
.project-meta-item label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gris);
    margin-bottom: 0.3rem;
}
.project-meta-item span {
    font-size: 0.95rem;
}

/* ---- PAGE HEADER ---- */
.page-header {
    height: 50vh;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    background: var(--color-negro);
    padding-bottom: 4rem;
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-blanco);
}

/* ---- SCROLL ANIMATIONS ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s, transform 0.8s;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .navbar-eje { padding: 1rem 1.5rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .section { padding: 5rem 0; }
    .section-title { font-size: 2rem; }
    .fullscreen-menu nav a { font-size: 2rem; }
    .project-card img { height: 280px; }
    .project-card-tall img { height: 350px; }
    .page-header h1 { font-size: 2.2rem; }
    .about-stat h3 { font-size: 2.5rem; }
    .menu-contact-info { flex-direction: column; gap: 1rem; }
}
@media (max-width: 576px) {
    .hero-content { bottom: 10%; left: 5%; right: 5%; }
    .hero-content h1 { font-size: 1.8rem; }
}
