/* ================================================================
   WORKSTORE — custom-layout.css  v1.0
   Parte 5: HEADER (navbar glass + scroll-spy) y FOOTER
   ================================================================ */

/* ================================================================
   HEADER
   ================================================================ */
.ws-header.header-two-area {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Estado al hacer scroll (clase añadida por script.js) */
.ws-header.header-two-area.menu-fixed {
    background: rgba(15,23,42,0.82);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(148,163,184,0.12);
    box-shadow: 0 10px 40px rgba(2,6,23,0.35);
    animation-duration: 0.45s;
}

.ws-header__main {
    gap: 24px;
    flex-wrap: nowrap !important;
    min-height: 84px;
    transition: min-height 0.3s ease;
}
.ws-header.menu-fixed .ws-header__main { min-height: 70px; }

/* Logo */
.ws-header__logo img {
    max-height: 46px;
    width: auto;
    transition: max-height 0.3s ease, transform 0.3s ease;
}
.ws-header.menu-fixed .ws-header__logo img { max-height: 38px; }
.ws-header__logo:hover img { transform: scale(1.03); }

/* Menú */
.ws-header__menu { margin-left: auto; }
.ws-header .header__main .main-menu ul { gap: 6px; align-items: center; }

.ws-header .header__main .main-menu ul li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px !important;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 10px;
    transition: color 0.25s ease, background 0.25s ease;
    text-decoration: none;
}

/* Indicador inferior animado perfectamente centrado */
.ws-header .header__main .main-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50% !important;
    right: auto !important;
    width: calc(100% - 24px) !important;
    max-width: 100%;
    height: 2px !important;
    border-radius: 4px;
    background: linear-gradient(90deg, #efb80c 0%, #fef08a 100%) !important;
    box-shadow: 0 0 8px rgba(239, 184, 12, 0.4);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.ws-header .header__main .main-menu ul li a:hover,
.ws-header .header__main .main-menu ul li a.is-active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.07);
}
.ws-header .header__main .main-menu ul li a:hover::after,
.ws-header .header__main .main-menu ul li a.is-active::after {
    transform: translateX(-50%) scaleX(1) !important;
}

@media (max-width: 1299px) {
    .ws-header .header__main .main-menu ul li a { padding: 9px 11px !important; font-size: 14px; }
    .ws-header .header__main .main-menu ul li a::after { width: calc(100% - 18px) !important; }
}

/* Acciones */
.ws-header__actions {
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ws-header__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.ws-header__btn i { font-size: 13px; transition: transform 0.3s ease; }

.ws-header__btn--ghost {
    color: #e2e8f0 !important;
    border: 1.5px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
}
.ws-header__btn--ghost:hover {
    border-color: rgba(239, 184, 12, 0.6);
    background: rgba(56, 31, 93, 0.3);
    color: #fef08a !important;
}

.ws-header__btn--primary {
    color: #fff !important;
    background: linear-gradient(135deg, #241140, #381f5d, #522b82);
    box-shadow: 0 6px 22px rgba(56,31,93,0.38);
}
.ws-header__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(56,31,93,0.5);
    color: #fff !important;
}
.ws-header__btn--primary:hover i.fa-arrow-right-long { transform: translateX(4px); }

/* Selector de idioma */
.ws-header__lang select {
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
}

/* Botón hamburguesa animado */
.ws-header__burger {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}
.ws-header__burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: width 0.3s ease;
}
.ws-header__burger span:nth-child(2) { width: 70%; margin-left: auto; }
.ws-header__burger:hover { background: rgba(56, 31, 93, 0.35); border-color: rgba(239, 184, 12, 0.5); }
.ws-header__burger:hover span:nth-child(2) { width: 100%; }

@media (max-width: 991px) {
    .ws-header__main { min-height: 70px; }
    .ws-header__logo img { max-height: 38px; }
}

/* ─── SIDEBAR MÓVIL ──────────────────────────────────────────── */
.sidebar-area .logo img { max-height: 42px; width: auto; }
.sidebar-area .btn-one { border-radius: 12px !important; justify-content: center; }
.sidebar-area .info li a { word-break: break-all; }

/* ================================================================
   FOOTER
   ================================================================ */
.ws-footer {
    position: relative;
    overflow: hidden;
    background: #0d061a !important;
    color: rgba(226,232,240,0.7);
    padding-top: 90px;
    isolation: isolate;
}

.ws-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    z-index: -1;
}

.ws-footer__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: -1;
}
.ws-footer__glow--1 { width: 460px; height: 460px; top: -160px; left: -120px; background: rgba(56,31,93,0.35); }
.ws-footer__glow--2 { width: 380px; height: 380px; bottom: -140px; right: -100px; background: rgba(239,184,12,0.18); }

/* ─── CTA ────────────────────────────────────────────────────── */
.ws-footer__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding: 44px 48px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, #1b0c30 0%, #381f5d 50%, #4c287a 100%);
    box-shadow: 0 24px 60px rgba(56,31,93,0.35);
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}
.ws-footer__cta::after {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    right: -80px; top: -140px;
    border-radius: 50%;
    border: 50px solid rgba(255,255,255,0.08);
    pointer-events: none;
}

