/* ==========================================================================
   Digital Space — Cabecera (menú) + Footer (en todas las páginas)
   ========================================================================== */

/* Botón base (por si la sección no carga home.css) */
.ds-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.95rem 1.9rem; border-radius: 999px; font-weight: 700; font-size: 0.98rem; text-decoration: none; cursor: pointer; border: 0; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.ds-btn svg { width: 18px; height: 18px; }
.ds-btn--primary { color: #fff; background: linear-gradient(100deg, var(--ds-purple), var(--ds-magenta)); box-shadow: 0 10px 30px -8px rgba(212,0,255,0.6); }
.ds-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -8px rgba(212,0,255,0.85); }
.ds-grad { background: linear-gradient(100deg, var(--ds-violet), var(--ds-magenta) 60%, #ff6ad5); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* Logo real (imagen). Clara para tema oscuro, oscura para tema claro. */
.ds-logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; text-decoration: none; }
.ds-logo__img { height: 58px; width: auto; max-width: 230px; display: block; object-fit: contain; }
/* En tema claro el logo blanco se oscurece (mismo tamaño/disposición). */
:root[data-theme="light"] .ds-logo__img { filter: brightness(0); }
.ds-logo__tag { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ds-text-dim); font-weight: 600; }
/* Footer: más grande */
.ds-logo--stack .ds-logo__img { height: 86px; max-width: 300px; }

