/* ==========================================================================
   Alai Propiedades · Sistema de diseño base
   Compartido por portada, Nosotros, Linktree y todas las fichas.
   ========================================================================== */

:root {
    /* Paleta: marfil cálido, azul tinta y latón (derivados del logo) */
    --ivory: #f7f4ee;
    --ivory-2: #efeae0;
    --paper: #ffffff;
    --ink: #13203b;
    --ink-2: #1d2d4f;
    --ink-3: #0b1528;
    --text: #2a3142;
    --muted: #6b7183;
    --line: #e4ddcf;
    --line-soft: #eee8dc;
    --brass: #a88452;
    --brass-2: #c4a06b;
    --brass-soft: #f2e9da;
    --brand-red: #b8342c;
    --sold: #8c3a32;
    --rented: #3f6b55;
    --wa: #1faa59;

    --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
    --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

    --radius-s: 8px;
    --radius: 14px;
    --radius-l: 22px;
    --shadow-s: 0 1px 2px rgba(19, 32, 59, .06), 0 2px 8px rgba(19, 32, 59, .04);
    --shadow: 0 2px 6px rgba(19, 32, 59, .05), 0 18px 40px -18px rgba(19, 32, 59, .22);
    --shadow-l: 0 30px 70px -30px rgba(11, 21, 40, .45);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --header-h: 76px;
    --wrap: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--brass-soft); color: var(--ink); }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }

.wrap, .container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Tipografía ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--brass);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.display, .section-head h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-variation-settings: "opsz" 120;
    color: var(--ink);
    letter-spacing: -.02em;
    line-height: 1.08;
}
.display em, .section-head h2 em { font-style: italic; color: var(--brass); }

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(40px, 5vw, 64px); max-width: 680px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .95rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: .95rem; letter-spacing: .01em; text-decoration: none;
    cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
    white-space: nowrap;
}
.btn .i { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); box-shadow: 0 10px 24px -10px rgba(19, 32, 59, .6); }
.btn-line { border-color: rgba(19, 32, 59, .22); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: #967545; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brass-soft); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #18914b; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .45rem;
    font-weight: 600; font-size: .9rem; color: var(--ink); text-decoration: none;
}
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ==========================================================================
   Header (mismo markup en portada, Nosotros y fichas)
   ========================================================================== */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(247, 244, 238, .86);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
    padding: 0 !important;
    color: var(--ink);
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(19, 32, 59, .4); background: rgba(247, 244, 238, .94); }

.nav-container {
    max-width: var(--wrap); margin: 0 auto; padding: 0 24px !important;
    height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.header nav { display: flex; align-items: center; }

.logo { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.logo a { display: block; text-decoration: none; }
.logo-icon {
    width: 46px; height: 34px;
    background: url("../../img/logo_foot.png") center / contain no-repeat !important;
    border-radius: 0 !important; box-shadow: none !important; border: 0 !important;
}
.logo-text { display: grid; line-height: 1.1; }
.logo-text h1, .logo-text h3, .logo-text strong {
    font-family: var(--font-serif); font-weight: 500; font-size: 1.22rem; letter-spacing: -.01em;
    color: var(--ink); margin: 0; text-shadow: none;
}
.logo-text p, .logo-text span {
    font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
    color: var(--brass); margin: 0; opacity: 1;
}

.nav-menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; }
.nav-menu li { list-style: none; }
.nav-menu a {
    position: relative; display: block; padding: .55rem .9rem;
    font-size: .92rem; font-weight: 500; color: var(--ink) !important; text-decoration: none;
    border-radius: 999px; background: none !important; transition: color .2s;
}
.nav-menu a::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .3rem; height: 1px;
    background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-menu a:hover::after, .nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-menu .nav-cta a { background: var(--ink) !important; color: #fff !important; padding: .6rem 1.15rem; margin-left: .5rem; }
.nav-menu .nav-cta a::after { display: none; }
.nav-menu .nav-cta a:hover { background: var(--ink-2) !important; }

.mobile-menu-btn {
    display: none; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line) !important; background: var(--paper) !important; color: var(--ink) !important;
    font-size: 1.15rem !important; line-height: 1; cursor: pointer; align-items: center; justify-content: center;
    padding: 0 !important;
}

@media (max-width: 900px) {
    :root { --header-h: 66px; }
    .mobile-menu-btn { display: inline-flex; }
    .header nav { order: 2; }
    .nav-menu {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper) !important; padding: .75rem 16px 1.25rem !important;
        border-radius: 0 0 var(--radius-l) var(--radius-l) !important;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 30px 50px -30px rgba(19, 32, 59, .45) !important;
        z-index: 1001;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: .95rem .5rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 1rem; }
    .nav-menu li:last-child a { border-bottom: 0; }
    .nav-menu a::after { display: none; }
    .nav-menu .nav-cta a { margin: .75rem 0 0; text-align: center; border-radius: 999px; }
    .logo-text h1, .logo-text h3, .logo-text strong { font-size: 1.08rem; }
}

