/* Cristal v6. Referencias específicas: propuesta-cristal-2026-10-09.
   Inicio y Servicios únicamente; las demás pantallas se adaptan por etapas. */
.cristal {
  --glass: color-mix(in srgb,var(--surface) 94%,transparent);
  --edge: color-mix(in srgb,var(--ink) 17%,transparent);
  --shine: color-mix(in srgb,#fff 76%,transparent);
  --shade: color-mix(in srgb,var(--ink) 17%,transparent);
  --raised: 5px 5px 12px var(--shade),-4px -4px 10px var(--shine);
  --pressed: inset 4px 4px 9px var(--shade),inset -4px -4px 9px var(--shine);
  --glass-shadow: 0 12px 32px #10182018,inset 0 1px 0 var(--shine);
  background:var(--bg);min-height:100dvh;isolation:isolate;
}
[data-mode=dark] .cristal {--shine:#62758d22;--shade:#070b1288;--glass-shadow:0 12px 32px #050a1440,inset 0 1px 0 #ffffff14}
.cristal::before {content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(color-mix(in srgb,var(--bg) 94%,transparent),color-mix(in srgb,var(--bg) 94%,transparent)),url('assets/hero-barrio.png') center/cover}
.cristal .review-bar {background:transparent;padding:0 24px;font-size:10px;color:var(--muted)}
.cristal .topbar {height:76px;margin:8px 24px 20px;border:1px solid var(--edge);border-radius:24px;background:var(--glass);backdrop-filter:blur(16px);box-shadow:var(--glass-shadow);padding:14px 22px;gap:22px}
.cristal .brand {min-width:190px;gap:10px}.cristal .brand b {letter-spacing:-1px;font-size:27px}
.cristal .global-search {background:var(--surface);border:1px solid var(--edge);border-radius:99px;box-shadow:var(--pressed);max-width:600px;min-height:46px;font-size:13px}
.cristal .top-actions {gap:12px}.cristal .top-actions .icon-btn {background:var(--surface);border:1px solid var(--edge);box-shadow:var(--raised);border-radius:50%;color:var(--brand)}
.cristal .activity-shortcut {display:inline-flex}.cristal .profile-initial {background:none;color:var(--brand)}
.cristal .shell {grid-template-columns:212px minmax(0,1fr);gap:24px;margin:0 24px;min-height:calc(100dvh - 144px)}
.cristal .rail {background:var(--glass);backdrop-filter:blur(16px);border:1px solid var(--edge);border-radius:24px;padding:20px 16px;gap:14px;top:20px;height:calc(100dvh - 164px);min-height:560px;box-shadow:var(--glass-shadow)}
.cristal .rail>a {background:var(--surface);border:1px solid var(--edge);border-radius:12px;box-shadow:var(--raised);font-weight:650;font-size:13px;min-height:50px;padding:13px 15px;color:var(--muted)}
.cristal .rail>a[aria-current] {box-shadow:var(--pressed);color:var(--brand);border-color:transparent}
.cristal .rail .foot {padding:22px 6px 0}.cristal .rail .foot p {font-size:13px;font-weight:650;color:var(--ink)}
.cristal main:has(#page-inicio:not([hidden]),#page-servicios:not([hidden])) {padding:0 0 40px;max-width:1400px}
.cristal .home-hero,.cristal .services-intro {background:var(--glass);border:1px solid var(--edge);border-radius:24px;box-shadow:var(--glass-shadow);backdrop-filter:blur(16px)}
.cristal .home-hero {display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:28px;min-height:300px;overflow:hidden;align-items:center}
.cristal .hero-copy {padding:0;width:auto;align-self:center}.cristal .hero-copy h1 {white-space:normal;font-size:clamp(36px,3.7vw,52px);line-height:1.08;letter-spacing:-1.8px;max-width:430px}
.cristal .hero-copy .eyebrow,.cristal .services-intro .eyebrow {display:table;color:var(--on-action);background:var(--action);padding:7px 12px;border-radius:99px;font-size:10px;letter-spacing:.1em;font-weight:750;margin-bottom:17px}
.cristal .hero-description {color:var(--muted);font-size:17px;line-height:1.55;margin-top:16px;max-width:360px}
.cristal .hero-photo {position:static;z-index:auto;mask-image:none;width:100%;height:265px;margin:0;border-radius:18px;object-position:75% center;border:1px solid var(--edge);box-shadow:var(--pressed)}
.cristal .primary {background:var(--action);color:var(--on-action);border-color:transparent;box-shadow:0 5px 16px color-mix(in srgb,var(--action) 17%,transparent)}
.cristal .hero-copy .hero-action {margin-top:24px;padding:13px 22px;font-size:14px;min-height:48px;gap:10px}
.cristal .home-shortcuts {margin:23px 0 28px;gap:18px}
.cristal .home-shortcut,.cristal .service-shortcut,.cristal .service-tile {background:var(--glass);border:1px solid var(--edge);border-radius:18px;box-shadow:var(--glass-shadow);backdrop-filter:blur(12px)}
.cristal .home-shortcut {padding:19px;gap:7px;min-height:166px}.cristal .home-shortcut h2 {font-size:16px}.cristal .home-shortcut p {font-size:13px}
.cristal .shortcut-icon,.cristal .service-icon {background:var(--surface);border:1px solid var(--edge);border-radius:13px;color:var(--brand);box-shadow:var(--raised)}
.cristal .shortcut-icon {height:44px;width:44px;margin-bottom:8px}.cristal .shortcut-icon .icon {width:25px;height:25px}
.cristal .home-shortcut>.icon {top:25px;right:15px;color:var(--muted)}
.cristal .home-community {padding:24px;background:var(--glass);border:1px solid var(--edge);border-radius:24px;box-shadow:var(--glass-shadow)}
.cristal .community-heading h2 {font-size:23px}.cristal .community-heading button {color:var(--brand)}
.cristal .community-toolbar {margin:12px 0 18px}.cristal .community-toolbar .tabs {overflow:visible;flex-wrap:wrap;padding:0}
.cristal .community-toolbar .tab,.cristal .service-filters button {background:var(--surface);border:1px solid var(--edge);box-shadow:var(--raised);color:var(--muted);min-height:44px}
.cristal .community-toolbar .tab[aria-pressed=true],.cristal .service-filters button[aria-pressed=true] {background:var(--action);color:var(--on-action);box-shadow:0 4px 12px #0001;border-color:transparent}
.cristal .community-grid {gap:14px}.cristal .community-card {background:var(--surface);border:1px solid var(--edge);border-radius:14px;box-shadow:0 4px 12px #0001}
.cristal .community-copy {padding-bottom:16px}.cristal .community-photo {height:140px}.cristal .community-description {font-size:12px}
.cristal #page-inicio>.mini-note {margin:20px 0 0}
.cristal .services-intro {padding:28px 30px;margin-bottom:24px;position:relative;overflow:hidden}
.cristal .services-intro h1 {font-size:clamp(32px,3.3vw,45px);max-width:740px}.cristal .services-intro>p:last-child {max-width:670px;font-size:16px;line-height:1.5}
.cristal .service-search {background:var(--surface);border:1px solid var(--edge);border-radius:99px;box-shadow:var(--pressed);padding-left:21px}
.cristal .service-filters {gap:10px;margin:18px 0 28px}.cristal .service-filters button {font-size:12px;padding:9px 15px}
.cristal .service-shortcuts {gap:16px}.cristal .service-shortcut {min-height:100px;padding:18px}.cristal .service-shortcut.has-photo {padding-right:0}.cristal .service-shortcut.has-photo img {height:calc(100% + 36px);margin:-18px 0}
.cristal .service-featured {margin-bottom:30px}.cristal .services-directory-heading {margin-bottom:18px}
.cristal .service-group {padding:16px;background:var(--glass);border:1px solid var(--edge);border-radius:22px;margin-bottom:18px;box-shadow:var(--glass-shadow)}
.cristal .service-group-head {background:transparent;padding:0 0 13px;margin:0}.cristal .service-group-head h3 {font-size:14px}
.cristal .service-grid {gap:14px}.cristal .service-tile {background:var(--surface);border-radius:14px;box-shadow:var(--raised);backdrop-filter:none}
.cristal .service-destination {min-height:114px;border-radius:14px;padding:18px 39px 18px 14px}.cristal .service-destination .service-icon {width:36px;height:36px;box-shadow:var(--pressed)}
.cristal .service-copy h3 {font-size:15px}.cristal .service-copy p {font-size:12px}.cristal .service-favorite {border-radius:12px;top:2px;right:2px;color:var(--muted)}
.cristal .service-planned,.cristal .services-help,.cristal .services-empty {background:var(--glass);border:1px solid var(--edge);border-radius:20px;box-shadow:var(--glass-shadow)}
.cristal .service-planned .service-grid {gap:14px}.cristal .service-planned>div {padding:0 20px 20px}.cristal .services-help {margin-top:20px}
.cristal .service-management .button {background:var(--surface)}
.cristal .home-shortcut:hover,.cristal .service-shortcut:hover,.cristal .service-tile:has(.service-destination:hover) {background:var(--surface);border-color:var(--brand)}
.cristal dialog {background:var(--surface);border-radius:24px;box-shadow:var(--glass-shadow)}
.cristal .field input,.cristal .field textarea,.cristal .field select {background:var(--surface);box-shadow:var(--pressed);border:1px solid var(--edge)}
.cristal .palette-choice {border-radius:14px;background:var(--surface)}
@media(max-width:1100px) and (min-width:900px) {
  .cristal .shell {grid-template-columns:180px minmax(0,1fr);gap:18px;margin:0 18px}
  .cristal .rail {padding:18px 12px}.cristal .topbar {margin-left:18px;margin-right:18px}
  .cristal .home-hero {padding:24px;gap:18px}.cristal .hero-copy h1 {font-size:38px}.cristal .hero-description {font-size:15px}.cristal .hero-copy .hero-action {padding:12px;font-size:12px}
  .cristal .home-shortcut {padding:15px}.cristal .home-shortcut p {font-size:12px}.cristal .home-community {padding:18px}.cristal .community-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .cristal .service-shortcut {padding-left:13px;gap:9px}.cristal .service-shortcut p {font-size:11px}
}
@media(max-width:899px) {
  .cristal .review-bar {padding:0 16px}.cristal .topbar {margin:8px 16px 18px;padding:12px 16px;height:68px;gap:10px;border-radius:20px}
  .cristal .brand {min-width:0;gap:8px}.cristal .brand b {font-size:22px}.cristal .top-actions {gap:8px}.cristal .top-actions .icon-btn {height:38px;width:38px;min-width:38px;padding:8px;box-shadow:0 3px 8px var(--shade),inset 0 1px 0 var(--shine)}
  .cristal .top-actions .activity-shortcut {display:none}.cristal .profile-initial {height:32px;width:32px}
  .cristal .shell {display:block;margin:0 16px}.cristal .rail {display:none}
  .cristal main:has(#page-inicio:not([hidden]),#page-servicios:not([hidden])) {padding:0 0 108px}
  .cristal .home-hero {display:flex;flex-direction:column;gap:0;padding:21px;border-radius:22px;min-height:0;overflow:hidden}
  .cristal .hero-copy {width:100%;padding:0}.cristal .hero-copy h1 {font-size:clamp(29px,8vw,40px);letter-spacing:-1.2px}.cristal .hero-copy .eyebrow {margin-bottom:16px;font-size:9px}
  .cristal .hero-description {font-size:15px;margin-top:13px;max-width:none}.cristal .hero-copy .hero-action {font-size:13px;width:100%;min-height:46px;margin-top:20px;padding:11px 10px;gap:8px}
  .cristal .hero-photo {height:130px;margin-top:21px;border-radius:13px}.cristal .home-shortcuts {margin:19px 0 23px;gap:13px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .cristal .home-shortcut {padding:15px;min-height:146px;border-radius:17px;gap:5px}.cristal .shortcut-icon {height:36px;width:36px;margin-bottom:7px}.cristal .shortcut-icon .icon {height:22px;width:22px}
  .cristal .home-shortcut h2 {font-size:14px}.cristal .home-shortcut p {font-size:12px}.cristal .home-shortcut>.icon {right:12px;top:26px}
  .cristal .home-community {padding:16px 13px;border-radius:20px}.cristal .community-heading h2 {font-size:20px}.cristal .community-heading button {padding:8px 4px}
  .cristal .community-toolbar {margin:10px 0 15px;gap:8px}.cristal .community-toolbar .tabs {gap:7px;width:100%}.cristal .community-toolbar .tab {padding:8px 9px;font-size:11px;min-height:42px}
  .cristal .community-grid {grid-template-columns:1fr;gap:12px}.cristal .community-card {grid-template-columns:90px minmax(0,1fr)}.cristal .community-photo {height:100%;min-height:148px}
  .cristal .community-copy {padding:12px 10px}.cristal .community-copy h3 {font-size:13px}.cristal .community-description {font-size:11px}.cristal .community-place {font-size:10px}
  .cristal .mobile-nav {left:12px;right:12px;bottom:10px;width:auto;border:1px solid var(--edge);border-radius:21px;background:var(--glass);box-shadow:0 6px 26px #0003,inset 0 1px 0 var(--shine);backdrop-filter:blur(20px);padding:7px 6px calc(7px + env(safe-area-inset-bottom))}
  .cristal .mobile-nav a {border-radius:14px;min-height:51px}.cristal .mobile-nav a[aria-current] {background:var(--surface);box-shadow:var(--pressed);color:var(--brand)}
  .cristal .services-intro {padding:23px 21px;border-radius:22px;margin-bottom:19px}.cristal .services-intro h1 {font-size:31px;line-height:1.12;letter-spacing:-1.1px}.cristal .services-intro>p:last-child {font-size:14px}
  .cristal .service-search {padding-left:16px}.cristal .service-search input {font-size:15px}.cristal .service-filters {gap:10px;margin:18px 0 25px}.cristal .service-filters button {font-size:11px;padding:9px 12px;gap:7px;min-height:44px}
  .cristal .service-shortcuts {gap:12px;grid-template-columns:1fr}.cristal .service-shortcut {min-height:78px;padding:14px;display:grid;grid-template-columns:36px minmax(0,1fr) 16px;border-radius:16px}.cristal .service-shortcut.has-photo {grid-template-columns:36px minmax(0,1fr) 66px;padding-right:0}.cristal .service-shortcut.has-photo img {width:66px;height:calc(100% + 28px);margin:-14px 0;display:block}.cristal .service-shortcut>.icon {display:block}.cristal .service-shortcut .service-icon {margin:0}
  .cristal .service-featured {margin-bottom:25px}.cristal .service-group {padding:13px;border-radius:19px;margin-bottom:18px}.cristal .service-group-head h3 {font-size:12px}
  .cristal .service-grid,.cristal .service-planned .service-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cristal .service-tile .service-destination {padding:14px 11px 20px;min-height:154px}
  .cristal .service-destination .service-icon {height:32px;width:32px;margin-bottom:13px}.cristal .service-copy h3 {font-size:13px}.cristal .service-copy p {font-size:11px;padding-right:0}
  .cristal .service-planned>div {padding:0 13px 17px}.cristal .services-help {padding:20px 17px}.cristal .services-help h2 {font-size:15px}
}
@media(max-width:359px) {
  .cristal .shell {margin:0 12px}.cristal .topbar {margin-left:12px;margin-right:12px;padding:11px 13px}.cristal .top-actions {gap:6px}.cristal .top-actions .icon-btn {height:34px;width:34px;min-width:34px}
  .cristal .hero-copy h1 {font-size:28px}.cristal .home-hero {padding:17px}.cristal .hero-copy .hero-action {font-size:12px}.cristal .home-shortcut {padding:13px}.cristal .home-community {padding:16px 11px}.cristal .community-toolbar .tab {font-size:10px;padding:8px 7px}.cristal .community-card {grid-template-columns:76px minmax(0,1fr)}
  .cristal .services-intro {padding:22px 18px}.cristal .services-intro h1 {font-size:28px}.cristal .service-filters button {padding:9px 10px;font-size:10px}.cristal .service-group {padding:11px}.cristal .service-grid {gap:11px}
}
@media(prefers-reduced-transparency:reduce) {.cristal {--glass:var(--surface)}.cristal::before {background:var(--bg)}}
@media(forced-colors:active) {.cristal {--glass:Canvas;--edge:ButtonText}.cristal::before {display:none}.cristal .rail>a[aria-current],.cristal .mobile-nav a[aria-current] {outline:2px solid Highlight}}
