/* ══════════════════════════════════════════════════════════
   Skadi Living — Landing Page Styles
   ══════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
:root {
    --primary:    #e07b4a;
    --primary-d:  #c8633a;
    --primary-l:  #f5e6da;
    --secondary:  #2d6a4f;
    --dark:       #1a1a2e;
    --text:       #3d3d3d;
    --muted:      #7a7a8a;
    --bg-light:   #faf8f5;
    --bg-section: #f5f0eb;
    --border:     #e8e0d8;
    --white:      #ffffff;
    --radius:     16px;
    --shadow:     0 8px 32px rgba(0,0,0,.10);
    --shadow-lg:  0 16px 56px rgba(0,0,0,.14);
    --font:       'Nunito', sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

/* ── Utilities ──────────────────────────────────────────── */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--primary-l);
    color: var(--primary);
    border-radius: 30px;
    padding: .35rem 1rem;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--dark);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--muted);
    font-weight: 600;
    margin-top: .6rem;
}

.btn-primary-land {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: .75rem 1.75rem;
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 4px 16px rgba(224,123,74,.35);
}
.btn-primary-land:hover {
    background: var(--primary-d);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224,123,74,.45);
    color: #fff;
}

.btn-outline-land {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.6);
    border-radius: 12px;
    padding: .75rem 1.75rem;
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.btn-outline-land:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
    color: #fff;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.1rem 0;
    transition: all .35s ease;
}
#navbar.scrolled {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    padding: .65rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
}
.nav-logo {
    width: 38px; height: 38px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem;
    flex-shrink: 0;
    transition: transform .2s;
}
.nav-brand:hover .nav-logo { transform: rotate(-8deg); }
.nav-brand-name {
    font-size: 1.15rem; font-weight: 900;
    color: #fff; transition: color .3s;
}
#navbar.scrolled .nav-brand-name { color: var(--dark); }

.nav-link-land {
    color: rgba(255,255,255,.85) !important;
    font-weight: 700 !important;
    font-size: .88rem !important;
    transition: color .2s !important;
    padding: .4rem .75rem !important;
}
.nav-link-land:hover { color: #fff !important; }
#navbar.scrolled .nav-link-land { color: var(--text) !important; }
#navbar.scrolled .nav-link-land:hover { color: var(--primary) !important; }

.nav-cta {
    background: var(--primary);
    color: #fff !important;
    border-radius: 10px;
    padding: .45rem 1.1rem !important;
    font-weight: 800 !important;
    transition: all .2s !important;
    box-shadow: 0 4px 12px rgba(224,123,74,.3);
}
.nav-cta:hover {
    background: var(--primary-d) !important;
    transform: translateY(-1px);
}
#navbar.scrolled .nav-cta { color: #fff !important; }

.navbar-toggler { border: 2px solid rgba(255,255,255,.4); border-radius: 8px; }
#navbar.scrolled .navbar-toggler { border-color: var(--border); }
.navbar-toggler-icon { filter: invert(1); }
#navbar.scrolled .navbar-toggler-icon { filter: none; }

/* ── HERO ───────────────────────────────────────────────── */
#hero {
    min-height: 100vh;
    background: url('../img/hero.png') center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26,26,46,.78) 0%,
        rgba(26,26,46,.55) 50%,
        rgba(224,123,74,.30) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 6rem;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 30px;
    padding: .35rem 1rem;
    font-size: .8rem; font-weight: 800; color: rgba(255,255,255,.9);
    text-transform: uppercase; letter-spacing: .06em;
    margin-bottom: 1.25rem;
}
.hero-eyebrow i { color: var(--primary); }

.hero-title {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 900; color: #fff; line-height: 1.15;
    margin-bottom: 1.25rem;
}
.hero-title span { color: var(--primary); }

.hero-desc {
    font-size: 1.1rem; color: rgba(255,255,255,.82);
    font-weight: 600; max-width: 560px; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Stats flotantes */
.hero-stats {
    display: flex; gap: 2rem; flex-wrap: wrap;
    margin-top: 3.5rem;
}
.hero-stat {
    text-align: center;
}
.hero-stat-val {
    font-size: 1.8rem; font-weight: 900; color: #fff; line-height: 1;
}
.hero-stat-val span { color: var(--primary); }
.hero-stat-lbl {
    font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.6);
    text-transform: uppercase; letter-spacing: .05em; margin-top: .2rem;
}
.hero-stat-sep {
    width: 1px; background: rgba(255,255,255,.2); align-self: stretch;
}

/* Scroll indicator */
.scroll-down {
    position: absolute;
    bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 1; text-align: center;
}
.scroll-btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.4);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7); font-size: .9rem; margin: 0 auto;
    animation: scrollBounce 2s ease infinite;
}
@keyframes scrollBounce {
    0%,100% { transform: translateY(0); opacity:.7; }
    50%      { transform: translateY(8px); opacity:1; }
}

/* ── DEPARTAMENTOS ──────────────────────────────────────── */
#departamentos {
    padding: 5rem 0;
    background: var(--bg-light);
}

.depto-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    height: 100%;
    display: flex; flex-direction: column;
}
.depto-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.depto-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-section);
    flex-shrink: 0;
}
.depto-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.depto-card:hover .depto-img-wrap img { transform: scale(1.05); }

