/* ============================================
   ARA — Interiorismo de Distinción
   Design System: Luxury Editorial
   ============================================ */

:root {
    --cream:       #F7F4EE;
    --cream-dark:  #EDE9DF;
    --ink:         #18160F;
    --ink-soft:  #3A3830;
    --gold:        #A8875A;
    --gold-light:  #C9A97A;
    --white:       #FFFFFF;
    --muted:       #8A8375;

    --font-display: 'Cormorant Garamond', serif;
    --font-accent:  'Playfair Display', serif;
    --font-body:    'Inter', sans-serif;

    --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
    --transition:  all 0.6s var(--ease-luxury);
}

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

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

/* Custom Cursor */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
    a, button, .card, .tab-btn, input, textarea {
        cursor: none;
    }
    .custom-cursor {
        width: 8px;
        height: 8px;
        background-color: var(--gold);
        border-radius: 50%;
        position: fixed;
        top: 0; left: 0;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 9999;
        transition: width 0.25s var(--ease-luxury), height 0.25s var(--ease-luxury), background-color 0.25s var(--ease-luxury), border 0.25s var(--ease-luxury);
    }
    .custom-cursor.hovered {
        width: 46px;
        height: 46px;
        background-color: rgba(168, 135, 90, 0.08);
        border: 1px solid var(--gold);
    }
    .custom-cursor.clicked {
        width: 32px;
        height: 32px;
        background-color: rgba(168, 135, 90, 0.2);
    }
}
@media (hover: none) {
    .custom-cursor {
        display: none;
    }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 1.6rem 3rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 1000;
    background: rgba(247, 244, 238, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(168, 135, 90, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 3rem;
    background: rgba(247, 244, 238, 0.97);
    box-shadow: 0 1px 40px rgba(24, 22, 15, 0.06);
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-right { justify-content: flex-end; }

.logo {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 300;
    letter-spacing: 9px;
    color: var(--ink);
    text-transform: uppercase;
    text-decoration: none;
}

.nav-link {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.68rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0%; height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--ease-luxury);
}

.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
    text-decoration: none;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    border-bottom: 1px solid var(--gold-light);
    padding-bottom: 2px;
    transition: var(--transition);
}

.nav-cta:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ============================================
   HERO
   ============================================ */
.hero {
    height: 100dvh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-parallax-wrapper {
    position: absolute;
    top: -12%; left: 0;
    width: 100%; height: 124%;
    z-index: 0;
    overflow: hidden;
}

.hero-image {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.52) saturate(0.88);
    transform: scale(1.08);
    transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.loaded .hero-image {
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(24, 22, 15, 0.1)  0%,
        rgba(24, 22, 15, 0.3)  50%,
        rgba(24, 22, 15, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 900px;
    padding: 0 2rem;
}

.hero-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 10vw, 9rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 2rem;
}

.hero-content h1 em { font-style: italic; font-weight: 300; }

.hero-divider {
    width: 44px; height: 1px;
    background: var(--gold-light);
    margin: 0 auto 2rem;
    opacity: 0.75;
}

.hero-content p {
    font-size: 0.98rem;
    font-weight: 200;
    line-height: 1.85;
    margin-bottom: 3rem;
    opacity: 0.88;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.3px;
}

.btn {
    display: inline-block;
    padding: 1.1rem 3rem;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.5);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.67rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    background: var(--white);
    color: var(--ink);
    border-color: var(--white);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
    color: rgba(255,255,255,0.45);
}

.hero-scroll-indicator span {
    font-size: 0.58rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}

/* ============================================
   PHILOSOPHY
   ============================================ */
.philosophy {
    background: var(--white);
    padding: 9rem 2rem;
}

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

.philosophy-label, .section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
}

.philosophy-rule {
    width: 1px; height: 56px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    margin: 2rem auto 3rem;
}

.section-title {
    font-family: var(--font-accent);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--ink);
}

.section-title em { 
    font-family: var(--font-display);
    font-style: italic; 
    color: var(--gold); 
    font-weight: 300;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.96rem;
    font-weight: 300;
    line-height: 1.95;
    color: var(--ink-soft);
    margin-top: 2.2rem;
}

