/* Iannone Construcciones — estilo institucional, fondo blanco.
   Compartido por la home y las landings SEO (seo-pages.css agrega lo propio). */

:root {
    --ink: #1c2127;
    --ink-soft: #4a525c;
    --muted: #6b737d;
    --line: #e4e2dd;
    --line-soft: #efede9;
    --paper: #ffffff;
    --paper-alt: #f8f7f4;
    --accent: #8a5a2b;
    --mark: #f3e4c4;
    --wa: #25d366;
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max: 1200px;
    --pad: 24px;
    --radius: 6px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); }

h1, h2 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.12;
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }

h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.35; }

p { margin: 0 0 1rem; }

mark {
    background: linear-gradient(transparent 58%, var(--mark) 58%);
    color: inherit;
    padding: 0 0.08em;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
}

@media (min-width: 768px) { :root { --pad: 40px; } }

.section { padding: clamp(72px, 9vw, 120px) 0; }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; }

.lead { font-size: 1.15rem; color: var(--ink); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 26px;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .2s, color .2s, border-color .2s;
}

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}

.main-header.scrolled { border-bottom-color: var(--line); }

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}

.logo { text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.logo-icon { height: 46px; width: auto; }
.footer-logo { display: inline-block; margin-bottom: 20px; }
.footer-logo img { width: 150px; height: auto; }

.logo-text {
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    white-space: nowrap;
}

.logo-text .highlight {
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav-menu { display: flex; align-items: center; gap: 30px; }

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 6px 0;
    transition: color .2s;
}

.nav-link:hover, .nav-link.active { color: var(--ink); }

.nav-link.nav-cta {
    color: #fff;
    background: var(--ink);
    padding: 11px 20px;
    border-radius: var(--radius);
}

.nav-link.nav-cta:hover { background: #000; color: #fff; }

.burger-menu {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.burger-menu .bar { width: 22px; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.burger-menu.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-menu.active .bar:nth-child(2) { opacity: 0; }
.burger-menu.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
    .burger-menu { display: flex; }
    .nav-menu {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px var(--pad) 32px;
        transform: translateX(100%);
        transition: transform .3s ease;
        overflow-y: auto;
    }
    .nav-menu.active { transform: none; }
    .nav-link { font-size: 1.15rem; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
    .nav-link.nav-cta { margin-top: 24px; text-align: center; border: 0; padding: 16px; }
}

@media (max-width: 420px) {
    .logo-text { font-size: 1.35rem; gap: 8px; }
    .logo-icon { height: 38px; }
    .logo { gap: 8px; }
    .logo-text .highlight { font-size: 0.6rem; letter-spacing: 0.16em; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.hero-place {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 20px;
}

.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }

.hero-lead { margin: 26px 0 34px; font-size: 1.12rem; color: var(--ink-soft); max-width: 560px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-points {
    list-style: none;
    padding: 0;
    margin: 34px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.hero-points li { position: relative; padding-left: 22px; }
.hero-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

.hero-media { position: relative; padding: 0 0 56px 0; }
.hero-media figure { margin: 0; }

.hero-main img {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    border-radius: var(--radius);
}

.hero-second {
    position: absolute;
    left: -40px;
    bottom: 0;
    width: 38%;
    border: 8px solid #fff;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 40px rgba(28, 33, 39, 0.14);
}

.hero-second img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-media { padding-bottom: 40px; }
    .hero-second { left: auto; right: 16px; width: 34%; }
}

/* ---------- Franja de rubros ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.fact { padding: 30px 28px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; margin-bottom: 4px; }
.fact span { font-size: 0.9rem; color: var(--muted); }

@media (max-width: 900px) {
    .facts-grid { grid-template-columns: 1fr 1fr; }
    .fact { padding: 22px 0 22px 20px; }
    .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Empresa ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

.about-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius); }
.about-photo figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }

.about-text h2 { margin-bottom: 24px; }
.about-text > p { color: var(--ink-soft); }
.about-text .lead { color: var(--ink); }

.quote {
    margin: 36px 0;
    padding: 4px 0 4px 28px;
    border-left: 1px solid var(--ink);
}

.quote p { font-family: var(--serif); font-size: 1.4rem; line-height: 1.45; font-style: italic; color: var(--ink); margin-bottom: 12px; }
.quote cite { font-style: normal; font-size: 0.88rem; color: var(--muted); }

.values {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

.values li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.values strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-photo { position: static; max-width: 460px; }
}

@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ---------- Servicios ---------- */
.services { background: var(--paper-alt); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 28px;
}

.service { text-decoration: none; color: inherit; display: flex; flex-direction: column; }

.service img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 20px;
    transition: opacity .25s;
}

.service:hover img { opacity: 0.88; }
.service h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; margin-bottom: 8px; }
.service p { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 14px; flex: 1; }

.service-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--line);
    transition: text-decoration-color .2s;
}

.service:hover .service-link { text-decoration-color: var(--ink); }

.services-more { margin: 56px 0 0; }
.services-more a { font-weight: 600; text-underline-offset: 4px; }

@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Obras ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }

.filter {
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 18px;
    cursor: pointer;
    transition: all .2s;
}

.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
@media (max-width: 1080px) { .works-grid { grid-template-columns: repeat(3, 1fr); } }

.work { margin: 0; cursor: zoom-in; }
.work[hidden] { display: none; }
.work img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); transition: opacity .25s; }
.work:hover img { opacity: 0.9; }
.work figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--ink-soft); }