/* ----------------------------- CABECERA ----------------------------- */
.ds-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; padding: 0 1rem; pointer-events: none; }
.ds-header__bar {
	pointer-events: auto; width: 100%; max-width: 1180px;
	display: flex; align-items: center; gap: 1.4rem;
	padding: 0.55rem 0.55rem 0.55rem 1.4rem; border-radius: 999px;
	background: var(--ds-glass, rgba(18, 11, 28, 0.82)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border: 1px solid var(--ds-line); box-shadow: 0 12px 40px -16px rgba(0,0,0,0.7);
}
.ds-header__nav { display: flex; gap: 1.7rem; margin-left: auto; }
.ds-header__nav a { color: var(--ds-text); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s ease; }
.ds-header__nav a:hover, .ds-header__nav a.is-active, .ds-header__nav .current-menu-item > a { color: var(--ds-magenta); }
.ds-header__cta { padding: 0.6rem 1.3rem; font-size: 0.9rem; }

.ds-header__burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; margin-left: auto; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
.ds-header__burger span { width: 22px; height: 2px; background: var(--ds-text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.ds-header.is-open .ds-header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ds-header.is-open .ds-header__burger span:nth-child(2) { opacity: 0; }
.ds-header.is-open .ds-header__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ds-header__mobile {
	pointer-events: auto; position: absolute; top: calc(100% + 8px); left: 1rem; right: 1rem;
	flex-direction: column; gap: 0.3rem; padding: 0.8rem; border-radius: 20px;
	background: var(--ds-glass, rgba(18, 11, 28, 0.97)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
	border: 1px solid var(--ds-line); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.8);
	display: none;
}
.ds-header.is-open .ds-header__mobile { display: flex; }
.ds-header__mobile a { color: var(--ds-text); text-decoration: none; font-weight: 600; padding: 0.75rem 1rem; border-radius: 12px; }
.ds-header__mobile a:not(.ds-btn):hover { background: var(--ds-card); color: var(--ds-magenta); }
.ds-header__mobile .ds-btn { justify-content: center; margin-top: 0.4rem; }

@media (max-width: 920px) {
	.ds-header__nav, .ds-header__cta { display: none; }
	.ds-header__burger { display: flex; }
}

/* ----------------------------- FOOTER ----------------------------- */
.ds-footer { position: relative; z-index: 2; margin-top: 5rem; background: var(--ds-bg); border-top: 1px solid var(--ds-line); }

/* Banda newsletter */
.ds-footer__cta { background: linear-gradient(120deg, #2c0a49, #6a18a8 55%, #3a0d5e); border-top: 1px solid rgba(212,0,255,0.35); padding: clamp(2rem, 5vw, 3rem) 1.25rem; }
.ds-footer__cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.6rem; align-items: center; }
.ds-footer__cta-title { margin: 0 0 0.4rem; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 800; color: #fff; }
.ds-footer__cta p { margin: 0; color: rgba(255,255,255,0.85); }
.ds-btn--white { background: #fff; color: var(--ds-purple); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4); }
.ds-btn--white:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -12px rgba(0,0,0,0.5); }
.ds-footer__wa { padding: 1rem 1.8rem; font-size: 1rem; }
.ds-footer__wa svg { width: 20px; height: 20px; }

/* Cuerpo */
.ds-footer__main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: 3.5rem 1.25rem; max-width: 1200px; margin: 0 auto; }
.ds-footer__desc { color: var(--ds-text-dim); line-height: 1.65; font-size: 0.9rem; margin: 1.1rem 0 1.3rem; max-width: 320px; }
.ds-footer__socials { display: flex; gap: 0.6rem; margin-bottom: 1.3rem; }
.ds-soc { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ds-text); background: var(--ds-card); border: 1px solid var(--ds-line); transition: all 0.2s ease; }
.ds-soc svg { width: 18px; height: 18px; }
.ds-soc:hover { color: #fff; background: linear-gradient(150deg, var(--ds-purple), var(--ds-magenta)); border-color: transparent; transform: translateY(-2px); }
.ds-footer__badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ds-cert { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; border-radius: 12px; border: 1px solid rgba(212,0,255,0.4); background: var(--ds-card); font-size: 0.8rem; font-weight: 700; color: var(--ds-text); }
.ds-cert img { height: 22px; width: auto; object-fit: contain; }

.ds-footer__col h3 { font-size: 1.05rem; margin: 0 0 1.3rem; position: relative; padding-bottom: 0.6rem; }
.ds-footer__col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: linear-gradient(90deg, var(--ds-violet), var(--ds-magenta)); }
.ds-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.ds-footer__col a { color: var(--ds-text-dim); text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; display: inline-flex; gap: 0.45rem; align-items: center; }
.ds-footer__col ul a::before { content: "+"; color: var(--ds-magenta); font-weight: 700; }
.ds-footer__col a:hover { color: var(--ds-magenta); }

.ds-footer__contact ul li { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1rem; }
.ds-fic { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--ds-magenta); background: rgba(160,32,240,0.14); border: 1px solid rgba(212,0,255,0.3); flex: 0 0 auto; }
.ds-fic svg { width: 18px; height: 18px; }
.ds-footer__contact small { display: block; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ds-text-dim); margin-bottom: 2px; }
.ds-footer__contact a, .ds-footer__contact div > span { color: var(--ds-text); text-decoration: none; font-size: 0.9rem; }
.ds-footer__contact a::before { content: none; }
.ds-footer__contact a:hover { color: var(--ds-magenta); }
.ds-footer__hours { margin-top: 1.1rem; border: 1px solid var(--ds-line); border-radius: 13px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; background: var(--ds-card); }
.ds-footer__hours div { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--ds-text-dim); }
.ds-on { color: #34d399; font-weight: 700; }

/* Barra inferior */
.ds-footer__bottom { border-top: 1px solid var(--ds-line); padding: 1.3rem 1.25rem; }
.ds-footer__bottom-grid { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.ds-footer__bottom p { margin: 0; color: var(--ds-text-dim); font-size: 0.82rem; }
.ds-footer__legal { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.ds-footer__legal a { color: var(--ds-text-dim); text-decoration: none; font-size: 0.82rem; }
.ds-footer__legal a:hover { color: var(--ds-magenta); }
.ds-madein { display: inline-flex; gap: 0.3rem; align-items: center; color: var(--ds-text-dim); font-size: 0.82rem; }
.ds-madein svg { width: 14px; height: 14px; color: var(--ds-magenta); }

@media (max-width: 900px) {
	.ds-footer__main { grid-template-columns: 1fr 1fr; gap: 2rem; }
	.ds-footer__cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.ds-footer__main { grid-template-columns: 1fr; }
	.ds-footer__bottom-grid { flex-direction: column; text-align: center; }
}