.philosophy-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 4.5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--cream-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.62rem;
    font-weight: 300;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-divider {
    width: 1px; height: 52px;
    background: var(--cream-dark);
}

/* ============================================
   MARQUEE STRIP
   ============================================ */
.marquee-strip {
    overflow: hidden;
    background: var(--ink);
    padding: 1.2rem 0;
    border-top: 1px solid rgba(168, 135, 90, 0.2);
    border-bottom: 1px solid rgba(168, 135, 90, 0.2);
}

.marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}

.marquee-track span {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
}

.marquee-dot { color: var(--gold) !important; opacity: 0.7; }

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================
   STYLES / GRID — 2x2
   ============================================ */
.styles {
    padding: 9rem 0;
    background: var(--cream);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header .section-title { margin-top: 1rem; }

.grid-editorial {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 5rem 2rem;
    align-items: start;
}

.card {
    background: var(--white);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(168, 135, 90, 0.04);
    box-shadow: 0 10px 30px rgba(24, 22, 15, 0.02);
    transition: transform 0.65s var(--ease-luxury), box-shadow 0.65s var(--ease-luxury);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 70px rgba(24, 22, 15, 0.08);
}

.card-editorial-1 {
    grid-column: 1 / 7;
}

.card-editorial-2 {
    grid-column: 7 / 13;
    margin-top: 5rem;
}

.card-editorial-3 {
    grid-column: 2 / 8;
    margin-top: -1.5rem;
}

.card-editorial-4 {
    grid-column: 8 / 13;
    margin-top: 3.5rem;
}

.card-number {
    position: absolute;
    top: 1.4rem; left: 1.6rem;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.75);
    z-index: 2;
}

.card-img-wrapper {
    width: 100%;
    height: 380px;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(24,22,15,0.25), transparent 55%);
}

.card-img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-luxury);
}

.card:hover .card-img-wrapper img { transform: scale(1.08); }

.card-body {
    padding: 2.2rem 2.6rem 2.8rem;
}

.card-body h3 {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.card-rule {
    width: 28px; height: 1px;
    background: var(--gold);
    margin-bottom: 1.2rem;
    transition: width 0.45s var(--ease-luxury);
}

.card:hover .card-rule { width: 56px; }

.card-body p {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--muted);
}

/* ============================================
   MANIFESTO / QUOTE
   ============================================ */
.manifesto {
    background: var(--ink);
    padding: 9rem 2rem;
}

.manifesto-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.manifesto-ornament {
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.5;
    margin-bottom: 2.5rem;
    display: block;
}

.manifesto blockquote p {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 2.5rem;
}

.manifesto blockquote cite {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-style: normal;
}

/* ============================================
   CONTACT / NEWSLETTER
   ============================================ */
.contact {
    background: var(--cream);
    padding: 10rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    background: var(--white);
    box-shadow: 0 40px 80px rgba(24, 22, 15, 0.04);
    border: 1px solid rgba(168, 135, 90, 0.06);
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-image {
    background-size: cover;
    background-position: center;
    min-height: 520px;
    position: relative;
}

.contact-image::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(24, 22, 15, 0.03);
}