@media (max-width: 900px) { .works-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; } }

/* ---------- Videos ---------- */
.onsite { background: var(--paper-alt); }

.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.video-card { margin: 0; }
.video-card video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: #e9e7e2; }
.video-card figcaption { margin-top: 12px; font-size: 0.95rem; font-weight: 500; }

@media (max-width: 760px) {
    .videos-grid { grid-template-columns: 1fr; max-width: 460px; }
}

/* ---------- Proceso ---------- */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.step { border-top: 1px solid var(--ink); padding-top: 24px; }
.step-num { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--accent); margin-bottom: 20px; }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 40px 28px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Zonas ---------- */
.zones { border-top: 1px solid var(--line); }

.zones-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.zones-grid h2 { margin-bottom: 18px; }
.zones-grid > div p { color: var(--ink-soft); }

.zones-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.zones-list a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    font-family: var(--serif);
    font-size: 1.35rem;
    transition: padding .2s;
}

.zones-list a span { font-family: var(--sans); font-size: 0.88rem; color: var(--muted); text-align: right; }
.zones-list a:hover { padding-left: 8px; }

@media (max-width: 900px) { .zones-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--paper-alt); }

.faq-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-grid h2 { margin-bottom: 18px; }
.faq-grid > div > p { color: var(--ink-soft); }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 40px 22px 0;
    position: relative;
    font-weight: 600;
    font-size: 1.02rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--muted);
}

.faq-item[open] summary::after { content: '–'; }
.faq-item p { color: var(--ink-soft); padding-right: 40px; margin: -4px 0 22px; }

@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-info h2 { margin-bottom: 18px; }
.contact-info > p { color: var(--ink-soft); }

.contact-data { margin: 36px 0 0; }
.contact-data div { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-data dt { font-size: 0.82rem; color: var(--muted); margin-bottom: 2px; }
.contact-data dd { margin: 0; font-size: 1.05rem; font-weight: 500; }
.contact-data a { text-decoration: none; }
.contact-data a:hover { text-decoration: underline; text-underline-offset: 4px; }

.contact-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 40px);
    background: #fff;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field label { font-size: 0.86rem; font-weight: 600; }

.field input, .field select, .field textarea {
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d6d3cd;
    border-radius: var(--radius);
    padding: 12px 14px;
    width: 100%;
    transition: border-color .2s;
}

.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; }

.form-error { color: #a33b2b; font-size: 0.9rem; margin: -4px 0 14px; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.main-footer { border-top: 1px solid var(--line); padding: 72px 0 28px; font-size: 0.92rem; color: var(--ink-soft); }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }


.footer-brand p { max-width: 320px; }

.main-footer h4 { font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; }

.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.main-footer a { text-decoration: none; color: var(--ink-soft); }
.main-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact-info p { margin-bottom: 8px; }

.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

.footer-credit { margin: 1.5rem 0 0; text-align: center; font-size: 0.8rem; }
.footer-credit a { color: var(--muted); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 90;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--wa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23fff'%3E%3Cpath d='M16.04 3C8.86 3 3.03 8.82 3.03 16c0 2.3.6 4.53 1.74 6.5L3 29l6.68-1.75A12.95 12.95 0 0 0 16.04 29C23.2 29 29 23.18 29 16S23.2 3 16.04 3zm0 23.66c-2 0-3.95-.54-5.65-1.55l-.4-.24-3.97 1.04 1.06-3.86-.26-.4A10.6 10.6 0 0 1 5.4 16c0-5.87 4.78-10.64 10.65-10.64 5.86 0 10.62 4.77 10.62 10.64 0 5.88-4.77 10.66-10.63 10.66zm5.84-7.97c-.32-.16-1.89-.93-2.18-1.04-.3-.1-.5-.16-.72.16-.21.32-.82 1.04-1 1.25-.19.21-.37.24-.69.08-.32-.16-1.35-.5-2.57-1.59-.95-.85-1.59-1.9-1.78-2.21-.18-.32-.02-.5.14-.65.15-.14.32-.37.48-.56.16-.18.21-.32.32-.53.1-.21.05-.4-.03-.56-.08-.16-.72-1.73-.98-2.37-.26-.62-.52-.54-.72-.55h-.61c-.21 0-.56.08-.85.4-.29.32-1.12 1.09-1.12 2.66 0 1.57 1.14 3.08 1.3 3.3.16.2 2.25 3.43 5.44 4.81.76.33 1.35.52 1.81.67.76.24 1.46.2 2 .12.61-.09 1.89-.77 2.15-1.52.27-.74.27-1.38.19-1.51-.08-.14-.29-.22-.61-.38z'/%3E%3C/svg%3E") center / 30px no-repeat;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform .2s;
}

.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float > * { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 72px;
}

.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { margin-top: 14px; font-size: 0.95rem; color: var(--ink-soft); }

.lightbox-close, .lightbox-nav {
    position: absolute;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--ink);
    font-size: 2.6rem;
    line-height: 1;
    width: 52px;
    height: 52px;
}

.lightbox-close { top: 12px; right: 16px; }
.lightbox-nav.prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
    .lightbox { padding: 60px 12px; }
    .lightbox-nav { top: auto; bottom: 8px; transform: none; }
    .lightbox-nav.prev { left: 20%; }
    .lightbox-nav.next { right: 20%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
