/* ============================================
   DESARROLLO ARQ - ESTILO ARQUITECTÓNICO
   Paleta: Warm Charcoal + Limestone + Oxidized Copper
   Layout: Espacial, minimalista, sin bordes redondeados
   ============================================ */
:root {
    --charcoal: #2C2C2C;
    --stone: #5C5654;
    --limestone: #D4CBC2;
    --warm-white: #F7F5F2;
    --paper: #FEFDFB;
    --copper: #A0785A;
    --copper-dark: #8A6548;
    --espresso: #1A1714;
    --gray-200: #E8E4E0;
    --gray-300: #C8C2BC;
    --gray-400: #9A9490;
    --gray-500: #6B6662;
    --white: #ffffff;
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Space Grotesk', system-ui, sans-serif;
    --shadow-sm: 0 2px 8px rgba(26,23,20,0.06);
    --shadow-md: 0 4px 20px rgba(26,23,20,0.08);
    --shadow-lg: 0 12px 40px rgba(26,23,20,0.1);
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--stone);
    line-height: 1.75;
    font-size: 15px;
    background: var(--warm-white);
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* Label reutilizable */
.label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--copper);
}

/* ============================================
   CSS ICONS
   ============================================ */
.icon-phone::before,
.icon-mail::before,
.icon-clock::before,
.icon-map::before,
.icon-arrow::before {
    display: inline-block;
    font-style: normal;
    font-weight: normal;
    margin-right: 6px;
}
.icon-phone::before { content: "\260E"; }
.icon-mail::before { content: "\2709"; }
.icon-clock::before { content: "\23F0"; }
.icon-map::before { content: "\25CB"; }
.icon-arrow::before { content: "\2192"; margin-right: 0; margin-left: 6px; }

/* ============================================
   NAVIGATION - Transparent overlay
   ============================================ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    transition: background var(--transition), border-color var(--transition);
    border-bottom: 1px solid transparent;
}

#header.scrolled {
    background: rgba(254, 253, 251, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: var(--limestone);
}

/* Switch nav text color when scrolled */
#header.scrolled .header-content a,
#header.scrolled .logo-text { color: var(--charcoal); }
#header.scrolled .nav-cta {
    color: var(--paper) !important;
    background: var(--charcoal);
    border-color: var(--charcoal);
}
#header.scrolled .nav-cta:hover { background: var(--copper); border-color: var(--copper); }

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 44px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--paper);
    transition: color var(--transition);
}

#nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

#nav a {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(254,253,251,0.8);
    transition: color var(--transition);
}

#nav a:hover { color: var(--paper); }

#nav a.active {
    color: var(--paper);
    font-weight: 500;
}

#nav .nav-cta {
    border: 1px solid rgba(254,253,251,0.4);
    padding: 8px 24px;
    margin-left: 16px;
    font-weight: 500;
    color: var(--paper);
    transition: all var(--transition);
}

#nav .nav-cta:hover {
    background: var(--paper);
    color: var(--charcoal);
    border-color: var(--paper);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 1.5px;
    background: var(--paper);
    transition: all var(--transition);
}

#header.scrolled .hamburger span { background: var(--charcoal); }

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-primary {
    background: var(--copper);
    color: var(--paper);
}
.btn-primary:hover {
    background: var(--copper-dark);
}

.btn-outline {
    background: transparent;
    color: var(--paper);
    border: 1px solid rgba(254,253,251,0.5);
}
.btn-outline:hover {
    background: rgba(254,253,251,0.1);
    border-color: var(--paper);
}

.btn-dark {
    background: var(--charcoal);
    color: var(--paper);
}
.btn-dark:hover {
    background: var(--copper);
}

.btn-copper-outline {
    background: transparent;
    color: var(--copper);
    border: 1px solid var(--copper);
}
.btn-copper-outline:hover {
    background: var(--copper);
    color: var(--paper);
}