.contact-content {
    padding: 6rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.contact-content .section-title {
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.contact-subtitle {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--ink-soft);
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.contact-form .form-group {
    display: flex;
    border: 1px solid rgba(168, 135, 90, 0.35);
    background: var(--white);
    transition: border-color 0.3s ease;
}

.contact-form .form-group:focus-within {
    border-color: var(--ink);
}

.contact-form input[type="email"] {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--ink);
    background: transparent;
}

.btn-submit {
    padding: 1.2rem 2.5rem;
    background: var(--ink);
    color: var(--white);
    border: none;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.btn-submit:hover {
    background: var(--gold);
}

.form-disclaimer {
    font-size: 0.68rem;
    font-weight: 300;
    color: var(--muted);
    margin-top: 1.2rem;
    letter-spacing: 0.5px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--ink);
    color: var(--white);
    padding: 5rem 0 2.5rem;
    text-align: center;
}

.footer-top {
    padding: 0 2rem 3rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 300;
    letter-spacing: 12px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 300;
    color: var(--gold-light);
    opacity: 0.75;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.footer-socials a {
    color: var(--white);
    opacity: 0.5;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--gold);
    opacity: 1;
    transform: translateY(-2px);
}

.footer-rule {
    width: 100%; height: 1px;
    background: rgba(255,255,255,0.07);
    margin-bottom: 2.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.35;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    transition: color 0.3s ease;
}

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

.footer-credits { font-style: italic; }

/* ============================================
   DESIGNER PROFILE
   ============================================ */
.designer-profile {
    padding: 10rem 0;
    background: var(--cream);
    position: relative;
}

.designer-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0;
    align-items: center;
    position: relative;
}

.designer-image {
    position: relative;
    z-index: 1;
    padding-right: 2rem;
}

.designer-image::before {
    content: '';
    position: absolute;
    top: -2rem; left: -2rem;
    width: 140px; height: 140px;
    border-top: 1px solid var(--gold-light);
    border-left: 1px solid var(--gold-light);
    z-index: 0;
    opacity: 0.4;
}

.designer-image img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    box-shadow: 20px 30px 60px rgba(24, 22, 15, 0.08);
    position: relative;
    z-index: 1;
}

.designer-content {
    position: relative;
    z-index: 2;
    margin-left: -6rem;
}

.designer-card {
    background: var(--white);
    padding: 5rem 4rem;
    box-shadow: 0 30px 70px rgba(24, 22, 15, 0.06);
    border: 1px solid rgba(168, 135, 90, 0.08);
    position: relative;
}

.designer-card::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 0 16px 16px;
    border-color: transparent transparent var(--cream) transparent;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    padding: 9rem 0;
    background: var(--white);
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    cursor: pointer;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--ink);
}

.tab-btn.active {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

.gallery-pane {
    display: none;
    animation: fadeInTab 0.8s var(--ease-luxury) forwards;
}

.gallery-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: var(--cream-dark);
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.8s var(--ease-luxury);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(24,22,15,0.7), transparent);
    color: var(--white);
    padding: 2rem 1.5rem 1.5rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(28px);
    animation: fadeInUp 1.1s forwards var(--ease-luxury);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s var(--ease-luxury), transform 0.9s var(--ease-luxury);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    
    .designer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .designer-image {
        padding-right: 0;
    }
    .designer-image img {
        height: 520px;
    }
    .designer-content {
        margin-left: 0;
    }
    .designer-card {
        padding: 4rem 3rem;
    }
}

@media (max-width: 900px) {
    .grid-editorial {
        display: flex;
        flex-direction: column;
        gap: 3.5rem;
    }
    .card-editorial-1, .card-editorial-2, .card-editorial-3, .card-editorial-4 {
        margin-top: 0 !important;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .contact-image {
        min-height: 350px;
    }
    .contact-content {
        padding: 4rem 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.2rem 1.5rem;
        grid-template-columns: 1fr auto;
    }
    .nav-left, .nav-right { display: none; }

    .gallery-grid { grid-template-columns: 1fr; }

    .philosophy-stats {
        flex-direction: column;
        gap: 2rem;
    }
    .stat-divider { width: 40px; height: 1px; }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        padding: 0 1.5rem;
        gap: 1.5rem;
    }

    .hero-content h1 { letter-spacing: -1px; }

    .contact-form .form-group { 
        flex-direction: column; 
        border: none;
        background: transparent;
    }
    
    .contact-form input[type="email"] {
        border: 1px solid rgba(168, 135, 90, 0.35);
        background: var(--white);
        margin-bottom: 0.8rem;
        width: 100%;
    }
    
    .contact-form input[type="email"]:focus {
        border-color: var(--ink);
    }
    
    .btn-submit { 
        width: 100%; 
        text-align: center; 
    }
}
