/* Adaptación de la ficha del sitio ceciliagimeno.cl (mismo orden y proporciones) con la integración Colección VIP */
:root { --text: #1e293b; --muted: #64748b; --line: #e2e8f0; --bg: #fcfcfc; --card: #fff; --blue: #008ee6; --green: #95c11f; --green-d: #6f9416; --soft: #eef6ff; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: inherit; } button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.pilot-bar { background: #0f172a; color: #e2e8f0; font-size: 12px; text-align: center; padding: 6px 12px; }
.pilot-bar b { color: var(--green); }
.topbar { font-size: 12px; border-bottom: 1px solid var(--line); background: #fff; }
.topbar .wrap { display: flex; gap: 18px; padding-top: 7px; padding-bottom: 7px; } .topbar a { text-decoration: none; }
header.site { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
header.site nav { display: flex; gap: 26px; font-size: 13px; font-weight: 600; } header.site nav a { text-decoration: none; }
.logo img { display: block; height: 36px; width: auto; }
.pill { background: var(--green); color: #fff; text-decoration: none; font-weight: 700; font-size: 12px; padding: 9px 20px; border-radius: 999px; }
@media (max-width: 760px) { header.site nav { display: none; } .topbar .wrap { justify-content: center; } }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: min(460px, 52vw); margin-top: 18px; border-radius: 20px; overflow: hidden; }
.g { position: relative; border: 0; padding: 0; background: #ddd; overflow: hidden; cursor: pointer; }
.g img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; } .g:hover img { transform: scale(1.03); }
.g1 { grid-row: 1 / 3; } .g4 { grid-column: 2 / 4; grid-row: 2; }
.tag { position: absolute; top: 14px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--text); }
.t-venta { left: 14px; background: var(--green); color: #fff; } .t-sec { left: 78px; } .t-cod { right: 14px; background: var(--green); color: #fff; }
.all { position: absolute; right: 16px; bottom: 16px; background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 12px; font-weight: 700; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 300px; border-radius: 16px; } .g1 { grid-column: 1 / 3; grid-row: 1; } .g2 { display: block; } .g3 { grid-row: 2; } .g4 { grid-column: 2; grid-row: 2; } .t-sec { display: none; } }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 8px; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; } .side { order: -1; } }
.crumb { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 18px 0 4px; } .crumb a { text-decoration: none; }
.titlerow { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
h1 { font-size: 24px; font-weight: 700; margin: 0; } .loc { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.price { text-align: right; } .price small { display: block; font-size: 11px; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.price b { font-size: 26px; font-weight: 800; color: var(--blue); } .price span { font-size: 12px; color: var(--muted); }
.specs { list-style: none; padding: 0; margin: 20px 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.specs li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; display: grid; gap: 1px; }
.specs i { font-style: normal; font-size: 18px; } .specs b { font-size: 16px; } .specs span { font-size: 11px; color: var(--muted); }
.sec { margin-top: 30px; } h2 { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 14px; margin: -6px 0 14px; }
.desc { font-size: 14px; max-height: 190px; overflow: hidden; position: relative; } .desc p { margin: 0 0 12px; } .desc.open { max-height: none; }
.desc:not(.open)::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(transparent, var(--bg)); }
.note { font-size: 12px; color: var(--muted); }
.more { border: 0; background: transparent; color: var(--blue); font-weight: 700; padding: 6px 0; cursor: pointer; }
.feat { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.feat li { padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line); font-size: 14px; position: relative; } .feat li::before { content: "✓"; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--green); color: var(--green-d); font-size: 11px; display: grid; place-items: center; font-weight: 800; }
@media (max-width: 560px) { .feat { grid-template-columns: 1fr; } }

/* Bloques nuevos */
.new { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 6px 24px rgba(15,23,42,.05); }
.nb { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--blue); padding: 3px 9px; border-radius: 999px; vertical-align: 3px; margin-left: 6px; }
.vtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.vtabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; cursor: pointer; }
.vtabs button[aria-selected="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 13px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"], .chip.on { background: var(--green); color: #fff; border-color: var(--green); }
.viewer { position: relative; aspect-ratio: 16 / 9; margin-top: 10px; border-radius: 16px; overflow: hidden; background: #0f172a; touch-action: pan-y; }
@media (max-width: 560px) { .viewer { aspect-ratio: 4 / 5; } }
.hero { position: absolute; inset: 0; margin: 0; } .hero img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .25s; } .hero img.fade { opacity: 0; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(transparent, rgba(15,23,42,.75)); pointer-events: none; }
.hero figcaption { position: absolute; left: 18px; bottom: 14px; z-index: 1; color: #fff; display: grid; } .hero figcaption b { font-size: 22px; } .hero figcaption span { font-size: 12px; opacity: .85; }
.hero .next { position: absolute; right: 14px; bottom: 14px; z-index: 2; border: 1px solid rgba(255,255,255,.7); background: rgba(15,23,42,.55); color: #fff; border-radius: 12px; padding: 7px 12px; font-weight: 700; font-size: 12px; cursor: pointer; }
.stage { position: absolute; inset: 0; background: #cfe0e8 url(/vip/assets/casa-3d.webp) center/cover; touch-action: none; } .stage[hidden], .hero[hidden], #video[hidden] { display: none; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; } .stage.static canvas { visibility: hidden; }
.stage .floors { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; } .stage .floors .chip { padding: 6px 11px; font-size: 12px; background: rgba(255,255,255,.92); }
.stage .floors .chip.on { background: var(--green); }
#video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.cap { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.entorno { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: 10px; align-items: start; } @media (max-width: 700px) { .entorno { grid-template-columns: 1fr; } }
.map { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #cfd8c2; }
.scene { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 385 / 464; transform: translateY(-50%); background: url(/vip/assets/barrio.webp) center/100% 100% no-repeat; }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; } .scene .zone { opacity: 0; transition: opacity .3s; } .scene .zone.on { opacity: 1; }
.pin { position: absolute; transform: translate(-50%, -50%); border: 0; background: transparent; padding: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.pin::before { content: ""; position: absolute; inset: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); transition: all .25s; }
.pin.on::before { inset: 11px; border-color: #fff; background: var(--blue); box-shadow: 0 0 0 4px rgba(255,236,150,.9), 0 2px 8px rgba(0,0,0,.35); }
.pin .tg { position: absolute; left: 50%; top: -4px; transform: translate(-50%, -100%); white-space: nowrap; background: var(--text); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 9px; display: none; } .pin.on .tg { display: block; }
.panel { background: var(--soft); border: 1px solid #d6e8fb; border-radius: 16px; padding: 14px 16px; font-size: 13px; }
.panel h3 { margin: 0 0 6px; font-size: 16px; } .panel p { margin: 0 0 4px; } .panel .s { color: var(--muted); font-size: 12px; }
.panel ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; } .panel li { border-top: 1px solid #d6e8fb; padding-top: 8px; }
.badge { display: inline-block; font-size: 10px; font-weight: 800; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 6px; padding: 1px 6px; margin-left: 4px; } .badge.dash { border-style: dashed; }

/* Barra lateral */
.side { position: sticky; top: 76px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 30px rgba(15,23,42,.07); }
.ag-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; } .ag-head small { display: block; font-size: 9.5px; color: var(--green-d); font-weight: 800; letter-spacing: .03em; } .ag-head b { font-size: 14px; }
.av { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; } .resp { margin-left: auto; text-align: right; } .resp small { color: var(--muted); } .resp b { font-size: 12px; }
.ag-body { background: var(--soft); padding: 16px; display: grid; gap: 10px; } .ag-body[hidden] { display: none; } .ag-body h3 { margin: 0; font-size: 16px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: 1px solid #e3eefb; border-radius: 14px; padding: 13px 14px; font-weight: 700; font-size: 13px; text-decoration: none; cursor: pointer; text-align: left; }
.opt i { font-style: normal; width: 32px; height: 32px; border-radius: 10px; background: #dcecfd; display: grid; place-items: center; } .opt span { margin-left: auto; color: #94a3b8; }
.back { border: 0; background: transparent; color: var(--muted); font-weight: 700; text-align: left; padding: 0; cursor: pointer; }
.ag-body label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; } .ag-body label small { font-weight: 500; color: var(--muted); }
.ag-body input:not([type=checkbox]), .ag-body select, .ag-body textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; font-size: 16px; font-weight: 400; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
fieldset { border: 1px solid #d6e8fb; border-radius: 12px; padding: 8px 12px; margin: 0; } legend { font-size: 11px; font-weight: 800; padding: 0 4px; }
.ag-body .chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 13px; padding: 3px 0; } .chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); flex: none; }
.ag-body fieldset select { margin: 2px 0 4px 28px; width: calc(100% - 28px); padding: 7px 10px; font-size: 14px; } fieldset select[hidden] { display: none; }
.cta { border: 0; background: var(--blue); color: #fff; font-weight: 700; border-radius: 16px; padding: 14px; font-size: 14px; cursor: pointer; text-align: center; text-decoration: none; display: block; } .cta[disabled] { opacity: .6; } .cta.alt { background: var(--text); }
.err { color: #b42318; font-size: 12px; min-height: 16px; margin: 0; } .safe { font-size: 11px; color: var(--muted); margin: 0; text-align: center; }
.ok { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font-size: 24px; display: grid; place-items: center; } .small { font-size: 12px; color: var(--muted); margin: 0; }

.similar { margin-top: 36px; } .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; } @media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
.pc { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; padding-bottom: 12px; }
.pc .im { position: relative; aspect-ratio: 4 / 3; } .pc img { width: 100%; height: 100%; object-fit: cover; display: block; } .pc .im b { position: absolute; left: 10px; top: 10px; background: var(--blue); color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 8px; }
.pc small { display: block; padding: 8px 12px 0; font-size: 11px; color: var(--muted); } .pc h3 { font-size: 13px; margin: 2px 12px 4px; } .cd { background: var(--green); color: #fff; font-size: 9.5px; padding: 1px 7px; border-radius: 999px; white-space: nowrap; } .pc p { margin: 0 12px; font-size: 12px; color: var(--muted); }
.foot { margin-top: 40px; background: #f1f5f9; border-top: 1px solid var(--line); padding: 22px 0; font-size: 12px; color: var(--muted); }
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(15,23,42,.94); display: grid; place-content: center; place-items: center; padding: 16px; gap: 10px; } .lb[hidden] { display: none; }
.lb img { max-width: min(92vw, 1100px); max-height: 80dvh; border-radius: 12px; } .lb p { color: #fff; font-size: 12px; margin: 0; }
.lbx, .lbn { position: absolute; border: 0; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.16); color: #fff; font-size: 26px; cursor: pointer; } .lbx { right: 14px; top: 14px; } .lbp { left: 14px; top: 50%; } .lbs { right: 14px; top: 50%; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
