/* DpEstudio — Header & Footer unificados */
:root {
    --dp-bg1: #050d1a;
    --dp-accent: #3b82f6;
    --dp-wa: #25d366;
    --dp-text: #f1f5f9;
    --dp-muted: #94a3b8;
    --dp-faint: #64748b;
    --dp-border: rgba(255, 255, 255, 0.09);
    --dp-nav-h: 68px;
}

/* Offset para nav fijo (páginas internas) */
body.has-dp-nav:not(.dp-home) {
    padding-top: var(--dp-nav-h);
}

body.has-dp-nav.article-page {
    padding-top: var(--dp-nav-h);
}

/* ── NAV ── */
.dp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 13, 26, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--dp-border);
}

.dp-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--dp-nav-h);
}

.dp-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dp-text) !important;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.dp-logo-dot {
    color: var(--dp-accent);
}

.dp-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dp-nav-links a {
    padding: 8px 13px;
    color: var(--dp-muted) !important;
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 8px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.dp-nav-links a:hover,
.dp-nav-links a.active {
    color: var(--dp-text) !important;
    background: rgba(255, 255, 255, 0.06);
}

.dp-nav-links a.dp-plat {
    color: #34d399 !important;
    font-weight: 600;
}

.dp-nav-dropdown {
    position: relative;
}

.dp-nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dp-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #0a1628;
    border: 1px solid var(--dp-border);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    min-width: 210px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    z-index: 1001;
}

.dp-nav-dropdown:hover .dp-nav-dropdown-menu,
.dp-nav-dropdown.open .dp-nav-dropdown-menu {
    display: block;
}

.dp-nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    white-space: nowrap;
    border-radius: 0;
}

.dp-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: var(--dp-wa);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.87rem;
    border-radius: 999px;
    text-decoration: none;
    transition: box-shadow 0.2s;
    white-space: nowrap;
}

.dp-nav-cta:hover {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
}

.dp-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.dp-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dp-text);
    border-radius: 2px;
}

.dp-mobile-menu {
    display: none;
    position: fixed;
    inset: var(--dp-nav-h) 0 0 0;
    background: #050d1a;
    z-index: 999;
    flex-direction: column;
    padding: 20px 28px;
    overflow-y: auto;
}

.dp-mobile-menu.open {
    display: flex;
}

.dp-mobile-menu a {
    padding: 15px 0;
    color: var(--dp-text) !important;
    font-size: 1.05rem;
    font-weight: 500;
    border-bottom: 1px solid var(--dp-border);
    text-decoration: none;
    display: block;
}

.dp-mobile-label {
    padding: 14px 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dp-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dp-mobile-cta {
    margin-top: 20px;
    border-bottom: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px !important;
    background: var(--dp-wa);
    color: #fff !important;
    font-weight: 700;
    border-radius: 10px;
}

/* ── FOOTER ── */
.dp-footer {
    background: #030912;
    border-top: 1px solid var(--dp-border);
    padding: 60px 0 28px;
    color: var(--dp-text);
}

.dp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

.dp-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}

.dp-footer h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dp-text);
    margin-bottom: 12px;
}

.dp-footer h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dp-text);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dp-footer-desc {
    font-size: 0.88rem;
    color: var(--dp-muted);
    line-height: 1.65;
    margin-bottom: 18px;
}

.dp-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.dp-footer ul li a {
    font-size: 0.87rem;
    color: var(--dp-muted) !important;
    text-decoration: none;
    transition: color 0.2s;
}

.dp-footer ul li a:hover {
    color: var(--dp-text) !important;
}

.dp-footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.87rem;
    color: var(--dp-muted);
}

.dp-footer-contact li i {
    color: var(--dp-accent);
    width: 16px;
}

.dp-social {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.dp-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--dp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dp-muted) !important;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.dp-social a:hover {
    border-color: var(--dp-accent);
    color: var(--dp-accent) !important;
}

.dp-footer-bottom {
    border-top: 1px solid var(--dp-border);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dp-footer-bottom p {
    font-size: 0.82rem;
    color: var(--dp-faint);
    margin: 0;
}

.dp-footer-bottom a {
    color: var(--dp-muted) !important;
    text-decoration: none;
    font-size: 0.82rem;
}

.dp-footer-divider {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--dp-border);
}

.dp-footer-plat {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* WhatsApp flotante */
.dp-wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1500;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--dp-wa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s;
}

.dp-wa-float:hover {
    transform: scale(1.1);
}

/* Hub de enlaces internos (SEO) */
.dp-links-hub {
    background: #0a1628;
    border-top: 1px solid var(--dp-border);
    padding: 48px 0;
}

.dp-links-hub-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dp-text);
    margin-bottom: 8px;
}

.dp-links-hub-desc {
    font-size: 0.9rem;
    color: var(--dp-muted);
    margin-bottom: 24px;
}

.dp-links-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.dp-links-hub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--dp-border);
    border-radius: 10px;
    color: var(--dp-muted) !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.dp-links-hub-item i {
    color: var(--dp-accent);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.dp-links-hub-item:hover,
.dp-links-hub-item.dp-links-hub-active {
    border-color: rgba(59, 130, 246, 0.45);
    color: var(--dp-text) !important;
    background: rgba(59, 130, 246, 0.08);
}

@media (max-width: 1024px) {
    .dp-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .dp-nav-links,
    .dp-nav-cta {
        display: none;
    }

    .dp-hamburger {
        display: flex;
    }

    .dp-footer-grid {
        grid-template-columns: 1fr;
    }

    .dp-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