/* ============================================
   HERO - Full bleed architectural
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: var(--espresso);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    transition: transform 0.1s linear;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26,23,20,0.85) 0%,
        rgba(26,23,20,0.4) 40%,
        rgba(26,23,20,0.15) 70%,
        transparent 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 0 80px;
    max-width: 700px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 400;
    color: var(--paper);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-line {
    width: 60px;
    height: 1px;
    background: var(--copper);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1rem;
    color: rgba(254,253,251,0.7);
    line-height: 1.7;
    font-weight: 300;
    max-width: 480px;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(254,253,251,0.4);
    writing-mode: vertical-rl;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: var(--copper);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   PHILOSOPHY STRIP
   ============================================ */
.filosofia {
    padding: 80px 0;
    background: var(--paper);
    border-bottom: 1px solid var(--gray-200);
}

.filosofia-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.filosofia .label {
    margin-bottom: 24px;
    display: block;
}

.filosofia h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.4;
}

/* ============================================
   PROJECTS - Asymmetric grid
   ============================================ */
.proyectos {
    padding: 100px 0;
    background: var(--warm-white);
}

.proyectos .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.proyectos .section-header-text .label {
    display: block;
    margin-bottom: 16px;
}

.proyectos .section-header-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    color: var(--charcoal);
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.proyecto-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.proyecto-large { grid-column: span 7; }
.proyecto-small { grid-column: span 5; }

.proyecto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/10;
    transition: transform var(--transition-slow);
}

.proyecto-item:hover img {
    transform: scale(1.03);
}

.proyecto-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(to top, rgba(26,23,20,0.8), transparent);
    transform: translateY(10px);
    opacity: 0;
    transition: all var(--transition);
}

.proyecto-item:hover .proyecto-info {
    transform: translateY(0);
    opacity: 1;
}

.proyecto-info h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--paper);
    margin-bottom: 4px;
}

.proyecto-info span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--limestone);
}

/* ============================================
   SERVICES - Vertical numbered list
   ============================================ */
.servicios {
    padding: 100px 0;
    background: var(--paper);
}

.servicios .section-header {
    margin-bottom: 60px;
}

.servicios .label {
    display: block;
    margin-bottom: 16px;
}

.servicios h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    color: var(--charcoal);
    max-width: 500px;
}

.servicio-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0 32px;
    padding: 40px 0;
    border-top: 1px solid var(--gray-200);
    transition: border-color var(--transition);
}

.servicio-item:last-child {
    border-bottom: 1px solid var(--gray-200);
}

.servicio-item:hover {
    border-top-color: var(--copper);
}

.servicio-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--limestone);
    line-height: 1;
    transition: color var(--transition);
}

.servicio-item:hover .servicio-num {
    color: var(--copper);
}

.servicio-body h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.servicio-body p {
    font-size: 0.92rem;
    color: var(--gray-500);
    max-width: 560px;
    line-height: 1.7;
}

/* ============================================
   STUDIO / ABOUT - Split layout
   ============================================ */
.estudio {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.estudio-imagen {
    position: relative;
    overflow: hidden;
}

.estudio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.estudio-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 72px;
    background: var(--warm-white);
}

.estudio-texto .label {
    display: block;
    margin-bottom: 24px;
}

.estudio-texto h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.3;
    margin-bottom: 20px;
}

.estudio-texto p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 40px;
    line-height: 1.8;
}

.estudio-stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.estudio-stat h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--charcoal);
}

.estudio-stat span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
}

/* ============================================
   CTA STRIP
   ============================================ */
.cta-strip {
    padding: 80px 0;
    background: var(--espresso);
    text-align: center;
}

.cta-strip .label {
    display: block;
    margin-bottom: 20px;
    color: var(--copper);
}

.cta-strip h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--paper);
    margin-bottom: 12px;
}

.cta-strip p {
    color: var(--gray-400);
    margin-bottom: 36px;
    font-size: 0.95rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.page-hero {
    padding: 160px 0 80px;
    background: var(--espresso);
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--paper);
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--gray-400);
    font-size: 0.95rem;
}

.contacto-section {
    padding: 80px 0;
    background: var(--warm-white);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
}

.contacto-info h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.contacto-info > p {
    color: var(--gray-500);
    margin-bottom: 40px;
    font-size: 0.92rem;
    line-height: 1.7;
}

