/* GSS Core · componentes: barras de fases, filtros, tarjetas, ficha, datos de contacto.
   Las variables --gss-* las define el child theme; aquí van con valores por defecto. */
:root {
	--gss-forest: #1e3a2c;
	--gss-grass: #6c8f3c;
	--gss-leaf: #94b15b;
	--gss-deep: #55762c;
	--gss-lime: #a8c66c;
	--gss-cream: #f7f5ef;
	--gss-paper: #fdfcf8;
	--gss-sand: #efece4;
	--gss-line: #e2e0d5;
	--gss-pill: #e3e9d6;
	--gss-text: #3d4f44;
	--gss-muted: #6b7a70;
	--gss-fase-on: var(--gss-deep);
	--gss-fase-on-progress: var(--gss-leaf);
	--gss-fase-off: #d3d5c6;
	--gss-serif: "Cormorant Garamond", Georgia, serif;
}

/* ---------------------------------------------------------- Barras de fases */
.gss-fases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.gss-fase__bar { display: block; height: 8px; border-radius: 999px; background: var(--gss-fase-off); }
.gss-fase.is-on .gss-fase__bar { background: var(--gss-fase-on); }
.gss-fase.is-on.is-progress .gss-fase__bar { background: var(--gss-fase-on-progress); }
.gss-fase__label { display: block; margin-top: 6px; font-size: 0.8125rem; line-height: 1.2; color: var(--gss-text); }
.gss-fase:not(.is-on) .gss-fase__label { opacity: 0.5; }

