/* =========================================================
   styles-dept.css  —  Autónomo, no requiere styles.css
   Incluye: variables, base, navbar, lightbox, whatsapp,
   feature-pill, hero-cta + todos los estilos de dept.
   ========================================================= */

/* ── Variables ──────────────────────────────────────────── */
:root {
    --primary-color: #ECB27B;
    --primary-color-hover: #D6A16A;
    --white: #ffffff;
    --black: #000000;
    --cream-light: #fdf8f0;
    --text-dark: #2a2a2a;
    --text-mid: #555;
    --text-light: #888;
    --border: rgba(0,0,0,0.08);
    --heading-font: "Cormorant Upright", serif;
    --body-font: "Sora", sans-serif;
    --radius: 12px;
    --transition: 0.3s ease;
}

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

body, html {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream-light);
}

h1, h2, h3 {
    font-family: var(--heading-font);
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(253, 248, 240, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(236, 178, 123, 0.25);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    height: 72px;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo a {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.navbar-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    transition: color var(--transition);
    position: relative;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width var(--transition);
}

.navbar-links a:hover { color: var(--primary-color); }
.navbar-links a:hover::after { width: 100%; }

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger-menu span {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: 0.4s;
    display: block;
}

/* ── Feature pills ──────────────────────────────────────── */
.feature-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background-color: white;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-mid);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.feature-pill i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

/* ── Lightbox ───────────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1500;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.15);
    color: white;
    padding: 10px 14px;
    font-size: 20px;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    transition: background var(--transition);
    z-index: 10;
}

.lightbox-nav:hover { background-color: rgba(255,255,255,0.28); }
.lightbox-prev { left: -56px; }
.lightbox-next { right: -56px; }

/* ── WhatsApp flotante ──────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.whatsapp-float i { font-size: 1.15rem; }

.whatsapp-float:hover {
    background: #21ba5a;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.26);
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
    padding: 96px 6% 14px;
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.03em;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--primary-color); }

.breadcrumb span {
    margin: 0 6px;
    opacity: 0.5;
}

.breadcrumb strong {
    color: var(--text-dark);
    font-weight: 500;
}

/* ── Page layout ────────────────────────────────────────── */
.dept-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 6% 60px;
}

.dept-header { margin-bottom: 32px; }

.dept-title {
    font-family: var(--heading-font);
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 6px;
}

.dept-subtitle {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-color);
}

/* ── Body grid ──────────────────────────────────────────── */
.dept-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}

/* ── Info panel ─────────────────────────────────────────── */
.dept-info {
    position: sticky;
    top: 90px;
}

.dept-capacity {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.dept-capacity i { color: var(--primary-color); }

.dept-description {
    font-size: 0.95rem;
    color: var(--text-mid);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 28px;
}

.dept-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.dept-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dept-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 30px;
    background: #25D366;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 14px rgba(37,211,102,0.3);
}

.dept-cta-whatsapp:hover {
    background: #1fba58;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,211,102,0.38);
}

/* ── Galería ────────────────────────────────────────────── */
.dept-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dept-gallery-item {
    height: 190px;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.dept-gallery-item:first-child {
    grid-column: 1 / -1;
    height: 280px;
}

.dept-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

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

.gallery-expand {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.gallery-expand i {
    color: white;
    font-size: 1.3rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.dept-gallery-item:hover .gallery-expand { background: rgba(0,0,0,0.22); }
.dept-gallery-item:hover .gallery-expand i { opacity: 1; }

/* ── Otros departamentos ────────────────────────────────── */
.other-depts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.other-depts-title {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.other-depts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.other-dept-card {
    display: block;
    text-decoration: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform var(--transition), box-shadow var(--transition);
    background: white;
}

.other-dept-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.other-dept-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #f0f0eb;
    display: block;
    transition: transform 0.5s ease;
}

.other-dept-card:hover .other-dept-img { transform: scale(1.03); }

.other-dept-info { padding: 14px 16px; }

.other-dept-info h3 {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.other-dept-info p {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ── Responsive ─────────────────────────────────────────── */
@media screen and (max-width: 900px) {
    .dept-body { grid-template-columns: 1fr; gap: 36px; }
    .dept-info { position: static; }
    .dept-gallery-item:first-child { height: 240px; }
    .dept-gallery-item { height: 160px; }
    .dept-title { font-size: 2.2rem; }
}

@media screen and (max-width: 768px) {
    .navbar { padding: 0 5%; }

    .navbar-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background-color: rgba(253, 248, 240, 0.98);
        padding: 20px 5%;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .navbar-links.active { display: flex; }
    .burger-menu { display: flex; }

    .whatsapp-float {
        left: 14px;
        bottom: 14px;
        padding: 12px;
        border-radius: 50%;
        width: 52px;
        height: 52px;
        justify-content: center;
    }

    .whatsapp-float span { display: none; }
    .whatsapp-float i { font-size: 1.35rem; margin: 0; }
}

@media screen and (max-width: 600px) {
    .breadcrumb { padding-top: 84px; }
    .dept-title { font-size: 1.9rem; }
    .dept-gallery { grid-template-columns: 1fr; }
    .dept-gallery-item,
    .dept-gallery-item:first-child { height: 220px; }
    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }
    .other-depts-grid { grid-template-columns: 1fr; }
}