/* ==================================================================
   Florencia Bertoletti — Arquitecta
   Estilo minimalista, blanco/negro tipográfico. Mobile-first.
   ================================================================== */

:root {
    --brand:   #111111;
    --ink:     #111111;
    --ink-2:   #2a2a2a;
    --muted:   #6b6b6b;
    --line:    #e5e5e3;
    --bg:      #ffffff;
    --bg-2:    #f6f4f0;
    --shadow:  0 10px 30px rgba(17,17,17,.06);

    --serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .65; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 .5em;
    letter-spacing: -.01em;
    line-height: 1.15;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.container.narrow { max-width: 760px; }

.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ============== TOPNAV ============== */
.topnav {
    position: sticky; top: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(110%) blur(8px);
    border-bottom: 1px solid var(--line);
    z-index: 100;
}
.topnav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
}
.logo img { max-height: 40px; width: auto; }
.logo-text {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: .02em;
}

.menu { display: none; }
.menu a {
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: 8px 0;
    color: var(--ink-2);
}
.menu a.active { font-weight: 600; color: var(--ink); }

/* Hamburger */
.nav-toggle { display: none; }
.nav-burger {
    display: flex; flex-direction: column; justify-content: center;
    width: 32px; height: 32px; cursor: pointer; gap: 5px;
}
.nav-burger span {
    display: block;
    height: 2px; background: var(--ink); border-radius: 1px;
    transition: transform .25s, opacity .25s;
}
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
@media (max-width: 768px) {
    .menu {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        padding: 8px 20px 20px;
        gap: 4px;
        transform: scaleY(0); transform-origin: top;
        transition: transform .22s ease;
    }
    .nav-toggle:checked ~ .menu { display: flex; transform: scaleY(1); }
    .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .menu a:last-child { border-bottom: 0; }
}

@media (min-width: 769px) {
    .nav-burger { display: none; }
    .menu { display: flex; align-items: center; gap: 36px; }
}

/* ============== HERO ============== */
.hero {
    padding: 80px 20px 100px;
    text-align: left;
    background: var(--bg-2);
}
.hero-plain {
    background: var(--bg-2);
    color: var(--ink);
}
.hero-img {
    background-size: cover;
    background-position: center;
    color: #fff;
    min-height: 70vh;
    display: flex;
    align-items: center;
}
.hero-img h1, .hero-img p { color: #fff; }

.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 500;
    margin: 0 0 .2em;
    letter-spacing: -.02em;
}
.hero-sub {
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    color: var(--ink-2);
    max-width: 560px;
    margin: 0 0 32px;
    font-weight: 300;
}
.hero-img .hero-sub { color: rgba(255,255,255,.9); }

/* ============== BUTTONS ============== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--ink);
    color: #fff;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    border: 1px solid var(--ink);
    transition: background .2s, color .2s;
}
.btn:hover { opacity: 1; background: transparent; color: var(--ink); }
.hero-img .btn { border-color: #fff; background: #fff; color: var(--ink); }
.hero-img .btn:hover { background: transparent; color: #fff; }

.btn-wa { background: #25D366; border-color: #25D366; color: #fff; }
.btn-wa:hover { background: transparent; color: #25D366; }

/* ============== SECTIONS ============== */
.section {
    padding: 64px 0;
}
@media (min-width: 769px) {
    .section { padding: 96px 0; }
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin: 0 0 36px;
}
.section-title.center { text-align: center; }

.prose {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ink-2);
    font-weight: 400;
}
.prose br + br { display: block; content: ''; margin-top: 1em; }

/* ============== OBRAS GRID ============== */
.obra-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 24px;
}
@media (min-width: 600px) {
    .obra-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
}
@media (min-width: 1000px) {
    .obra-grid { grid-template-columns: repeat(3, 1fr); }
}

.obra-card {
    display: block;
    transition: transform .25s ease;
}
.obra-card:hover { opacity: 1; transform: translateY(-3px); }

.obra-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: var(--bg-2);
    overflow: hidden;
    margin-bottom: 16px;
}
.obra-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.obra-card:hover .obra-img img { transform: scale(1.04); }

.obra-tipo {
    display: inline-block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--muted);
    margin-bottom: 6px;
}
.obra-tipo.light { color: rgba(255,255,255,.85); }

.obra-name {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0 0 4px;
}
.obra-meta {
    font-size: .9rem;
    color: var(--muted);
    margin: 0;
}
.obra-meta.light { color: rgba(255,255,255,.85); }

/* ============== TIPO FILTROS ============== */
.tipo-filtros {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 32px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
}
.tipo-filtros a {
    display: inline-block;
    padding: 12px 22px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--muted);
    border-bottom: 2px solid transparent;
}
.tipo-filtros a.is-active {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

/* ============== OBRA DETAIL HERO ============== */
.obra-hero {
    background: var(--bg-2);
    padding: 60px 0 80px;
    color: var(--ink);
}
.obra-hero.has-img {
    background-size: cover;
    background-position: center;
    color: #fff;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
}
.obra-hero.has-img h1 { color: #fff; }
.obra-hero .back-link {
    display: inline-block;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    margin-bottom: 20px;
    opacity: .8;
}

/* ============== VIDEO ============== */
.video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}
.video-wrap iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%; border: 0;
}

/* ============== IMAGE BLOCK ============== */
.block-img {
    width: 100%;
    margin: 0 auto 12px;
}

/* ============== CONTACTO ============== */
.contact-actions {
    display: flex;
    gap: 14px;
    margin: 28px 0;
    flex-wrap: wrap;
}
.contact-meta {
    list-style: none;
    padding: 24px 0 0;
    margin: 24px 0 0;
    border-top: 1px solid var(--line);
}
.contact-meta li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.contact-meta .label {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .75rem;
    color: var(--muted);
    min-width: 100px;
}

/* ============== FOOTER ============== */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,.85);
    padding: 64px 0 32px;
    margin-top: 60px;
    font-size: .95rem;
}
.footer h4 {
    font-family: var(--sans);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: rgba(255,255,255,.55);
    margin: 0 0 14px;
    font-weight: 500;
}
.footer a { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (min-width: 700px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
}
.footer-col p { margin: 0 0 8px; }
.footer-name {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: #fff;
    margin: 0 0 16px;
}
.footer-text {
    color: rgba(255,255,255,.7);
    max-width: 420px;
    line-height: 1.7;
}
.footer-logo { max-height: 50px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-copy {
    padding-top: 28px;
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    text-align: center;
    letter-spacing: .08em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.footer-credit {
    font-size: .68rem;
    color: rgba(255,255,255,.28);
    letter-spacing: .14em;
    text-transform: uppercase;
}
.footer-credit a {
    color: rgba(255,255,255,.45);
    border-bottom: 1px solid rgba(255,255,255,.15);
    padding-bottom: 1px;
}
.footer-credit a:hover { color: rgba(255,255,255,.7); }

/* ============== WHATSAPP FLOAT ============== */
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: #25D366;
    color: #fff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37,211,102,.4);
    z-index: 90;
    transition: transform .2s;
}
.wa-float:hover { opacity: 1; transform: scale(1.08); }

/* ============== 404 ============== */
@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero { padding: 60px 0 80px; }
    .hero-title { font-size: 2.4rem; }
    .section { padding: 56px 0; }
    .obra-hero { padding: 40px 0 60px; }
    .obra-hero.has-img { min-height: 50vh; }
}
