/* =========================================================================
   DESARROLLOS — capa visual scoped (no toca otros estilos del sitio).
   Carga condicional via $needsDesarrollosCSS en inc/head.php
   Hereda tokens visuales de luxury-je.css (Cormorant + Inter, paleta).
   ========================================================================= */

/* ---------- Hero del índice ---------- */
.dev-index-hero {
    background: linear-gradient(180deg, #0f0f10 0%, #1a1a1c 100%);
    color: #fff;
    padding: 140px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.dev-index-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 1px;
    background: rgba(255,255,255,0.5);
}
.dev-index-hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 4rem);
    letter-spacing: 0.02em;
    margin: 0 0 18px;
    color: #fff;
    text-transform: uppercase;
}
.dev-index-hero p {
    font-family: 'Inter', 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}

/* ---------- Grid del índice ---------- */
.dev-grid {
    padding: 60px 0 80px;
}
/* Cuando el grid es lo primero (sin hero arriba), dejar espacio del header sticky */
.dev-grid--top {
    padding-top: 130px;
}
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.dev-grid__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}
@media (min-width: 720px) {
    .dev-grid__row { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
    .dev-grid__row { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Card ---------- */
.dev-card {
    background: #fff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}
.dev-card:hover { transform: translateY(-4px); }
.dev-card__link {
    display: block;
    color: inherit;
    text-decoration: none !important;
}
.dev-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0eee9;
}
.dev-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.dev-card:hover .dev-card__media img { transform: scale(1.04); }
.dev-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 2px;
}
.dev-card__body {
    padding: 22px 4px 6px;
}
.dev-card__name {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 500;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    margin: 0 0 4px;
    color: #1a1a1c;
    text-transform: uppercase;
}
.dev-card__location {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #6b6b6e;
    margin: 0 0 14px;
}
.dev-card__meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #1a1a1c;
    line-height: 1.6;
    border-top: 1px solid #e6e3dc;
    padding-top: 14px;
}
.dev-card__meta-row { display: flex; justify-content: space-between; gap: 12px; }
.dev-card__meta-row + .dev-card__meta-row { margin-top: 6px; }
.dev-card__meta-label { color: #93908a; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem; }
.dev-card__meta-value { color: #1a1a1c; font-weight: 500; text-align: right; }
.dev-card__cta {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1a1c;
    border-bottom: 1px solid #1a1a1c;
    padding-bottom: 4px;
}

/* =========================================================================
   PÁGINA DE DETALLE
   ========================================================================= */

/* ---------- Hero de detalle ---------- */
.dev-hero {
    position: relative;
    width: 100%;
    height: 78vh;
    min-height: 520px;
    max-height: 820px;
    overflow: hidden;
}
.dev-hero__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.dev-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}
.dev-hero__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 8% 60px;
    color: #fff;
}
.dev-hero__badge {
    display: inline-block;
    background: rgba(255,255,255,0.95);
    color: #1a1a1c;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 14px;
    margin-bottom: 18px;
}
.dev-hero__name {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 5rem);
    letter-spacing: 0.02em;
    margin: 0 0 10px;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.05;
}
.dev-hero__tagline {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.05rem, 1.6vw, 1.5rem);
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,0.94);
}

/* ---------- Bloque de info clave ---------- */
.dev-keyfacts {
    background: #fff;
    padding: 50px 0;
    border-bottom: 1px solid #ece9e2;
}
.dev-keyfacts__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 720px) {
    .dev-keyfacts__row { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .dev-keyfacts__row { grid-template-columns: repeat(5, 1fr); }
}
.dev-keyfact__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #93908a;
    margin: 0 0 6px;
}
.dev-keyfact__value {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    color: #1a1a1c;
    font-weight: 500;
    margin: 0;
}

/* ---------- Layout 2 cols (contenido + sidebar form) ---------- */
.dev-detail {
    padding: 70px 0;
    background: #fafaf7;
}
.dev-detail__container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}
@media (min-width: 1024px) {
    .dev-detail__container {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 70px;
    }
}

/* ---------- Bloques de contenido ---------- */
.dev-section { margin-bottom: 60px; }
.dev-section:last-child { margin-bottom: 0; }
.dev-section__title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 400;
    font-size: 1.9rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1a1a1c;
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #d8d3c8;
}
.dev-section__body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #2b2b2e;
}
.dev-section__body p { margin: 0 0 1em; }

