/* Vertical System SAS: barra superior, buscador, pie de página y componentes de contenido dinámico (fase 3). */

/* Barra superior */
.vs-topbar { background: var(--vs-ink); color: #e2e8f0; font-size: .875rem; }
.vs-topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; min-height: 40px; padding-block: .35rem; }
.vs-topbar__msg { margin: 0; }
.vs-topbar__links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.vs-topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; gap: .4rem; }
.vs-topbar a:hover { color: var(--vs-cyan); text-decoration: underline; }
@media (max-width: 575.98px) { .vs-topbar__email { display: none; } }

/* Franja de búsqueda */
.vs-search { background: var(--vs-surface); border-bottom: 1px solid var(--vs-border); padding-block: .75rem; }
.vs-search__inner { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
.vs-search__form { display: flex; flex: 1 1 22rem; max-width: 40rem; }
.vs-search__form input[type="search"] {
	flex: 1; min-width: 0; min-height: 44px; padding: .5rem .9rem; font-size: 1rem;
	border: 1px solid var(--vs-border); border-right: 0; border-radius: var(--vs-radius) 0 0 var(--vs-radius); background: #fff; color: var(--vs-ink);
}
.vs-search__form button {
	min-height: 44px; padding: .5rem 1.1rem; border: 0; border-radius: 0 var(--vs-radius) var(--vs-radius) 0;
	background: var(--vs-blue); color: #fff; font-weight: 600; cursor: pointer;
}
.vs-search__form button:hover { background: var(--vs-cyan); color: var(--vs-ink); }
.vs-search__all { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 600; color: var(--vs-blue); text-decoration: none; }
.vs-search__all:hover { color: var(--vs-cyan-text); text-decoration: underline; }

/* Pie de página */
.vs-footer { background: var(--vs-ink); color: #cbd5e1; padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; }
.vs-footer a { color: #e2e8f0; text-decoration: none; }
.vs-footer a:hover { color: #fff; text-decoration: underline; }
.vs-footer__brand { margin: 0 0 .75rem; font-family: var(--vs-font-heading); font-weight: 800; font-size: 1.25rem; color: #fff; }
.vs-footer__title { margin: 0 0 .75rem; font-family: var(--vs-font-heading); font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: 0; }
.vs-footer__list, .vs-footer__legal { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.vs-footer__list a { display: inline-flex; align-items: center; min-height: 32px; }
.vs-footer__payments { margin-top: 2rem; }
.vs-footer__bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; font-size: .875rem; }
.vs-footer__bottom p { margin: 0; }
.vs-footer__legal { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.vs-chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.vs-chips li { padding: .3rem .8rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; font-size: .85rem; color: #e2e8f0; }

/* Redes sociales */
.vs-social { display: flex; gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.vs-social a {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .3); color: #fff; text-decoration: none;
}
.vs-social a:hover { background: var(--vs-cyan); border-color: var(--vs-cyan); color: var(--vs-ink); text-decoration: none; }
.vs-social--light a { border-color: var(--vs-border); color: var(--vs-blue); }
.vs-social--light a:hover { background: var(--vs-blue); border-color: var(--vs-blue); color: #fff; }

/* Contacto con iconos y mapa */
.vs-contact-list--icons li { display: flex; gap: 1rem; align-items: flex-start; }
.vs-contact-list--icons .vs-icon { flex: none; margin-bottom: 0; }
.vs-map { margin-top: 1.5rem; border-radius: var(--vs-radius-lg); overflow: hidden; border: 1px solid var(--vs-border); }
.vs-map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* Avisos comerciales de la tienda */
.vs-trust { background: #fff; border-bottom: 1px solid var(--vs-border); padding-block: 1rem; }
.vs-trust__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.vs-trust__list li { display: flex; gap: .75rem; align-items: center; font-size: .9rem; }
.vs-trust__list .vs-icon { flex: none; margin-bottom: 0; width: 2.5rem; height: 2.5rem; font-size: 1rem; }

/* Contenido dinámico */
.vs-card__media img { width: 100%; height: auto; border-radius: var(--vs-radius); margin-bottom: 1rem; }
.vs-tile--brand { text-decoration: none; background: #fff; border-style: solid; }
.vs-tile--brand img { max-height: 3rem; width: auto; max-width: 100%; object-fit: contain; }
.vs-tile--brand:hover { border-color: var(--vs-blue); }
.vs-admin-hint { margin: 0; padding: .5rem .75rem; border-left: 4px solid #f59e0b; background: #fff7e6; color: #7a4b00; font-size: .85rem; }
.vs-footer .vs-admin-hint { margin-top: 1rem; }
.single-vs_service .vs-faq, .single-vs_project .vs-faq { max-width: none; }

/* Aviso de cookies (accesible, no modal, botones de igual jerarquía) */
.vs-consent {
	position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); max-width: 30rem;
	padding: 1rem 1.25rem; background: #fff; color: var(--vs-text); border: 1px solid var(--vs-border); border-radius: var(--vs-radius-lg); box-shadow: 0 8px 28px rgba(11, 27, 63, .22);
}
.vs-consent[hidden] { display: none; }
.vs-consent__title { margin: 0 0 .25rem; font-family: var(--vs-font-heading); font-weight: 700; color: var(--vs-ink); }
.vs-consent__text { margin: 0 0 .75rem; font-size: .9rem; line-height: 1.5; }
.vs-consent__text a { color: var(--vs-blue); text-decoration: underline; }
.vs-consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.vs-consent__btn {
	flex: 1 1 8rem; min-height: 44px; padding: .5rem 1rem; border: 2px solid var(--vs-blue); border-radius: var(--vs-radius);
	background: #fff; color: var(--vs-blue); font: inherit; font-weight: 600; cursor: pointer;
}
.vs-consent__btn--accept { background: var(--vs-blue); color: #fff; }
.vs-consent__btn:hover { background: var(--vs-cyan); border-color: var(--vs-cyan); color: var(--vs-ink); }
.vs-footer__link-btn { padding: 0; min-height: 32px; background: none; border: 0; color: #e2e8f0; font: inherit; text-decoration: underline; cursor: pointer; }
.vs-footer__link-btn:hover { color: #fff; }
@media (min-width: 768px) { .vs-consent { right: auto; } }