.depto-edificio-badge {
    position: absolute; top: 1rem; left: 1rem;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: .25rem .65rem;
    font-size: .72rem; font-weight: 800; color: var(--dark);
    display: flex; align-items: center; gap: .3rem;
}
.depto-edificio-badge i { color: var(--primary); }

.depto-status {
    position: absolute; top: 1rem; right: 1rem;
    border-radius: 8px;
    padding: .25rem .65rem;
    font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
.status-disponible { background: rgba(45,106,79,.12); color: var(--secondary); }
.status-rentado    { background: rgba(224,123,74,.12); color: var(--primary-d); }
.status-otro       { background: rgba(122,122,138,.12); color: var(--muted); }

.depto-body {
    padding: 1.4rem 1.5rem;
    flex: 1;
    display: flex; flex-direction: column;
}
.depto-nombre { font-size: 1.15rem; font-weight: 900; color: var(--dark); margin-bottom: .4rem; }
.depto-desc   { font-size: .88rem; color: var(--muted); font-weight: 600; flex: 1; margin-bottom: 1rem; }

.depto-specs {
    display: flex; gap: 1rem; flex-wrap: wrap;
    padding: .85rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}
.depto-spec {
    display: flex; align-items: center; gap: .4rem;
    font-size: .8rem; font-weight: 700; color: var(--text);
}
.depto-spec i { color: var(--primary); font-size: .85rem; }

/* ── GALERÍA ─────────────────────────────────────────────── */
#galeria {
    padding: 5rem 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 220px 220px;
    gap: .75rem;
    border-radius: var(--radius);
    overflow: hidden;
}
.gallery-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--bg-section);
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:first-child {
    grid-row: span 2;
}
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(26,26,46,0);
    display: flex; align-items: center; justify-content: center;
    transition: background .3s;
}
.gallery-overlay i {
    color: #fff; font-size: 1.5rem;
    opacity: 0; transform: scale(.7);
    transition: all .3s;
}
.gallery-item:hover .gallery-overlay { background: rgba(26,26,46,.4); }
.gallery-item:hover .gallery-overlay i { opacity: 1; transform: scale(1); }

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .gallery-item:first-child { grid-row: span 1; }
    .gallery-item { height: 180px; }
}

/* ── TURISMO MÉRIDA ──────────────────────────────────────── */
#turismo {
    padding: 5.5rem 0;
    background: var(--bg-section);
}

.turismo-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
}
.turismo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.turismo-img {
    height: 210px;
    overflow: hidden;
}
.turismo-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.turismo-card:hover .turismo-img img { transform: scale(1.06); }

.turismo-body { padding: 1.25rem; }
.turismo-cat  {
    font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
    color: var(--primary); margin-bottom: .4rem;
}
.turismo-nombre {
    font-size: 1rem; font-weight: 900; color: var(--dark); margin-bottom: .4rem;
}
.turismo-desc { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* Info blocks de turismo */
.turismo-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}
.turismo-fact {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
}
.turismo-fact i {
    font-size: 1.6rem; color: var(--primary);
    margin-bottom: .5rem; display: block;
}
.turismo-fact h6 { font-weight: 900; color: var(--dark); margin-bottom: .2rem; font-size: .9rem; }
.turismo-fact p  { font-size: .78rem; color: var(--muted); font-weight: 600; margin: 0; }

/* ── CTA CENTRAL ─────────────────────────────────────────── */
#cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark) 0%, #2d1b69 100%);
    position: relative;
    overflow: hidden;
}
#cta::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: var(--primary);
    opacity: .06;
    top: -200px; right: -150px;
}
.cta-content { position: relative; z-index: 1; text-align: center; }
.cta-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900; color: #fff;
    margin-bottom: 1rem;
}
.cta-title span { color: var(--primary); }
.cta-sub { font-size: 1.05rem; color: rgba(255,255,255,.7); font-weight: 600; margin-bottom: 2rem; }
.cta-contacts {
    display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem;
}
.cta-contact-item {
    display: flex; align-items: center; gap: .5rem;
    color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 700;
}
.cta-contact-item i { color: var(--primary); }

/* ── FOOTER ─────────────────────────────────────────────── */
#footer {
    background: #0f0f1a;
    padding: 3rem 0 1.5rem;
    color: rgba(255,255,255,.6);
    font-size: .85rem;
    font-weight: 600;
}
.footer-brand {
    display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem;
}
.footer-logo {
    width: 36px; height: 36px; background: var(--primary); border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .95rem;
}
.footer-brand-name { color: #fff; font-weight: 900; font-size: 1.05rem; }
.footer-desc { max-width: 280px; line-height: 1.6; margin-bottom: 1.5rem; }
.footer-link {
    color: rgba(255,255,255,.5); font-weight: 700; font-size: .82rem;
    transition: color .2s; display: flex; align-items: center; gap: .4rem;
    padding: .2rem 0;
}
.footer-link:hover { color: var(--primary); }
.footer-heading { color: rgba(255,255,255,.8); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .85rem; }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 1.5rem 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-social a {
    width: 34px; height: 34px; border-radius: 9px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5); font-size: .85rem;
    transition: all .2s; margin-left: .35rem;
}
.footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Animaciones de entrada ──────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 768px) {
    .hero-stats { gap: 1.25rem; }
    .hero-stat-sep { display: none; }
    #cta::before { display: none; }
}