/* ---------------------------------------------------------- Pills y chips */
.gss-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.gss-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 500; line-height: 1.4; background: var(--gss-pill); color: var(--gss-forest); }
.gss-pill--dark { background: var(--gss-forest); color: #fff; }
.gss-pill--lime { background: var(--gss-lime); color: var(--gss-forest); }

.gss-filtros { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.gss-filtro { display: flex; flex-wrap: wrap; gap: 8px; }
.gss-chip, .gss-chip:focus, .gss-chip:active { appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 500; line-height: 1.2; padding: 9px 18px; border-radius: 999px; background: var(--gss-pill); color: var(--gss-forest); transition: background 0.15s, color 0.15s; }
.gss-chip:hover { background: #d4dec0; color: var(--gss-forest); }
.gss-chip:focus-visible { outline: 2px solid var(--gss-forest); outline-offset: 2px; }
.gss-chip--dark, .gss-chip--dark:focus, .gss-chip--dark:active { background: var(--gss-forest); color: #fff; }
.gss-chip--dark:hover { background: #2c4d3b; color: #fff; }
.gss-chip--lime, .gss-chip--lime:focus, .gss-chip--lime:active { background: var(--gss-lime); color: var(--gss-forest); }
.gss-chip--lime:hover { background: #bad684; color: var(--gss-forest); }
.gss-chip.is-on, .gss-chip.is-on:hover, .gss-chip.is-on:focus, .gss-chip.is-on:active { background: var(--gss-deep); color: #fff; }

/* ---------------------------------------------------------- Rejilla, slider y tarjetas
   Columnas y separación llegan por variables CSS (--gss-cols / -t / -m, --gss-gap / -t / -m) desde el widget o el shortcode. */
.gss-pw { --gss-col: var(--gss-cols, 3); --gss-g: var(--gss-gap, 18px); position: relative; }
@media (max-width: 1024px) { .gss-pw { --gss-col: var(--gss-cols-t, var(--gss-cols, 2)); --gss-g: var(--gss-gap-t, var(--gss-gap, 18px)); } }
@media (max-width: 767px) { .gss-pw { --gss-col: var(--gss-cols-m, 1); --gss-g: var(--gss-gap-m, var(--gss-gap-t, 14px)); } }
.gss-lista { list-style: none; margin: 0; padding: 0; }
.gss-pw--grid .gss-lista { display: grid; gap: var(--gss-g); grid-template-columns: repeat(var(--gss-col), minmax(0, 1fr)); }
.gss-pw--slider .gss-lista { display: flex; gap: var(--gss-g); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.gss-pw--slider .gss-lista::-webkit-scrollbar { display: none; }
.gss-pw--slider .gss-lista.is-grab { cursor: grabbing; user-select: none; }
.gss-pw--slider .gss-item { flex: 0 0 calc((100% - (var(--gss-col) - 1) * var(--gss-g)) / var(--gss-col)); min-width: 0; scroll-snap-align: start; }
.gss-pw--slider .gss-item img { -webkit-user-drag: none; user-select: none; }
.gss-item[hidden] { display: none; }
.gss-vacio { color: var(--gss-muted); }

/* Cabecera del bloque: título + «Ver todos» */
.gss-pw__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin-bottom: 24px; }
.gss-pw__title { margin: 0; font-family: var(--gss-serif); font-weight: 500; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.1; color: var(--gss-forest); }
.gss-pw .gss-pw__all, .gss-pw .gss-pw__all:visited { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 0.8rem; line-height: 1.3; color: var(--gss-forest); text-decoration: none; transition: color 0.2s; }
.gss-pw .gss-pw__all:hover, .gss-pw .gss-pw__all:focus, .gss-pw .gss-pw__all:active { color: var(--gss-deep); }
.gss-pw__all::after { content: ""; width: 14px; height: 9px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5h13M10 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5h13M10 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Controles del slider: barra de progreso + flechas (estados explícitos: nada de rosa de Hello) */
.gss-pw__ui { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; }
.gss-pw__bar { position: relative; flex: 1; max-width: 380px; height: 2px; background: rgba(30, 58, 44, 0.16); }
.gss-pw__bar span { position: absolute; top: 0; left: 0; height: 100%; width: 30%; background: var(--gss-pw-accent, var(--gss-forest)); transition: width 0.2s, left 0.15s linear; }
.gss-pw__nav { display: flex; gap: 10px; }
.gss-pw .gss-pw__arrow, .gss-pw .gss-pw__arrow:hover, .gss-pw .gss-pw__arrow:focus, .gss-pw .gss-pw__arrow:active { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin: 0; border: 1px solid var(--gss-pw-accent, var(--gss-forest)); border-radius: 50%; background: transparent; color: var(--gss-pw-accent, var(--gss-forest)); box-shadow: none; cursor: pointer; transition: background 0.2s, color 0.2s, opacity 0.2s; }
.gss-pw .gss-pw__arrow:hover, .gss-pw .gss-pw__arrow:active { background: var(--gss-pw-accent, var(--gss-forest)); color: #fff; }
.gss-pw .gss-pw__arrow:focus-visible { outline: 2px solid var(--gss-pw-accent, var(--gss-forest)); outline-offset: 3px; }
.gss-pw .gss-pw__arrow.is-disabled, .gss-pw .gss-pw__arrow.is-disabled:hover { opacity: 0.3; cursor: default; background: transparent; color: var(--gss-pw-accent, var(--gss-forest)); }
.gss-pw__arrow svg { width: 16px; height: 10px; }
.gss-pw.is-static .gss-pw__ui { display: none; }

.gss-card { display: flex; flex-direction: column; height: 100%; background: var(--gss-paper); border: 1px solid var(--gss-line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--gss-text); transition: transform 0.2s, box-shadow 0.2s; }
.gss-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30, 58, 44, 0.12); color: var(--gss-text); }
.gss-card__img { display: block; aspect-ratio: var(--gss-ratio, 16 / 10); background: var(--gss-pill); overflow: hidden; }
.gss-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gss-card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--gss-grass) 0%, var(--gss-forest) 100%); }
.gss-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.gss-card__title { font-size: 1.12rem; font-weight: 500; line-height: 1.25; color: var(--gss-forest); }
.gss-card__meta { font-size: 0.88rem; color: var(--gss-muted); }
.gss-card .gss-fases { margin-top: auto; padding-top: 6px; }

/* ---------------------------------------------------------- Ficha de proyecto */
.gss-main { background: var(--gss-cream); }
.gss-ficha__in { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.gss-ficha__head { background: var(--gss-forest); color: #e6ede4; padding: 56px 0 48px; }
.gss-ficha__head h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 18px 0 10px; font-weight: 500; line-height: 1.12; }
.gss-back { display: inline-block; margin-bottom: 22px; color: var(--gss-leaf); text-decoration: none; font-weight: 500; }
.gss-back:hover { color: #fff; }
.gss-ficha__meta { margin: 0; color: #c5d3c4; font-size: 1.05rem; }
.gss-ficha__lead { margin: 18px 0 0; max-width: 46rem; color: #e6ede4; font-size: 1.1rem; }
.gss-ficha__hero { margin: 0; background: var(--gss-forest); padding-bottom: 0; }
.gss-ficha__hero img { width: 100%; max-height: 640px; object-fit: cover; display: block; border-radius: 18px 18px 0 0; }
.gss-ficha__sec { padding: 72px 0; }
.gss-ficha__sec--alt { background: var(--gss-sand); }
.gss-ficha__sec h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 24px; }
.gss-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 800px) { .gss-pasos { grid-template-columns: 1fr; } }
.gss-paso { background: var(--gss-paper); border: 1px solid var(--gss-line); border-radius: 18px; padding: 26px; }
.gss-paso__n { display: block; font-size: 1.9rem; font-weight: 300; line-height: 1; color: var(--gss-grass); }
.gss-paso h3 { margin: 10px 0 8px; font-size: 1.35rem; }
.gss-paso p { margin: 0; }
.gss-paso:not(.is-on) { background: transparent; border-style: dashed; }
.gss-paso:not(.is-on) .gss-paso__n, .gss-paso:not(.is-on) h3 { opacity: 0.45; }
.gss-paso__no { color: var(--gss-muted); font-size: 0.92rem; }
.gss-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 36px; }
.gss-zoom { display: block; border-radius: 14px; overflow: hidden; background: var(--gss-pill); aspect-ratio: 4 / 3; cursor: zoom-in; }
.gss-zoom img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.gss-zoom:hover img { transform: scale(1.04); }
.gss-ficha__cta { background: var(--gss-forest); color: #e6ede4; padding: 64px 0; }
.gss-ficha__cta h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.gss-ficha__cta p { margin: 0 0 24px; color: #c5d3c4; }
.gss-btn-link { display: inline-block; padding: 15px 30px; border-radius: 999px; background: var(--gss-leaf); color: var(--gss-forest); font-weight: 500; text-decoration: none; transition: background 0.2s; }
.gss-btn-link:hover { background: var(--gss-lime); color: var(--gss-forest); }
.gss-btn-link--lime { margin-top: 14px; }

/* Lightbox */
.gss-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(15, 28, 21, 0.92); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.gss-lb img { max-width: 100%; max-height: 100%; border-radius: 10px; }

/* ---------------------------------------------------------- Datos de contacto */
.gss-datos { list-style: none; margin: 0; padding: 0; }
.gss-datos li { padding: 12px 0; border-top: 1px solid var(--gss-line); display: flex; flex-direction: column; gap: 2px; }
.gss-datos li:first-child { border-top: 0; }
.gss-datos__l { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; color: var(--gss-deep); }
.gss-datos a { text-decoration: none; }
.gss-datos a:hover { text-decoration: underline; }

/* ---------------------------------------------------------- Estilo "galería" (Inicio) */
.gss-proy--galeria .gss-lista { gap: 18px; }
.gss-card--galeria { background: none; border: 0; border-radius: 0; overflow: visible; }
.gss-card--galeria:hover { transform: none; box-shadow: none; }
.gss-card--galeria .gss-card__img { aspect-ratio: var(--gss-ratio, 4 / 3); border-radius: 0; }
.gss-card--galeria .gss-card__img img { transition: transform 0.5s; }
.gss-card--galeria:hover .gss-card__img img { transform: scale(1.03); }
.gss-cap { display: flex; flex-direction: column; gap: 2px; padding: 12px 2px 0; }
.gss-cap__t { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.66rem; font-weight: 500; color: var(--gss-muted); }
.gss-cap__c { font-size: 0.9rem; color: var(--gss-forest); }
.gss-cap__n { font-family: var(--gss-serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; color: var(--gss-forest); }
.gss-cap .gss-fases { margin-top: 8px; }

/* ---------------------------------------------------------- Serif en títulos de tarjeta y ficha */
.gss-card__title, .gss-paso h3, .gss-ficha__head h1, .gss-ficha__sec h2, .gss-ficha__cta h2 { font-family: var(--gss-serif); }
.gss-card__title { font-size: 1.45rem; font-weight: 600; }
.gss-card { border-radius: 6px; }
.gss-paso { border-radius: 6px; }
.gss-paso__n { font-family: var(--gss-serif); font-weight: 500; color: #bdb6a3; }
.gss-zoom, .gss-ficha__hero img { border-radius: 4px; }