/* ---------- Galería ---------- */
.dev-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 720px) {
    .dev-gallery { grid-template-columns: repeat(2, 1fr); }
}
.dev-gallery a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ece9e2;
}
.dev-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.dev-gallery a:hover img { transform: scale(1.05); }

/* ---------- Amenities grid ---------- */
.dev-amenities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 24px;
}
@media (min-width: 720px) {
    .dev-amenities { grid-template-columns: repeat(3, 1fr); }
}
.dev-amenities li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: #2b2b2e;
    list-style: none;
    padding: 8px 0;
    border-bottom: 1px solid #ece9e2;
}
.dev-amenities li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #1a1a1c;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- Plantas ---------- */
.dev-plantas { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) { .dev-plantas { grid-template-columns: repeat(2, 1fr); } }
.dev-plantas img {
    width: 100%;
    height: auto;
    border: 1px solid #ece9e2;
    background: #fff;
    padding: 12px;
}

/* ---------- Mapa ---------- */
.dev-mapa { width: 100%; height: 460px; border: 0; }

/* ---------- Sidebar form ---------- */
.dev-aside {
    position: relative;
}
@media (min-width: 1024px) {
    .dev-aside__sticky { position: sticky; top: 100px; }
}
.dev-form-card {
    background: #fff;
    padding: 32px 28px;
    border: 1px solid #ece9e2;
    box-shadow: 0 6px 24px rgba(0,0,0,0.04);
}
.dev-form-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 6px;
    color: #1a1a1c;
}
.dev-form-card p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #6b6b6e;
    margin: 0 0 22px;
    line-height: 1.6;
}
.dev-form-card .form-group { margin-bottom: 14px; }
.dev-form-card label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #93908a;
    margin-bottom: 6px;
}
.dev-form-card input,
.dev-form-card textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #d8d3c8;
    background: transparent;
    padding: 8px 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1a1a1c;
    outline: none;
    transition: border-color 0.2s;
}
.dev-form-card input:focus,
.dev-form-card textarea:focus { border-color: #1a1a1c; }
.dev-form-card textarea { resize: vertical; min-height: 90px; }
.dev-form-card__cta {
    display: block;
    width: 100%;
    background: #1a1a1c;
    color: #fff;
    border: 0;
    padding: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 18px;
}
.dev-form-card__cta:hover { background: #000; }
.dev-form-card__cta:disabled { opacity: 0.5; cursor: not-allowed; }
.dev-form-card .g-recaptcha { margin-top: 8px; }

/* ---------- Botón brochure ---------- */
.dev-brochure {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 22px;
    background: transparent;
    border: 1px solid #1a1a1c;
    color: #1a1a1c;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.2s;
}
.dev-brochure:hover { background: #1a1a1c; color: #fff; }

/* ---------- CTA sticky mobile ---------- */
.dev-sticky-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: #1a1a1c;
    color: #fff;
    text-align: center;
    padding: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 -6px 18px rgba(0,0,0,0.18);
}
@media (max-width: 1023px) {
    .dev-sticky-cta { display: block; }
    .dev-detail { padding-bottom: 110px; }
}

/* =========================================================================
   FRANJA "Desarrollos destacados" (home)
   ========================================================================= */
.dev-home-strip {
    background: #fff;
    padding: 80px 0;
    border-top: 1px solid #ece9e2;
    border-bottom: 1px solid #ece9e2;
}
.dev-home-strip__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
    padding: 0 24px;
}
.dev-home-strip__eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #93908a;
    margin: 0 0 12px;
}
.dev-home-strip__title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 14px;
    color: #1a1a1c;
    text-transform: uppercase;
}
.dev-home-strip__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    color: #6b6b6e;
    line-height: 1.7;
    margin: 0;
}
.dev-home-strip__viewall {
    text-align: center;
    margin-top: 50px;
}
.dev-home-strip__viewall a {
    display: inline-block;
    padding: 14px 32px;
    border: 1px solid #1a1a1c;
    color: #1a1a1c;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.2s;
}
.dev-home-strip__viewall a:hover { background: #1a1a1c; color: #fff; }