/* ==========================================================================
   Botones flotantes (WhatsApp / Llamar)
   ========================================================================== */
.floating-actions {
    position: fixed; right: 22px; bottom: 22px; z-index: 900;
    display: flex; flex-direction: column; gap: .7rem;
    transition: opacity .3s, transform .3s;
}
.floating-btn {
    width: 54px !important; height: 54px !important; border-radius: 50% !important;
    display: flex !important; align-items: center; justify-content: center;
    color: #fff !important; text-decoration: none; border: 0;
    box-shadow: 0 12px 28px -10px rgba(11, 21, 40, .55) !important;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    animation: none !important;
}
.floating-btn:hover { transform: translateY(-3px); }
.floating-btn svg { width: 24px !important; height: 24px !important; fill: currentColor !important; }
.floating-whatsapp { background: var(--wa) !important; }
.floating-call { background: var(--ink) !important; }
.floating-btn::before, .floating-btn::after { display: none !important; }

@media (max-width: 600px) {
    .floating-actions { right: 14px; bottom: 14px; }
    .floating-btn { width: 50px !important; height: 50px !important; }
}

/* ==========================================================================
   Pie de página nuevo (portada / Nosotros) y antiguo (.footer de fichas)
   ========================================================================== */
.site-footer { background: var(--ink-3); color: rgba(255, 255, 255, .7); padding: 72px 0 0; font-size: .93rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer-brand .logo-text h3, .footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-icon { width: 54px; height: 40px; }
.footer-brand p.footer-claim { margin-top: 1.25rem; max-width: 320px; line-height: 1.7; }
.footer-col h4 {
    font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
    color: var(--brass-2); margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-col li .i { margin-top: .2rem; color: var(--brass-2); }
.footer-social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.footer-social a, .social-link {
    width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .18); color: #fff !important; background: transparent !important;
    transition: background .2s, border-color .2s, transform .2s;
}
.footer-social a:hover, .social-link:hover { background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .45); transform: none; }
.footer-social .i, .social-link svg { width: 17px !important; height: 17px !important; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
    font-size: .82rem; color: rgba(255, 255, 255, .5);
}
.footer-bottom em { font-family: var(--font-serif); font-style: italic; color: rgba(255, 255, 255, .65); }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Pie antiguo de las fichas */
.footer {
    background: var(--ink-3) !important; color: rgba(255, 255, 255, .7) !important;
    padding: 56px 24px 40px !important; text-align: center; margin-top: 0 !important;
}
.footer .footer-content { max-width: var(--wrap); margin: 0 auto; display: grid; justify-items: center; gap: 1rem; }
.footer .logo { justify-content: center; margin-bottom: .5rem !important; }
.footer .logo-text h3 { color: #fff; }
.footer .social-links { display: flex; gap: .6rem; justify-content: center; margin: .5rem 0 1rem; }
.footer p { font-size: .88rem; }

.developer-credit { background: #070e1c !important; color: rgba(255, 255, 255, .45) !important; text-align: center; padding: 14px 16px !important; font-size: .78rem; }
.developer-credit a { color: rgba(255, 255, 255, .7) !important; text-decoration: none; }
.developer-credit a:hover { color: #fff !important; }
.developer-content { max-width: var(--wrap); margin: 0 auto; }

/* ==========================================================================
   Animación de aparición
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