.ws-footer__cta-text { flex: 1 1 420px; position: relative; z-index: 1; }

.ws-footer__cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fef08a;
    margin-bottom: 10px;
}
.ws-footer__cta-eyebrow i { color: #fde68a; }

.ws-footer__cta-title {
    font-size: 30px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: -0.02em;
    margin: 0 !important;
    max-width: 620px;
}

.ws-footer__cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.ws-footer__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.ws-footer__cta-btn--primary { background: #fff; color: #381f5d !important; box-shadow: 0 8px 24px rgba(2,6,23,0.2); }
.ws-footer__cta-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(2,6,23,0.3); color: #241140 !important; }
.ws-footer__cta-btn--primary i { transition: transform 0.3s ease; }
.ws-footer__cta-btn--primary:hover i { transform: translateX(5px); }
.ws-footer__cta-btn--ghost { color: #fff !important; border: 1.5px solid rgba(255,255,255,0.45); }
.ws-footer__cta-btn--ghost:hover { background: rgba(255,255,255,0.14); border-color: #fff; color: #fff !important; }

@media (max-width: 767px) {
    .ws-footer__cta { padding: 32px 24px; margin-bottom: 60px; }
    .ws-footer__cta-title { font-size: 23px !important; }
    .ws-footer__cta-actions, .ws-footer__cta-btn { width: 100%; justify-content: center; }
}

/* ─── GRID ───────────────────────────────────────────────────── */
.ws-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1.1fr 0.9fr 1.4fr;
    gap: 48px;
    padding-bottom: 64px;
}
@media (max-width: 1199px) { .ws-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 575px)  { .ws-footer__grid { grid-template-columns: 1fr; gap: 36px; } }

.ws-footer__logo { display: inline-block; margin-bottom: 18px; }
.ws-footer__logo img { max-height: 48px; width: auto; }

.ws-footer__tagline {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #efb80c;
    margin-bottom: 14px;
}

.ws-footer__desc {
    font-size: 14.5px !important;
    line-height: 1.75 !important;
    color: rgba(203,213,225,0.7) !important;
    margin-bottom: 22px !important;
}

.ws-footer__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-footer__badges span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 500;
    color: #cbd5e1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(148,163,184,0.16);
}
.ws-footer__badges i { color: #34d399; }

.ws-footer__title {
    position: relative;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 24px !important;
    padding-bottom: 12px;
}
.ws-footer__title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 32px; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #381f5d, #efb80c);
}

.ws-footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ws-footer__links a {
    position: relative;
    display: inline-block;
    font-size: 14.5px;
    color: rgba(203,213,225,0.72) !important;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}
.ws-footer__links a::before {
    content: '';
    position: absolute;
    left: -14px; top: 50%;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #efb80c;
    transform: translateY(-50%) scale(0);
    transition: transform 0.25s ease;
}
.ws-footer__links a:hover { color: #fff !important; transform: translateX(14px); }
.ws-footer__links a:hover::before { transform: translateY(-50%) scale(1); }

.ws-footer__contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.ws-footer__contact li { display: flex; align-items: flex-start; gap: 14px; }
.ws-footer__contact-icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(56, 31, 93, 0.2);
    border: 1px solid rgba(239, 184, 12, 0.3);
    color: #efb80c;
    font-size: 15px;
    transition: all 0.3s ease;
}
.ws-footer__contact li:hover .ws-footer__contact-icon {
    background: linear-gradient(135deg, #241140, #381f5d);
    border-color: rgba(239, 184, 12, 0.5);
    color: #efb80c;
}
.ws-footer__contact strong { display: block; color: #fff; font-size: 14.5px; font-weight: 600; }
.ws-footer__contact small { display: block; font-size: 12.5px; color: rgba(148,163,184,0.85); margin-bottom: 2px; }
.ws-footer__contact a {
    font-size: 14px;
    color: #e2e8f0 !important;
    word-break: break-word;
    text-decoration: none;
    transition: color 0.25s ease;
}
.ws-footer__contact a:hover { color: #efb80c !important; }

/* ─── COPYRIGHT ──────────────────────────────────────────────── */
.ws-footer__bottom { border-top: 1px solid rgba(148,163,184,0.12); padding: 22px 0; }
.ws-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.ws-footer__bottom p { margin: 0 !important; font-size: 13.5px !important; color: rgba(148,163,184,0.85) !important; }
.ws-footer__bottom p strong { color: #e2e8f0; }
.ws-footer__bottom ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.ws-footer__bottom ul a { font-size: 13.5px; color: rgba(148,163,184,0.85) !important; text-decoration: none; transition: color 0.25s ease; }
.ws-footer__bottom ul a:hover { color: #fff !important; }
@media (max-width: 767px) { .ws-footer__bottom-inner { justify-content: center; text-align: center; } }

/* ─── Accesibilidad ──────────────────────────────────────────── */
.ws-header a:focus-visible,
.ws-header button:focus-visible,
.ws-footer a:focus-visible {
    outline: 2px solid #efb80c;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .ws-header *, .ws-footer * { transition: none !important; animation: none !important; }
}

/* Compensa el header fijo al navegar con anclas (#servicios, #contacto…) */
html { scroll-padding-top: 80px; }