.contacto-dato {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contacto-dato-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
    font-size: 1.1rem;
}

.contacto-dato h4 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 2px;
}

.contacto-dato p,
.contacto-dato a {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.contacto-dato a:hover { color: var(--copper); }

.contacto-map {
    margin-top: 32px;
}

.contacto-map iframe {
    border: 1px solid var(--gray-200);
}

/* Form */
.contacto-form {
    background: var(--paper);
    padding: 48px;
    border: 1px solid var(--gray-200);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.form-group .required { color: var(--copper); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1px solid var(--gray-200);
    background: var(--warm-white);
    color: var(--charcoal);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--copper);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-error {
    font-size: 0.78rem;
    color: #c0392b;
    margin-top: 4px;
    display: none;
}

.form-submit {
    margin-top: 8px;
}

.form-submit .btn { width: 100%; justify-content: center; }

.flash-message {
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    border: 1px solid;
}

.flash-success { background: #f0faf0; color: #2d6a2e; border-color: #b7deb8; }
.flash-error { background: #fdf0f0; color: #c0392b; border-color: #f0c0c0; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--espresso);
    color: var(--gray-400);
    padding: 72px 0 0;
    border-top: 1px solid var(--copper);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(212,203,194,0.1);
}

.footer-brand .logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--paper);
    display: block;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--gray-400);
    max-width: 320px;
}

.footer h4 {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--limestone);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 0.88rem;
    color: var(--gray-400);
    padding: 6px 0;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--paper); }

.footer-contact p,
.footer-contact a {
    font-size: 0.88rem;
    color: var(--gray-400);
    display: block;
    padding: 4px 0;
}

.footer-contact a:hover { color: var(--copper); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.78rem;
    color: var(--gray-500);
}

.footer-bottom a { color: var(--gray-400); }
.footer-bottom a:hover { color: var(--paper); }

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   AVISO DE PRIVACIDAD
   ============================================ */
.legal-section {
    padding: 160px 0 80px;
    background: var(--warm-white);
}

.legal-section h1 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 32px;
}

.legal-section h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--charcoal);
    margin: 32px 0 12px;
}

.legal-section p {
    margin-bottom: 16px;
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.8;
}

/* ============================================
   RESPONSIVE - 1024px
   ============================================ */
@media (max-width: 1024px) {
    .proyectos-grid { gap: 16px; }
    .proyecto-large, .proyecto-small { grid-column: span 6; }
    .estudio { grid-template-columns: 1fr; }
    .estudio-texto { padding: 60px 40px; }
    .estudio-imagen { max-height: 400px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================
   RESPONSIVE - 768px
   ============================================ */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    #nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--espresso);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: right var(--transition);
        z-index: 999;
    }

    #nav.open { right: 0; }

    #nav a {
        font-family: var(--font-display);
        font-size: 1.8rem;
        color: var(--paper);
        padding: 12px 24px;
    }

    #nav .nav-cta {
        font-family: var(--font-body);
        font-size: 0.85rem;
        margin-left: 0;
        margin-top: 24px;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(26,23,20,0.6);
        z-index: 998;
    }
    .nav-overlay.open { display: block; }

    .hero { min-height: 90vh; }
    .hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
    .hero-content { padding-bottom: 100px; }

    .proyectos-grid { grid-template-columns: 1fr; }
    .proyecto-large, .proyecto-small { grid-column: span 1; }
    .proyecto-info { opacity: 1; transform: translateY(0); }

    .servicio-item { grid-template-columns: 60px 1fr; }

    .estudio-texto { padding: 48px 24px; }
    .estudio-stats { flex-direction: column; gap: 24px; }

    .contacto-grid { grid-template-columns: 1fr; }
    .contacto-form { padding: 32px; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================
   RESPONSIVE - 480px
   ============================================ */
@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .hero-content { padding-bottom: 80px; }
    .form-row { grid-template-columns: 1fr; }
    .contacto-form { padding: 24px; }
    .servicio-item { grid-template-columns: 1fr; }
    .servicio-num { font-size: 1.8rem; }
}
