/* cabecera: CSS de la plantilla original, sin cambios de diseño. */

#tn-header-wrapper * {
    box-sizing: border-box;
}

#tn-header-wrapper .tn-h-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#tn-header-wrapper .tn-h-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

#tn-header-wrapper .tn-h-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

#tn-header-wrapper .tn-h-logo-img {
    width: 80px;
    height: auto;
    display: block;
}

#tn-header-wrapper .tn-h-logo-text {
    font-weight: 800;
    font-size: 15px;
    line-height: 1.2;
    color: #0f3a6e;
    letter-spacing: 0.5px;
}

#tn-header-wrapper .tn-h-logo-text span {
    display: block;
    font-weight: 500;
    font-size: 11px;
    color: #6b7280;
    letter-spacing: 1px;
    margin-top: 2px;
}

#tn-header-wrapper .tn-h-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
}

#tn-header-wrapper .tn-h-nav-menu li {
    list-style: none;
}

#tn-header-wrapper .tn-h-nav-menu a {
    text-decoration: none;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

#tn-header-wrapper .tn-h-nav-menu a:hover {
    color: #0f3a6e;
}

#tn-header-wrapper .tn-h-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

#tn-header-wrapper .tn-h-btn-tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f3a6e;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
    border: 1px solid #0f3a6e;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#tn-header-wrapper .tn-h-btn-tel:hover {
    background: #0f3a6e;
    color: #fff;
}

#tn-header-wrapper a.tn-h-btn-presupuesto,
#tn-header-wrapper .tn-h-btn-presupuesto {
    display: inline-flex !important;
    align-items: center;
    background: #dc2626 !important;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    background-image: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: #fff !important;
    padding: 10px 20px;
    border: none !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.25);
}

#tn-header-wrapper a.tn-h-btn-presupuesto:hover,
#tn-header-wrapper .tn-h-btn-presupuesto:hover {
    background: #b91c1c !important;
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
    background-image: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.4);
}

#tn-header-wrapper .tn-h-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #0f3a6e;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    #tn-header-wrapper .tn-h-nav-menu {
        gap: 18px;
    }
    #tn-header-wrapper .tn-h-btn-tel span,
    #tn-header-wrapper .tn-h-logo-text span {
        font-size: 10px;
    }
}

@media (max-width: 900px) {
    #tn-header-wrapper .tn-h-nav-menu,
    #tn-header-wrapper .tn-h-cta {
        display: none;
    }
    #tn-header-wrapper .tn-h-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #tn-header-wrapper .tn-h-inner {
        padding: 12px 16px;
    }
    #tn-header-wrapper .tn-h-logo-img {
        width: 60px;
    }
    #tn-header-wrapper .tn-h-logo-text {
        font-size: 13px;
    }
}
